Dotclear


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
  • inc/public/class.dc.template.php

    r833 r863  
    28022802     current_mode        CDATA     #IMPLIED  -- tests if current URL mode is the one given in parameter 
    28032803     has_tpl             CDATA     #IMPLIED  -- tests if a named template exists 
    2804      has_tag             CDATA     #IMPLIED  -- tests if a named template tag exists (see Tag plugin for code) 
     2804     has_tag             CDATA     #IMPLIED  -- tests if a named template block or value exists 
    28052805     blog_id             CDATA     #IMPLIED  -- tests if current blog ID is the one given in parameter 
    28062806     comments_active     (0|1)     #IMPLIED  -- test if comments are enabled blog-wide  
     
    28562856               } 
    28572857               $if[] = $sign."\$core->tpl->getFilePath('".addslashes($attr['has_tpl'])."') !== false"; 
     2858          } 
     2859           
     2860          if (isset($attr['has_tag'])) { 
     2861               $sign = 'true'; 
     2862               if (substr($attr['has_tag'],0,1) == '!') { 
     2863                    $sign = 'false'; 
     2864                    $attr['has_tag'] = substr($attr['has_tag'],1); 
     2865               } 
     2866               $if[] =  "\$core->tpl->tagExists('".addslashes($attr['has_tag'])."') === ".$sign; 
    28582867          } 
    28592868           
Note: See TracChangeset for help on using the changeset viewer.

Sites map