HomeHelpTrac

Changeset 13274


Ignore:
Timestamp:
11/19/09 13:44:57 (2 years ago)
Author:
Leonid Sokushev
Message:

ticket #1487

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/inc/classes/BxDolFilesModule.php

    r13065 r13274  
    262262        } 
    263263         
    264         $sCaption = _t('_' . $this->_oConfig->getMainPrefix() . '_top_menu_' . $sParamName); 
    265         if (mb_strlen($sParamName) > 0 && mb_strlen($sParamValue) > 0 && isset($oSearch->aCurrent['restriction'][$sParamName])) { 
     264        $sTopPostfix = isset($oSearch->aCurrent['restriction'][$sParamName]) ? $sParamName : 'all'; 
     265        $sCaption = _t('_' . $this->_oConfig->getMainPrefix() . '_top_menu_' . $sTopPostfix); 
     266        if (mb_strlen($sParamValue) > 0 && isset($oSearch->aCurrent['restriction'][$sParamName])) { 
    266267            $sParamValue = $this->getBrowseParam($sParamName, $sParamValue); 
    267268            $oSearch->aCurrent['restriction'][$sParamName]['value'] = $sParamValue; 
  • trunk/modules/boonex/files/classes/BxFilesModule.php

    r13102 r13274  
    129129        } 
    130130         
    131         $sCaption = _t('_' . $this->_oConfig->getMainPrefix() . '_top_menu_' . $sParamName); 
     131        $sTopPostfix = isset($oSearch->aCurrent['restriction'][$sParamName]) ? $sParamName : 'all'; 
     132        $sCaption = _t('_' . $this->_oConfig->getMainPrefix() . '_top_menu_' . $sTopPostfix); 
    132133        if (strlen($sParamName) > 0 && strlen($sParamValue) > 0 && isset($oSearch->aCurrent['restriction'][$sParamName])) { 
    133134            $oSearch->aCurrent['restriction'][$sParamName]['value'] = $sParamValue; 
Note: See TracChangeset for help on using the changeset viewer.