Dotclear

Changeset 863:88e1ebd4efa0 for plugins


Ignore:
Timestamp:
08/03/12 23:22:56 (13 years ago)
Author:
JcDenis
Branch:
default
Children:
864:73d1af790506, 1025:f86362da37de
Message:

Moved tpl attribut has_tag to the right place, fixes #1316

File:
1 edited

Legend:

Unmodified
Added
Removed
  • plugins/tags/_public.php

    r816 r863  
    4444 
    4545$core->addBehavior('templateBeforeBlock',array('behaviorsTags','templateBeforeBlock')); 
    46 $core->addBehavior('tplSysIfConditions',array('behaviorsTags','tplSysIfConditions')); 
    4746$core->addBehavior('publicBeforeDocument',array('behaviorsTags','addTplPath')); 
    4847 
     
    7069                    "\$params['sql'] .= \"AND META.meta_id = '\".\$core->con->escape(\$_ctx->meta->meta_id).\"' \";\n". 
    7170               "} ?>\n"; 
    72           } 
    73      } 
    74       
    75      public static function tplSysIfConditions($tag, $attr,$content,$if) 
    76      { 
    77           if ($tag == 'Sys' && isset($attr['has_tag'])) { 
    78                $sign = ''; 
    79                if (substr($attr['has_tag'],0,1) == '!') { 
    80                     $sign = '!'; 
    81                     $attr['has_tag'] = substr($attr['has_tag'],1); 
    82                } 
    83                $if[] =  $sign."(\$core->tpl->tagExists('".addslashes($attr['has_tag'])."') )"; 
    8471          } 
    8572     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map