Dotclear

Changeset 3479:ef52bedb5f53


Ignore:
Timestamp:
12/28/16 17:15:37 (9 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add not (!) test on tpl:SysIf blog_lang attribute, closes #2230

File:
1 edited

Legend:

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

    r3461 r3479  
    29302930 
    29312931          if (isset($attr['blog_lang'])) { 
    2932                $if[] = "\$core->blog->settings->system->lang == '".addslashes($attr['blog_lang'])."'"; 
     2932               $sign = (boolean) $attr['blog_lang'] ? '!' : '='; 
     2933               $if[] = "\$core->blog->settings->system->lang ".$sign."= '".addslashes($attr['blog_lang'])."'"; 
    29332934          } 
    29342935 
Note: See TracChangeset for help on using the changeset viewer.

Sites map