ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 9891


Ignore:
Timestamp:
Jan 4, 2009, 11:17:08 PM (11 years ago)
Author:
ebihara
Message:

#3349:removed inexistent plugins from enable/disable plugin list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/config/sfOpenPNEApplicationConfiguration.class.php

    r9880 r9891  
    3737    {
    3838      $pluginActivations = array_merge(array_fill_keys($this->getPlugins(), true), sfConfig::get('op_plugin_activation'));
     39      foreach ($pluginActivations as $key => $value)
     40      {
     41        if (!in_array($key, $this->getPlugins()))
     42        {
     43          unset($pluginActivations[$key]);
     44        }
     45      }
    3946      $this->enablePlugins(array_keys($pluginActivations, true));
    4047      $this->disablePlugins(array_keys($pluginActivations, false));
Note: See TracChangeset for help on using the changeset viewer.