Changeset 413:9128e2f6085b
- Timestamp:
- 06/24/11 15:25:24 (14 years ago)
- Branch:
- default
- Files:
-
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
inc/public/class.dc.template.php
r407 r413 1002 1002 1003 1003 if (!empty($if)) { 1004 return '<?php if('.implode(' '.$operator.' ', $if).') : ?>'.$content.'<?php endif; ?>';1004 return '<?php if('.implode(' '.$operator.' ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 1005 1005 } else { 1006 1006 return $content; … … 1356 1356 1357 1357 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; ?>'; 1359 1359 } else { 1360 1360 return $content; … … 2009 2009 2010 2010 if (!empty($if)) { 2011 return '<?php if('.implode(' && ', $if).') : ?>'.$content.'<?php endif; ?>';2011 return '<?php if('.implode(' && ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 2012 2012 } else { 2013 2013 return $content; … … 2284 2284 2285 2285 if (!empty($if)) { 2286 return '<?php if('.implode(' && ', $if).') : ?>'.$content.'<?php endif; ?>';2286 return '<?php if('.implode(' && ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 2287 2287 } else { 2288 2288 return $content; … … 2862 2862 2863 2863 if (!empty($if)) { 2864 return '<?php if('.implode(' '.$operator.' ', $if).') : ?>'.$content.'<?php endif; ?>';2864 return '<?php if('.implode(' '.$operator.' ', (array) $if).') : ?>'.$content.'<?php endif; ?>'; 2865 2865 } else { 2866 2866 return $content; -
plugins/tags/_public.php
r407 r413 45 45 $core->addBehavior('templateBeforeBlock',array('behaviorsTags','templateBeforeBlock')); 46 46 $core->addBehavior('tplSysIfConditions',array('behaviorsTags','tplSysIfConditions')); 47 $core->addBehavior('publicBeforeDocument',array('behaviorsTags','addTplPath')); 47 48 48 49 class behaviorsTags … … 83 84 } 84 85 } 86 87 public static function addTplPath($core) 88 { 89 $core->tpl->setPath($core->tpl->getPath(), dirname(__FILE__).'/default-templates'); 90 } 91 85 92 } 86 93
Note: See TracChangeset
for help on using the changeset viewer.