Ignore:
Timestamp:
Jul 26, 2009, 3:19:41 PM (15 years ago)
Author:
grum
Message:

Update Grum Plugind Classes to 2.0.3
Minor changes (bug about the config loader from then common_plugin class)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/grum_plugins_classes-2/common_plugin.class.inc.php

    r3395 r3679  
    22/* -----------------------------------------------------------------------------
    33  class name: common_plugin
    4   class version: 2.0
    5   date: 2008-07-13
     4  class version: 2.0.1
     5  date: 2009-07-24
    66
    77  ------------------------------------------------------------------------------
     
    3737  2.0.0     - 2008-07-13
    3838              migrate to piwigo 2.0 ; use of PHP5 classes possibilities
     39  2.0.1     - 2009-07-24
     40             config loader : better management for arrays items
    3941
    4042  --------------------------------------------------------------------------- */
     
    104106        reset($config);
    105107        while (list($key, $val) = each($config))
    106         { $this->my_config[$key] =$val; }
     108        {
     109          if(is_array($val))
     110          {
     111            foreach($val as $key2 => $val2)
     112            {
     113              $this->my_config[$key][$key2]=$val2;
     114            }
     115          }
     116          else
     117          {
     118            $this->my_config[$key] =$val;
     119          }
     120        }
    107121      }
    108122    }
Note: See TracChangeset for help on using the changeset viewer.