Skip to content
Extraits de code Groupes Projets
Valider b2800772 rédigé par Matthieu Napoli's avatar Matthieu Napoli
Parcourir les fichiers

Remove deprecated Config::getConfigSuperUserForBackwardCompatibility()

parent 87577b6d
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -6,6 +6,7 @@ This is a changelog for Piwik platform developers. All changes for our HTTP API'
### Breaking Changes
* The deprecated method `Period::factory()` has been removed. Use `Period\Factory` instead.
* The deprecated method `Config::getConfigSuperUserForBackwardCompatibility()` has been removed.
## Piwik 2.11.0
......
......@@ -455,10 +455,7 @@ class Config extends Singleton
: $this->configLocal[$name];
}
if ($section === null && $name == 'superuser') {
$user = $this->getConfigSuperUserForBackwardCompatibility();
return $user;
} else if ($section === null) {
if ($section === null) {
$section = array();
}
......@@ -469,28 +466,6 @@ class Config extends Singleton
return $tmp;
}
/**
* @deprecated since version 2.0.4
*/
public function getConfigSuperUserForBackwardCompatibility()
{
try {
$db = Db::get();
$user = $db->fetchRow("SELECT login, email, password
FROM " . Common::prefixTable("user") . "
WHERE superuser_access = 1
ORDER BY date_registered ASC LIMIT 1");
if (!empty($user)) {
$user['bridge'] = 1;
return $user;
}
} catch (Exception $e) {}
return array();
}
public function getFromGlobalConfig($name)
{
if (isset($this->configGlobal[$name])) {
......
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