cvs: smarty /libs Smarty.class.php

From: Date: Mon, 05 May 2003 14:49:38 +0000
Subject: cvs: smarty /libs Smarty.class.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-587@lists.php.net to get a copy of this message
mohrt Mon May 5 10:49:38 2003 EDT Modified files: /smarty/libs Smarty.class.php Log: clean up comments, formatting Index: smarty/libs/Smarty.class.php diff -u smarty/libs/Smarty.class.php:1.391 smarty/libs/Smarty.class.php:1.392 --- smarty/libs/Smarty.class.php:1.391 Mon May 5 10:41:22 2003 +++ smarty/libs/Smarty.class.php Mon May 5 10:49:38 2003 @@ -42,21 +42,21 @@ * @version 2.5.0 */ -/* $Id: Smarty.class.php,v 1.391 2003/05/05 14:41:22 mohrt Exp $ */ +/* $Id: Smarty.class.php,v 1.392 2003/05/05 14:49:38 mohrt Exp $ */ /** - * set SMARTY_DIR to absolute path to Smarty library files. - * if not defined, include_path will be used. Sets SMARTY_DIR only if user - * application has not already defined it. + * DIR_SEP isn't used anymore, but third party apps might */ - if(!defined('DIR_SEP')) { define('DIR_SEP', DIRECTORY_SEPARATOR); } /** - * Sets SMARTY_DIR only if user application has not already defined it + * set SMARTY_DIR to absolute path to Smarty library files. + * if not defined, include_path will be used. Sets SMARTY_DIR only if user + * application has not already defined it. */ + if (!defined('SMARTY_DIR')) { define('SMARTY_DIR', dirname(__FILE__) . DIRECTORY_SEPARATOR); } @@ -2196,7 +2196,7 @@ function _create_dir_structure($dir) { if (!file_exists($dir)) { - $_dir_parts = preg_split('!\\'.DIRECTORY_SEPARATOR.'+!', $dir, -1, PREG_SPLIT_NO_EMPTY); + $_dir_parts = preg_split('!\\' . DIRECTORY_SEPARATOR . '+!', $dir, -1, PREG_SPLIT_NO_EMPTY); $_new_dir = ($dir{0} == DIRECTORY_SEPARATOR) ? DIRECTORY_SEPARATOR : ''; // do not attempt to test or make directories outside of open_basedir @@ -2341,7 +2341,7 @@ if (isset($this->_cache_info['config'])) { foreach ($this->_cache_info['config'] as $config_dep) { - if ($this->_cache_info['timestamp'] < filemtime($this->config_dir.DIRECTORY_SEPARATOR.$config_dep)) { + if ($this->_cache_info['timestamp'] < filemtime($this->config_dir . DIRECTORY_SEPARATOR . $config_dep)) { // config file has changed, regenerate cache return false; }

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