Dotclear


Ignore:
Timestamp:
06/24/11 15:25:24 (14 years ago)
Author:
Dsls <dsls@…>
Branch:
default
Message:

Moved tag templates to their plugin directory, fixed some troubles with tplIfConditions behavior. Closes #1131

File:
1 edited

Legend:

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

    r407 r413  
    10021002           
    10031003          if (!empty($if)) { 
    1004                return '<?php if('.implode(' '.$operator.' ',$if).') : ?>'.$content.'<?php endif; ?>'; 
     1004               return '<?php if('.implode(' '.$operator.' ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 
    10051005          } else { 
    10061006               return $content; 
     
    13561356           
    13571357          if (!empty($if)) { 
    1358                return '<?php if('.implode(' '.$operator.' ',(array)$if).') : ?>'.$content.'<?php endif; ?>'; 
     1358               return '<?php if('.implode(' '.$operator.' ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 
    13591359          } else { 
    13601360               return $content; 
     
    20092009           
    20102010          if (!empty($if)) { 
    2011                return '<?php if('.implode(' && ',$if).') : ?>'.$content.'<?php endif; ?>'; 
     2011               return '<?php if('.implode(' && ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 
    20122012          } else { 
    20132013               return $content; 
     
    22842284           
    22852285          if (!empty($if)) { 
    2286                return '<?php if('.implode(' && ',$if).') : ?>'.$content.'<?php endif; ?>'; 
     2286               return '<?php if('.implode(' && ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 
    22872287          } else { 
    22882288               return $content; 
     
    28622862           
    28632863          if (!empty($if)) { 
    2864                return '<?php if('.implode(' '.$operator.' ',$if).') : ?>'.$content.'<?php endif; ?>'; 
     2864               return '<?php if('.implode(' '.$operator.' ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 
    28652865          } else { 
    28662866               return $content; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map