@@ -430,14 +430,14 @@ public function index()
430430 );
431431 }
432432
433+ $ qcountHtml = $ editcategory ['qcount ' ] == 1
434+ ? qa_lang_html_sub ('main/1_question ' , '1 ' , '1 ' )
435+ : qa_lang_html_sub ('main/x_questions ' , qa_format_number ($ editcategory ['qcount ' ]));
436+
433437 $ qa_content ['form ' ]['fields ' ]['questions ' ] = array (
434438 'label ' => qa_lang_html ('admin/total_qs ' ),
435439 'type ' => 'static ' ,
436- 'value ' => '<a href=" ' . qa_path_html ('questions/ ' . qa_category_path_request ($ categories , $ editcategory ['categoryid ' ])) . '"> ' .
437- ($ editcategory ['qcount ' ] == 1
438- ? qa_lang_html_sub ('main/1_question ' , '1 ' , '1 ' )
439- : qa_lang_html_sub ('main/x_questions ' , qa_format_number ($ editcategory ['qcount ' ]))
440- ) . '</a> ' ,
440+ 'value ' => '<a href=" ' . qa_path_html ('questions/ ' . qa_category_path_request ($ categories , $ editcategory ['categoryid ' ])) . '"> ' . $ qcountHtml . '</a> ' ,
441441 );
442442
443443 if ($ hassubcategory && !qa_opt ('allow_no_sub_category ' )) {
@@ -601,14 +601,12 @@ public function index()
601601
602602 foreach ($ categories as $ category ) {
603603 if (!isset ($ category ['parentid ' ])) {
604+ $ qcountHtml = $ category ['qcount ' ] == 1
605+ ? qa_lang_html_sub ('main/1_question ' , '1 ' , '1 ' )
606+ : qa_lang_html_sub ('main/x_questions ' , qa_format_number ($ category ['qcount ' ]));
604607 $ navcategoryhtml .=
605608 '<a href=" ' . qa_path_html ('admin/categories ' , array ('edit ' => $ category ['categoryid ' ])) . '"> ' .
606- qa_html ($ category ['title ' ]) .
607- '</a> - ' .
608- ($ category ['qcount ' ] == 1
609- ? qa_lang_html_sub ('main/1_question ' , '1 ' , '1 ' )
610- : qa_lang_html_sub ('main/x_questions ' , qa_format_number ($ category ['qcount ' ]))
611- ) . '<br/> ' ;
609+ qa_html ($ category ['title ' ]) . '</a> - ' . $ qcountHtml . '<br/> ' ;
612610 }
613611 }
614612
0 commit comments