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
path: root/core
diff options
context:
space:
mode:
authorMatthieu Napoli <matthieu@mnapoli.fr>2015-03-10 05:45:55 +0300
committerMatthieu Napoli <matthieu@mnapoli.fr>2015-03-10 05:59:47 +0300
commitb2800772d53741fc14cb51d8cbe619734e8f873e (patch)
tree39cd1b2dd2242ce58cce4eedd988d4a9daedbd21 /core
parent87577b6d8d1b3e1ca083f0a5d895a5643fd88339 (diff)
Remove deprecated Config::getConfigSuperUserForBackwardCompatibility()
Diffstat (limited to 'core')
-rw-r--r--core/Config.php27
1 files changed, 1 insertions, 26 deletions
diff --git a/core/Config.php b/core/Config.php
index 014424c119..e28f581ea8 100644
--- a/core/Config.php
+++ b/core/Config.php
@@ -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])) {