HomeHelpTrac

Changeset 15334 for trunk/categories.php


Ignore:
Timestamp:
07/12/11 01:20:32 (11 months ago)
Author:
Anton Lesnikov
Message:

Get rid of $GLOBALSoSysTemplate?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/categories.php

    r15260 r15334  
    3232require_once( BX_DIRECTORY_PATH_INC . 'design.inc.php' ); 
    3333 
     34bx_import('BxDolTemplate'); 
    3435bx_import('BxTemplCategories'); 
    3536bx_import('BxDolPageView'); 
     
    9293            'month_current' => $this->getTitle(), 
    9394        ); 
    94         $sHtml = $GLOBALS['oSysTemplate']->parseHtmlByName('calendar.html', $aVars); 
     95 
     96        $oSysTemplate = BxDolTemplate::getInstance(); 
     97 
     98        $sHtml = $oSysTemplate->parseHtmlByName('calendar.html', $aVars); 
    9599        $sHtml = preg_replace ('#<bx_repeat:events>.*?</bx_repeat:events>#s', '', $sHtml); 
    96         $GLOBALS['oSysTemplate']->addCss('calendar.css'); 
     100        $oSysTemplate->addCss('calendar.css'); 
    97101        return $sHtml; 
    98102    } 
     
    273277    } 
    274278 
    275     function getBlockCode_Form() 
    276     { 
    277         return $GLOBALS['oSysTemplate']->parseHtmlByName('search_tags_box.html', array('form' => $this->oForm->getCode())); 
     279    function getBlockCode_Form() { 
     280        return BxDolTemplate::getInstance()->parseHtmlByName('search_tags_box.html', array('form' => $this->oForm->getCode())); 
    278281    } 
    279282 
     
    363366 
    364367if (!$bAjaxMode) { 
    365     bx_import('BxDolTemplate'); 
    366368    $oTemplate = BxDolTemplate::getInstance(); 
    367369    $oTemplate->setPageNameIndex(25); 
     
    379381else 
    380382    echo $sContent; 
    381  
    382 ?> 
Note: See TracChangeset for help on using the changeset viewer.