Call Plugin::__destruct() on PluginAPI::__destruct()

This commit is contained in:
Shoghi Cervantes 2014-02-06 15:21:12 +01:00
parent 85438aff0d
commit 14a7e0a201

View File

@ -28,6 +28,13 @@ class PluginAPI extends stdClass{
$this->randomNonce = Utils::getRandomBytes(16, false); $this->randomNonce = Utils::getRandomBytes(16, false);
} }
public function __destruct(){
foreach($this->plugins as $p){
$p[0]->__destruct();
}
unset($plugins);
}
public function getList(){ public function getList(){
$list = array(); $list = array();
foreach($this->plugins as $p){ foreach($this->plugins as $p){