Changeset 2231 for trunk/include/smarty


Ignore:
Timestamp:
Mar 1, 2008, 2:12:07 PM (16 years ago)
Author:
rvelices
Message:
  • index.tpl, menubar.tpl, mainpage_categories.tpl and month_calendar.tpl go smarty
  • better template debugging tweak (the smarty console is shown only once at the end)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/smarty/libs/Smarty.class.php

    r2216 r2231  
    10581058            // var non-existant, return valid reference
    10591059            $_tmp = null;
    1060             return $_tmp;   
     1060            return $_tmp;
    10611061        }
    10621062    }
     
    11171117    {
    11181118        static $_cache_info = array();
    1119        
     1119
    11201120        $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(isset($this->error_reporting)
    11211121               ? $this->error_reporting : error_reporting() & ~E_NOTICE);
     
    12931293        if ($display) {
    12941294            if (isset($_smarty_results)) { echo $_smarty_results; }
     1295        }
     1296
     1297        if ($this->debugging) {
     1298            // capture time for debugging info
     1299            $_params = array();
     1300            require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');
     1301            $this->_smarty_debug_info[$_included_tpls_idx]['exec_time'] = (smarty_core_get_microtime($_params, $this) - $_debug_start_time);
     1302        }
     1303
     1304        if ($display) {
    12951305            if ($this->debugging) {
    12961306                // capture time for debugging info
    12971307                $_params = array();
    1298                 require_once(SMARTY_CORE_DIR . 'core.get_microtime.php');
    1299                 $this->_smarty_debug_info[$_included_tpls_idx]['exec_time'] = (smarty_core_get_microtime($_params, $this) - $_debug_start_time);
    13001308                require_once(SMARTY_CORE_DIR . 'core.display_debug_console.php');
    13011309                echo smarty_core_display_debug_console($_params, $this);
     
    19331941        return eval($code);
    19341942    }
    1935    
     1943
    19361944    /**
    19371945     * Extracts the filter name from the given callback
    1938      * 
     1946     *
    19391947     * @param callback $function
    19401948     * @return string
     
    19511959                }
    19521960        }
    1953    
     1961
    19541962    /**#@-*/
    19551963
Note: See TracChangeset for help on using the changeset viewer.