[prev in list] [next in list] [prev in thread] [next in thread]
List: smarty-cvs
Subject: [SMARTY-CVS] cvs: smarty / Smarty.class.php /templates header.tpl
From: "Monte Ohrt" <monte () ispi ! net>
Date: 2002-06-26 16:08:29
[Download RAW message or body]
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>
--
Smarty CVS Mailing List (http://cvs.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic