Dotclear

Changeset 3593:ff5f89054250


Ignore:
Timestamp:
09/15/17 11:25:39 (8 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
2.12
Message:

Fixes tpl:sysIf blog_lang generated code, closes #2182

File:
1 edited

Legend:

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

    r3479 r3593  
    29302930 
    29312931          if (isset($attr['blog_lang'])) { 
    2932                $sign = (boolean) $attr['blog_lang'] ? '!' : '='; 
     2932               $sign = '='; 
     2933               if (substr($attr['blog_lang'],0,1) == '!') { 
     2934                    $sign = '!'; 
     2935                    $attr['blog_lang'] = substr($attr['blog_lang'],1); 
     2936               } 
    29332937               $if[] = "\$core->blog->settings->system->lang ".$sign."= '".addslashes($attr['blog_lang'])."'"; 
    29342938          } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map