Browse Source

fix bug notifications icons forum #TMI

Alex Aragon 9 years ago
parent
commit
bdf170853a
1 changed files with 6 additions and 6 deletions
  1. 6 6
      main/forum/index.php

+ 6 - 6
main/forum/index.php

@@ -268,7 +268,7 @@ if (is_array($forumCategories)) {
             $iconsEdit = '';
             $idCategory = $forumCategory['cat_id'];
             $urlCategory = 'viewforumcategory.php?'.api_get_cidreq().'&forumcategory='.intval($idCategory);
-            $titleCategory .= Display::tag(
+            $titleCategory = Display::tag(
                      'a', $forumCategory['cat_title'],
                     array('href' => $urlCategory,'class' => status_visible_invisible($forumCategory['visibility']))
             );
@@ -569,28 +569,28 @@ if (is_array($forumCategories)) {
                                     $mywhatsnew_post_info
                                 ) && !empty($mywhatsnew_post_info)
                             ) {
-                                $newPost .= ' '.Display::return_icon(
+                                $newPost = ' '.Display::return_icon(
                                         'alert.png',
                                         get_lang('Forum'),
                                         null,
                                         ICON_SIZE_SMALL
                                     );
                             } else {
-                                $newPost .= $iconEmpty;
+                                $newPost = $iconEmpty;
                             }
                         } else {
                             if (is_array(
                                     $mywhatsnew_post_info
                                 ) && !empty($mywhatsnew_post_info)
                             ) {
-                                $newPost .= ' '.Display::return_icon(
+                                $newPost = ' '.Display::return_icon(
                                         'alert.png',
                                         get_lang('Forum'),
                                         null,
                                         ICON_SIZE_SMALL
                                     );
                             } else {
-                                $newPost .= $iconEmpty;
+                                $newPost = $iconEmpty;
                             }
                         }
 
@@ -728,7 +728,7 @@ if (is_array($forumCategories)) {
                 }
             }
         } else {
-            echo '<div>'.get_lang(
+            echo '<div class="alert alert-warning">'.get_lang(
                     'NoForumInThisCategory'
                 ).'</div>'.(api_is_allowed_to_edit(
                     false,