get plugin id from static method

This commit is contained in:
kremsy 2014-02-26 10:54:49 +01:00 committed by Steffen Schröder
parent 8ef153e354
commit ffe62800c6

View File

@ -76,8 +76,8 @@ class UsageReporter implements TimerListener {
if(is_array($this->maniaControl->pluginManager->getActivePlugins())) {
foreach($this->maniaControl->pluginManager->getActivePlugins() as $plugin) {
if(!is_null($plugin->getId()) && is_numeric($plugin->getId())) {
$activePlugins[] = $plugin->getId();
if(!is_null($plugin::getId()) && is_numeric($plugin::getId())) {
$activePlugins[] = $plugin::getId();
}
}
}