Changeset 16484


Ignore:
Timestamp:
Jul 8, 2012, 10:14:52 AM (8 years ago)
Author:
grum
Message:

feature:2642 - compatibility with Piwigo 2.4
Fix bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/AMenuManager/amm_aip.class.inc.php

    r16445 r16484  
    328328    $this->sortCoreBlocksItems();
    329329
     330    $registeredBlocks=$this->getRegisteredBlocks();
     331    foreach($registeredBlocks as $key=>$val)
     332    {
     333      $registeredBlocks[$key]['users']=json_encode($registeredBlocks[$key]['users']);
     334      $registeredBlocks[$key]['groups']=json_encode($registeredBlocks[$key]['groups']);
     335    }
     336
     337
     338
    330339    foreach($this->config['amm_blocks_items'] as $menuId=>$menu)
    331340    {
     
    333342      $this->config['amm_blocks_items'][$menuId]['translation']=$this->defaultMenus[$menuId]['translation'];
    334343      $this->defaultMenus[$menuId]['visibilityForm'] = $this->makeBlockVisibility("/", $menuId);
    335     }
    336 
    337     $registeredBlocks=$this->getRegisteredBlocks();
    338     foreach($registeredBlocks as $key=>$val)
    339     {
    340       $registeredBlocks[$key]['users']=json_encode($registeredBlocks[$key]['users']);
    341       $registeredBlocks[$key]['groups']=json_encode($registeredBlocks[$key]['groups']);
    342344    }
    343345
Note: See TracChangeset for help on using the changeset viewer.