- works with PHP5

git-svn-id: http://piwigo.org/svn/trunk@2217 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
rvelices
2008-02-27 03:15:31 +00:00
parent 75bb450a6e
commit 98d4b284e0
2 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ class Template {
$is_new = true;
$params = array('resource_name' => $this->files[$handle], 'quiet'=>true, 'get_source'=>true);
if ( $this->smarty->_fetch_resource_info(&$params) )
if ( $this->smarty->_fetch_resource_info($params) )
{
if (!preg_match('~{(/(if|section|foreach))|\$[a-zA-Z_]+}~', @$params['source_content']) )
$is_new = false;