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

git pushMerge branch 'master' of github.com:piwik/piwik

parents 199d67d7 17236dde
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -455,7 +455,11 @@ class Log extends Singleton ...@@ -455,7 +455,11 @@ class Log extends Singleton
$message = vsprintf($message, $sprintfParams); $message = vsprintf($message, $sprintfParams);
} }
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); if (version_compare(phpversion(), '5.3.6', '>=')) {
$backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS | DEBUG_BACKTRACE_PROVIDE_OBJECT);
} else {
$backtrace = debug_backtrace();
}
$tag = Plugin::getPluginNameFromBacktrace($backtrace); $tag = Plugin::getPluginNameFromBacktrace($backtrace);
// if we can't determine the plugin, use the name of the calling class // if we can't determine the plugin, use the name of the calling class
......
...@@ -17,8 +17,8 @@ ...@@ -17,8 +17,8 @@
$piwik_errorMessage = ''; $piwik_errorMessage = '';
// Minimum requirement: Namespaces in 5.3 // Minimum requirement: stream_resolve_include_path in 5.3.2, namespaces in 5.3
$piwik_minimumPHPVersion = '5.3'; $piwik_minimumPHPVersion = '5.3.2';
$piwik_currentPHPVersion = PHP_VERSION; $piwik_currentPHPVersion = PHP_VERSION;
$minimumPhpInvalid = version_compare($piwik_minimumPHPVersion, $piwik_currentPHPVersion) > 0; $minimumPhpInvalid = version_compare($piwik_minimumPHPVersion, $piwik_currentPHPVersion) > 0;
if ($minimumPhpInvalid) { if ($minimumPhpInvalid) {
......
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