|
|
|
@ -71,7 +71,7 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface |
|
|
|
|
{ |
|
|
|
|
// plugins can be enabled/disabled using the config |
|
|
|
|
if ($eventName === 'onConfigLoaded') { |
|
|
|
|
$pluginEnabled = $this->getConfig(get_called_class().'.enabled'); |
|
|
|
|
$pluginEnabled = $this->getConfig(get_called_class() . '.enabled'); |
|
|
|
|
if ($pluginEnabled !== null) { |
|
|
|
|
$this->setEnabled($pluginEnabled); |
|
|
|
|
} |
|
|
|
@ -137,8 +137,8 @@ abstract class AbstractPicoPlugin implements PicoPluginInterface |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
throw new BadMethodCallException( |
|
|
|
|
'Call to undefined method '.get_class($this->getPico()).'::'.$methodName.'() ' |
|
|
|
|
. 'through '.get_called_class().'::__call()' |
|
|
|
|
'Call to undefined method ' . get_class($this->getPico()) . '::' . $methodName . '() ' |
|
|
|
|
. 'through ' . get_called_class() . '::__call()' |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|