From 3a67845aaf128fe718b27a89635fb33810ba7e41 Mon Sep 17 00:00:00 2001 From: rvelices Date: Thu, 28 Aug 2008 01:26:26 +0000 Subject: - 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 --- include/template.class.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/template.class.php') 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; -- cgit v1.2.3