Ignore:
Timestamp:
Aug 28, 2008, 3:26:26 AM (16 years ago)
Author:
rvelices
Message:
  • removed and moved (from common to admin) some CSS rules
  • upgraded jQuery and accordion to latest version (and reorganised a bit their location)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/template.class.php

    r2481 r2489  
    242242    if ( !isset($this->files[$handle]) )
    243243    {
    244       die("Template->parse(): Couldn't load template file for handle $handle");
     244      trigger_error("Template->parse(): Couldn't load template file for handle $handle", E_USER_ERROR);
    245245    }
    246246
     
    368368    foreach($tags as $tag)
    369369    {
    370       array_push($regex, "#^\s+($ldq$tag"."[^$ld$rd]*$rdq)\s*$#m");
    371       array_push($regex, "#^\s+($ldq/$tag$rdq)\s*$#m");
     370      array_push($regex, "#^[ \t]+($ldq$tag"."[^$ld$rd]*$rdq)\s*$#m");
     371      array_push($regex, "#^[ \t]+($ldq/$tag$rdq)\s*$#m");
    372372    }
    373373    $tags = array('include', 'else', 'html_head');
    374374    foreach($tags as $tag)
    375375    {
    376       array_push($regex, "#^\s+($ldq$tag"."[^$ld$rd]*$rdq)\s*$#m");
     376      array_push($regex, "#^[ \t]+($ldq$tag"."[^$ld$rd]*$rdq)\s*$#m");
    377377    }
    378378    $source = preg_replace( $regex, "$1", $source);
Note: See TracChangeset for help on using the changeset viewer.