Changeset 29834


Ignore:
Timestamp:
Sep 29, 2014, 6:20:33 PM (10 years ago)
Author:
plg
Message:

bug fixed: on Piwigo 2.7 the {php} tag no longer works in templates, so we have to remove it in specific templates for PWG_Stuffs in simple*. The logic is now directly in PWG_Stuffs: on simple* themes, we must never hide the main block.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/PWG_Stuffs/trunk/class.inc.php

    r28915 r29834  
    8080  function process_modules()
    8181  {
    82     global $pwg_loaded_plugins, $conf;
     82    global $pwg_loaded_plugins, $conf, $user;
    8383
    8484    foreach ($this->modules as $module)
     
    8888        $this->pos = 'end';
    8989        $show = unserialize($module['datas']);
    90         if (!$show and empty($conf['AP']['homepage']))
     90        if (!$show and empty($conf['AP']['homepage']) and strpos($user['theme'], 'simple') !== 0)
    9191        {
    9292          add_event_handler('loc_end_index', 'hide_main_block');
Note: See TracChangeset for help on using the changeset viewer.