Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-10-01 06:11:11 +0400
committermattab <matthieu.aubry@gmail.com>2013-10-01 06:11:11 +0400
commit45734beee66848ae12a1518a0e0979bea64a9a48 (patch)
tree527d5fa15e3eb534a060666826938e868446d467
parentd6533762daa330394f82f414d21682a5ba217ba3 (diff)
Fixing minor issues
-rw-r--r--core/testMinimumPhpVersion.php4
-rw-r--r--plugins/CorePluginsAdmin/PluginInstaller.php4
2 files changed, 5 insertions, 3 deletions
diff --git a/core/testMinimumPhpVersion.php b/core/testMinimumPhpVersion.php
index 532b68153c..ce64bb44f1 100644
--- a/core/testMinimumPhpVersion.php
+++ b/core/testMinimumPhpVersion.php
@@ -76,7 +76,9 @@ if (!function_exists('Piwik_ExitWithMessage')) {
*/
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;
}
/**
diff --git a/plugins/CorePluginsAdmin/PluginInstaller.php b/plugins/CorePluginsAdmin/PluginInstaller.php
index 5f634f048e..d284ff75c8 100644
--- a/plugins/CorePluginsAdmin/PluginInstaller.php
+++ b/plugins/CorePluginsAdmin/PluginInstaller.php
@@ -110,7 +110,7 @@ class PluginInstaller
$this->removeFolderIfExists($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)) {
@@ -179,7 +179,7 @@ class PluginInstaller
}
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;