cvs: smarty / Smarty.class.php /templates header.tpl

From: Date: Wed, 26 Jun 2002 16:08:29 +0000
Subject: cvs: smarty / Smarty.class.php /templates header.tpl
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-162@lists.php.net to get a copy of this message
mohrt Wed Jun 26 12:08:29 2002 EDT Modified files: /smarty Smarty.class.php /smarty/templates header.tpl Log: update get_include_path, get _path_array only once Index: smarty/Smarty.class.php diff -u smarty/Smarty.class.php:1.290 smarty/Smarty.class.php:1.291 --- smarty/Smarty.class.php:1.290 Wed Jun 26 12:00:55 2002 +++ smarty/Smarty.class.php Wed Jun 26 12:08:24 2002 @@ -1919,15 +1919,18 @@ \*======================================================================*/ function _get_include_path($file_path,&$new_file_path) { - $_ini_include_path = ini_get('include_path'); + static $_path_array = null; - if(strstr($_ini_include_path,';')) { - // windows pathnames - $_path_array = explode(';',$_ini_include_path); - } else { - $_path_array = explode(':',$_ini_include_path); - } + if(!isset($_path_array)) { + $_ini_include_path = ini_get('include_path'); + if(strstr($_ini_include_path,';')) { + // windows pathnames + $_path_array = explode(';',$_ini_include_path); + } else { + $_path_array = explode(':',$_ini_include_path); + } + } foreach ($_path_array as $_include_path) { if (@file_exists($_include_path . DIR_SEP . $file_path)) { $new_file_path = $_include_path . DIR_SEP . $file_path; Index: smarty/templates/header.tpl diff -u smarty/templates/header.tpl:1.6 smarty/templates/header.tpl:1.7 --- smarty/templates/header.tpl:1.6 Fri Jul 6 11:46:51 2001 +++ smarty/templates/header.tpl Wed Jun 26 12:08:29 2002 @@ -1,6 +1,6 @@ <HTML> <HEAD> -{popup_init} +{popup_init src="/javascripts/hiermenus.js"} </HEAD> <BODY bgcolor="#ffffff"> <TITLE>{$title} - {$Name}</TITLE>

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