Dotclear

Changeset 415:14f70d8abc9f for inc


Ignore:
Timestamp:
06/26/11 21:31:21 (14 years ago)
Author:
Dsls <dsls@…>
Branch:
default
Message:

added attachments as plugins being included at build, strengthened tests for *If templates tests

File:
1 edited

Legend:

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

    r413 r415  
    10011001          $this->core->callBehavior('tplIfConditions','CategoryIf',$attr,$content,$if); 
    10021002           
    1003           if (!empty($if)) { 
     1003          if (count($if) != 0) { 
    10041004               return '<?php if('.implode(' '.$operator.' ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 
    10051005          } else { 
     
    13551355          $this->core->callBehavior('tplIfConditions','EntryIf',$attr,$content,$if); 
    13561356           
    1357           if (!empty($if)) { 
     1357          if (count($if) != 0) { 
    13581358               return '<?php if('.implode(' '.$operator.' ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 
    13591359          } else { 
     
    20082008          $this->core->callBehavior('tplIfConditions','PaginationIf',$attr,$content,$if); 
    20092009           
    2010           if (!empty($if)) { 
     2010          if (count($if) != 0) { 
    20112011               return '<?php if('.implode(' && ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 
    20122012          } else { 
     
    22832283          $this->core->callBehavior('tplIfConditions','CommentIf',$attr,$content,$if); 
    22842284           
    2285           if (!empty($if)) { 
     2285          if (count($if) != 0) { 
    22862286               return '<?php if('.implode(' && ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 
    22872287          } else { 
     
    28612861          $this->core->callBehavior('tplIfConditions','SysIf',$attr,$content,$if); 
    28622862           
    2863           if (!empty($if)) { 
     2863          if (count($if) != 0) { 
    28642864               return '<?php if('.implode(' '.$operator.' ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 
    28652865          } else { 
Note: See TracChangeset for help on using the changeset viewer.

Sites map