Jelajahi Sumber

#22 - profile stats was incorrectly shown 2 items with friend requests

Alex Trofimov 12 tahun lalu
induk
melakukan
8cadecb1ac

+ 1 - 1
template/scripts/BxBaseMenuAccountNotifications.php

@@ -33,7 +33,7 @@ class BxBaseMenuAccountNotifications extends BxTemplMenu
             return false;
             return false;
 
 
         // show only friends for currently active profile for friend request notification
         // show only friends for currently active profile for friend request notification
-        if ('notifications-friend-requests' == $a['name']) {
+        if ('notifications-friend-requests' == $a['name'] || 'profile-stats-friend-requests' == $a['name']) {
             $oProfile = BxDolProfile::getInstance();
             $oProfile = BxDolProfile::getInstance();
             $aInfo = $oProfile->getInfo();
             $aInfo = $oProfile->getInfo();
             if ($a['module'] != $aInfo['type'])
             if ($a['module'] != $aInfo['type'])

+ 2 - 2
template/scripts/BxBaseMenuProfileStats.php

@@ -7,13 +7,13 @@
  * @{
  * @{
  */
  */
 
 
-bx_import('BxTemplMenu');
+bx_import('BxTemplMenuAccountNotifications');
 
 
 /**
 /**
  * Menu representation.
  * Menu representation.
  * @see BxDolMenu
  * @see BxDolMenu
  */
  */
-class BxBaseMenuProfileStats extends BxTemplMenu
+class BxBaseMenuProfileStats extends BxTemplMenuAccountNotifications
 {
 {
     public function __construct ($aObject, $oTemplate)
     public function __construct ($aObject, $oTemplate)
     {
     {