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

Changeset 10696


Ignore:
Timestamp:
Feb 8, 2009, 10:42:50 PM (11 years ago)
Author:
ebihara
Message:

#3610:fixed the opPlugin doesn't get information when its plugin directory doesn't have package.xml

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/lib/plugin/opPlugin.class.php

    r10003 r10696  
    4141      $this->version = (string)$info->version->release;
    4242      $this->summary = (string)$info->summary;
     43    }
     44    else
     45    {
     46      $manager = new opPluginManager(sfContext::getInstance()->getEventDispatcher());
     47      $package = $manager->getEnvironment()->getRegistry()->getPackage($pluginName, opPluginManager::OPENPNE_PLUGIN_CHANNEL);
     48      $this->version = $package->getVersion();
     49      $this->summary = $package->getSummary();
    4350    }
    4451  }
Note: See TracChangeset for help on using the changeset viewer.