cvs: smarty / Smarty.class.php /docs programmers.sgml /plugins function.fetch.php

From: Date: Tue, 30 Apr 2002 13:57:14 +0000
Subject: cvs: smarty / Smarty.class.php /docs programmers.sgml /plugins function.fetch.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-73@lists.php.net to get a copy of this message
andrei Tue Apr 30 09:57:14 2002 EDT Modified files: /smarty Smarty.class.php /smarty/docs programmers.sgml /smarty/plugins function.fetch.php Log: Fix. Index: smarty/Smarty.class.php diff -u smarty/Smarty.class.php:1.270 smarty/Smarty.class.php:1.271 --- smarty/Smarty.class.php:1.270 Wed Apr 24 10:46:01 2002 +++ smarty/Smarty.class.php Tue Apr 30 09:57:12 2002 @@ -518,6 +518,10 @@ return $this->_rm_auto($this->compile_dir, $tpl_file, $compile_id); } + /*======================================================================*\ + Function: template_exists() + Purpose: Checks whether requested template exists. +\*======================================================================*/ function template_exists($tpl_file) { return $this->_fetch_template_info($tpl_file, $source, $timestamp, true, true); @@ -1445,7 +1449,7 @@ \*======================================================================*/ function _create_dir_structure($dir) { - if (!file_exists($dir)) { + if (!@file_exists($dir)) { $dir_parts = preg_split('!\\'.DIR_SEP.'+!', $dir, -1, PREG_SPLIT_NO_EMPTY); $new_dir = ($dir{0} == DIR_SEP) ? DIR_SEP : ''; foreach ($dir_parts as $dir_part) { Index: smarty/docs/programmers.sgml diff -u smarty/docs/programmers.sgml:1.11 smarty/docs/programmers.sgml:1.12 --- smarty/docs/programmers.sgml:1.11 Mon Apr 29 17:13:40 2002 +++ smarty/docs/programmers.sgml Tue Apr 30 09:57:13 2002 @@ -1941,7 +1941,7 @@ * Purpose: translate a block of text * ------------------------------------------------------------- */ -function smarty_block_eightball($params, $content, &$smarty) +function smarty_block_translate($params, $content, &$smarty) { if ($content) { $lang = $params['lang']; Index: smarty/plugins/function.fetch.php diff -u smarty/plugins/function.fetch.php:1.5 smarty/plugins/function.fetch.php:1.6 --- smarty/plugins/function.fetch.php:1.5 Wed Mar 20 11:44:17 2002 +++ smarty/plugins/function.fetch.php Tue Apr 30 09:57:14 2002 @@ -130,7 +130,7 @@ case "cluster_host": if(!empty($param_value) && (gethostbyname($param_value) != $param_value)) { - $server_name = $param_value; + $server_name = $param_value; } break; default:

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