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

Making class_exists calls consistently use \\

parent adb16dff
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -61,7 +61,7 @@ class UIAssetMinifier extends Singleton
private static function validateDependency()
{
if (!class_exists("JShrink\Minifier"))
throw new Exception("JShrink dependency is managed using Composer. <br> $ php composer.phar update ");
if (!class_exists("JShrink\\Minifier"))
throw new Exception("JShrink dependency is managed using Composer. <br>php composer.phar update ");
}
}
......@@ -120,7 +120,7 @@ class Filechecks
require_once $manifest;
}
if (!class_exists('\\Piwik\\Manifest')) {
if (!class_exists('Piwik\\Manifest')) {
$git = SettingsPiwik::getCurrentGitBranch();
if(empty($git)) {
$messages[] = Piwik::translate('General_WarningFileIntegrityNoManifest') . " If you are deploying Piwik from Git, this message is normal.";
......
......@@ -826,7 +826,7 @@ class Manager extends Singleton
private function loadTranslation($plugin, $langCode)
{
// we are in Tracker mode if Loader is not (yet) loaded
if (!class_exists('Piwik\Loader', false)) {
if (!class_exists('Piwik\\Loader', false)) {
return false;
}
......
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