diff options
author | rvelices <rv-github@modusoptimus.com> | 2008-08-28 01:26:26 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2008-08-28 01:26:26 +0000 |
commit | 3a67845aaf128fe718b27a89635fb33810ba7e41 (patch) | |
tree | cc12790366983d2c7496bbbf5eb5de5ac2b3b6a8 /include | |
parent | abb2f22b2e96a89a44ad9d36db3bf612c6f88b9f (diff) |
- removed and moved (from common to admin) some CSS rules
- upgraded jQuery and accordion to latest version (and reorganised a bit their location)
git-svn-id: http://piwigo.org/svn/trunk@2489 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r-- | include/template.class.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/template.class.php b/include/template.class.php index 9fd5bd4f5..c2dc8cc07 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -241,7 +241,7 @@ class Template { { if ( !isset($this->files[$handle]) ) { - die("Template->parse(): Couldn't load template file for handle $handle"); + trigger_error("Template->parse(): Couldn't load template file for handle $handle", E_USER_ERROR); } $this->smarty->assign( 'ROOT_URL', get_root_url() ); @@ -367,13 +367,13 @@ class Template { $tags = array('if', 'foreach', 'section'); foreach($tags as $tag) { - array_push($regex, "#^\s+($ldq$tag"."[^$ld$rd]*$rdq)\s*$#m"); - array_push($regex, "#^\s+($ldq/$tag$rdq)\s*$#m"); + array_push($regex, "#^[ \t]+($ldq$tag"."[^$ld$rd]*$rdq)\s*$#m"); + array_push($regex, "#^[ \t]+($ldq/$tag$rdq)\s*$#m"); } $tags = array('include', 'else', 'html_head'); foreach($tags as $tag) { - array_push($regex, "#^\s+($ldq$tag"."[^$ld$rd]*$rdq)\s*$#m"); + array_push($regex, "#^[ \t]+($ldq$tag"."[^$ld$rd]*$rdq)\s*$#m"); } $source = preg_replace( $regex, "$1", $source); return $source; |