cvs: smarty / Smarty.class.php

From: Date: Wed, 26 Jun 2002 14:59:06 +0000
Subject: cvs: smarty / Smarty.class.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-159@lists.php.net to get a copy of this message
mohrt Wed Jun 26 10:59:06 2002 EDT Modified files: /smarty Smarty.class.php Log: only search include_path if relative path Index: smarty/Smarty.class.php diff -u smarty/Smarty.class.php:1.287 smarty/Smarty.class.php:1.288 --- smarty/Smarty.class.php:1.287 Wed Jun 26 10:51:10 2002 +++ smarty/Smarty.class.php Wed Jun 26 10:59:03 2002 @@ -1674,17 +1674,22 @@ if (!preg_match("/^([\/\\\\]|[a-zA-Z]:[\/\\\\])/", $_plugin_dir)) { // relative path + $_relative = true; $_plugin_filepath = SMARTY_DIR . $_plugin_filepath; + } else { + $_relative = false; } if (@is_readable($_plugin_filepath)) { return $_plugin_filepath; } - // didn't find it try include path - if ($this->_get_include_path($_plugin_dir . DIR_SEP . $_plugin_filename, $_include_filepath)) { - return $_include_filepath; - } + // didn't find it, try include path + if($_relative) { + if ($this->_get_include_path($_plugin_dir . DIR_SEP . $_plugin_filename, $_include_filepath)) { + return $_include_filepath; + } + } } return false;

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