Dotclear

Changeset 351:a10315556ae4 for inc


Ignore:
Timestamp:
06/09/11 16:36:23 (14 years ago)
Author:
Dsls <dsls@…>
Branch:
default
Message:

Fixed a bug in template compiler : now tests whether latest block has not been properly closed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inc/public/class.dc.template.php

    r341 r351  
    323323          } 
    324324           
     325          if (($node instanceof tplNodeBlock) && !$node->isClosed()) { 
     326               $errors[] = sprintf( 
     327                    __('Did not find closing tag for block <tpl:%s>. Content has been ignored.'), 
     328                    html::escapeHTML($node->getTag())); 
     329          } 
     330           
    325331          $err = ""; 
    326332          if (count($errors) > 0) { 
     
    32363242          $this->closed = true; 
    32373243     } 
     3244     public function isClosed() { 
     3245          return $this->closed; 
     3246     } 
    32383247     public function compile($tpl) { 
    32393248          if ($this->closed) { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map