HomeHelpTrac

Changeset 15948 for trunk/templates


Ignore:
Timestamp:
02/06/12 00:21:55 (4 months ago)
Author:
Alexander Trofimov
Message:

Page - automatic menu selection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/templates/base/scripts/BxBasePage.php

    r15923 r15948  
    4040  
    4141        $this->_addSysTemplateVars(); 
     42 
     43        $this->_selectMenu(); 
    4244 
    4345        // TODO: insert profiler call here  
     
    138140 
    139141    /** 
     142     * Select menu from page properties. 
     143     */  
     144    protected function _selectMenu () { 
     145        bx_import('BxDolMenu'); 
     146        BxDolMenu::setSelected ($this->_aObject['module'], $this->_aObject['object']);  
     147    } 
     148     
     149    /** 
    140150     * Get content for 'raw' block type. 
    141151     * @return string 
     
    175185     */ 
    176186    protected function _getBlockRss ($aBlock) { 
    177         list( $sUrl, $iNum ) = explode( '#', $sContent ); 
     187        if (empty($aBlock['content'])) 
     188            return false; 
     189 
     190        list( $sUrl, $iNum ) = explode('#', $aBlock['content']); 
    178191        $iNum = (int)$iNum; 
    179192 
Note: See TracChangeset for help on using the changeset viewer.