mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 08:33:03 +02:00
- works with PHP5
git-svn-id: http://piwigo.org/svn/trunk@2217 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user