cvs: smarty / NEWS /libs/plugins function.config_load.php

From: Date: Mon, 21 Apr 2003 14:22:46 +0000
Subject: cvs: smarty / NEWS /libs/plugins function.config_load.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-556@lists.php.net to get a copy of this message
mohrt Mon Apr 21 10:22:46 2003 EDT Modified files: /smarty NEWS /smarty/libs/plugins function.config_load.php Log: fixed debug timing logic for config_load Index: smarty/NEWS diff -u smarty/NEWS:1.348 smarty/NEWS:1.349 --- smarty/NEWS:1.348 Sun Apr 20 17:11:54 2003 +++ smarty/NEWS Mon Apr 21 10:22:46 2003 @@ -1,3 +1,4 @@ + - fixed debug timing logic for config_load (Tom Sommer, Monte) - all in-code doc comments converted to phpDocumentor format (Greg) - moved strip from smarty core to plugin (Monte) - moved config_load from smarty core to plugin (Monte) Index: smarty/libs/plugins/function.config_load.php diff -u smarty/libs/plugins/function.config_load.php:1.3 smarty/libs/plugins/function.config_load.php:1.4 --- smarty/libs/plugins/function.config_load.php:1.3 Sun Apr 20 17:18:26 2003 +++ smarty/libs/plugins/function.config_load.php Mon Apr 21 10:22:46 2003 @@ -24,6 +24,10 @@ */ function smarty_function_config_load($params, &$smarty) { + if ($smarty->debugging) { + $_debug_start_time = $smarty->_get_microtime(); + } + $_file = isset($params['file']) ? $params['file'] : null; $_section = isset($params['section']) ? $params['section'] : null; $_scope = isset($params['scope']) ? $params['scope'] : 'global'; @@ -96,10 +100,6 @@ } } - if ($smarty->debugging) { - $debug_start_time = $smarty->_get_microtime(); - } - if ($smarty->caching) { $smarty->_cache_info['config'][] = $_file; } @@ -118,11 +118,10 @@ } if ($smarty->debugging) { - $debug_start_time = $smarty->_get_microtime(); $smarty->_smarty_debug_info[] = array('type' => 'config', 'filename' => $_file.' ['.$_section.'] '.$_scope, 'depth' => $smarty->_inclusion_depth, - 'exec_time' => $smarty->_get_microtime() - $debug_start_time); + 'exec_time' => $smarty->_get_microtime() - $_debug_start_time); } }

« previous php.smarty.cvs (#556) next »