Skip to content
Extraits de code Groupes Projets
Valider 45734bee rédigé par mattab's avatar mattab
Parcourir les fichiers

Fixing minor issues

parent d6533762
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -76,7 +76,9 @@ if (!function_exists('Piwik_ExitWithMessage')) { ...@@ -76,7 +76,9 @@ if (!function_exists('Piwik_ExitWithMessage')) {
*/ */
function Piwik_ShouldPrintBackTraceWithMessage() function Piwik_ShouldPrintBackTraceWithMessage()
{ {
return defined('PIWIK_PRINT_ERROR_BACKTRACE') || defined('PIWIK_TRACKER_DEBUG'); $bool = (defined('PIWIK_PRINT_ERROR_BACKTRACE') && PIWIK_PRINT_ERROR_BACKTRACE)
|| (defined('PIWIK_TRACKER_DEBUG') && PIWIK_TRACKER_DEBUG);
return $bool;
} }
/** /**
......
...@@ -110,7 +110,7 @@ class PluginInstaller ...@@ -110,7 +110,7 @@ class PluginInstaller
$this->removeFolderIfExists($pathExtracted); $this->removeFolderIfExists($pathExtracted);
if (0 == ($pluginFiles = $archive->extract($pathExtracted))) { if (0 == ($pluginFiles = $archive->extract($pathExtracted))) {
throw new PluginInstallerException(Piwik_TranslateException('Plugin_ExceptionArchiveIncompatible', $archive->errorInfo())); throw new PluginInstallerException(Piwik_TranslateException('CoreUpdater_ExceptionArchiveIncompatible', $archive->errorInfo()));
} }
if (0 == count($pluginFiles)) { if (0 == count($pluginFiles)) {
...@@ -179,7 +179,7 @@ class PluginInstaller ...@@ -179,7 +179,7 @@ class PluginInstaller
} }
if (empty($firstSubFolder)) { if (empty($firstSubFolder)) {
throw new PluginInstallerException('The plugin ZIP file does not contain a subfolder.'); throw new PluginInstallerException('The plugin ZIP file does not contain a subfolder, but Piwik expects plugin files to be within a subfolder in the Zip archive.');
} }
return $firstSubFolder; return $firstSubFolder;
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter