Dotclear

Changeset 496


Ignore:
Timestamp:
08/22/08 08:56:08 (15 years ago)
Author:
sacha
Message:

Arlequin: Excluded themes can not be selected by user.

Location:
plugins/arlequin
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • plugins/arlequin/_define.php

    r483 r496  
    2020     /* Description*/    'Allows visitors choose a theme', 
    2121     /* Author */        'Oleksandr Syenchuk', 
    22      /* Version */       '2008.08', 
     22     /* Version */       '2008.08-r1', 
    2323     /* Permissions */   'contentadmin' 
    2424); 
  • plugins/arlequin/_public.php

    r483 r496  
    6464     public static function switchTheme(&$blog,$theme) 
    6565     { 
     66          if ($blog->settings->mt_exclude) { 
     67               if (in_array($theme,explode('/',$blog->settings->mt_exclude))) { 
     68                    return; 
     69               } 
     70          } 
     71           
    6672          $GLOBALS['__theme'] = $blog->settings->theme = $theme; 
    6773     } 
Note: See TracChangeset for help on using the changeset viewer.

Sites map