Skip to content
Extraits de code Groupes Projets
Valider 9bf2d1ca rédigé par Thomas Steur's avatar Thomas Steur
Parcourir les fichiers

maybe this fixes the Mysql server has gone error? I think it does not really...

maybe this fixes the Mysql server has gone error? I think it does not really uninstall columns but adds them all the time.
parent 8a9ec539
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -1291,7 +1291,7 @@ class Manager extends Singleton ...@@ -1291,7 +1291,7 @@ class Manager extends Singleton
/** /**
* @param $pluginName * @param $pluginName
*/ */
private function executePluginUninstall($pluginName) public function executePluginUninstall($pluginName)
{ {
try { try {
$plugin = $this->getLoadedPlugin($pluginName); $plugin = $this->getLoadedPlugin($pluginName);
......
...@@ -311,9 +311,10 @@ class Fixture extends PHPUnit_Framework_Assert ...@@ -311,9 +311,10 @@ class Fixture extends PHPUnit_Framework_Assert
public static function unloadAllPlugins() public static function unloadAllPlugins()
{ {
try { try {
$plugins = \Piwik\Plugin\Manager::getInstance()->getLoadedPlugins(); $manager = \Piwik\Plugin\Manager::getInstance();
$plugins = $manager->getLoadedPlugins();
foreach ($plugins AS $plugin) { foreach ($plugins AS $plugin) {
$plugin->uninstall(); $manager->executePluginUninstall($plugin->getPluginName());
} }
\Piwik\Plugin\Manager::getInstance()->unloadPlugins(); \Piwik\Plugin\Manager::getInstance()->unloadPlugins();
} catch (Exception $e) { } catch (Exception $e) {
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter