summaryrefslogtreecommitdiff
path: root/classes/prefs.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-25 15:49:30 +0300
committerAndrew Dolgov <[email protected]>2021-02-25 15:49:30 +0300
commitdcf0135285f1a515454807cdfe1e819f37a23a86 (patch)
tree923ebbdff110e7890959c38009002307724aec71 /classes/prefs.php
parent59c14e9c0001bc7a01763ecc7d3042dcde978a1a (diff)
logger: shorter syntax
Diffstat (limited to 'classes/prefs.php')
-rw-r--r--classes/prefs.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/classes/prefs.php b/classes/prefs.php
index 2c17cd353..29e315c22 100644
--- a/classes/prefs.php
+++ b/classes/prefs.php
@@ -167,6 +167,10 @@ class Prefs {
};
}
+ private function __clone() {
+ //
+ }
+
static function get_all(int $owner_uid, int $profile_id = null) {
return self::get_instance()->_get_all($owner_uid, $profile_id);
}
@@ -204,7 +208,7 @@ class Prefs {
}
}
- if (get_schema_version(true) >= 141) {
+ if (get_schema_version() >= 141) {
// fill in any overrides from the database
$sth = $this->pdo->prepare("SELECT pref_name, value FROM ttrss_user_prefs2
WHERE owner_uid = :uid AND
@@ -228,7 +232,7 @@ class Prefs {
list ($def_val, $type_hint) = self::_DEFAULTS[$pref_name];
- if (get_schema_version(true) < 141) {
+ if (get_schema_version() < 141) {
return Config::cast_to($def_val, $type_hint);
}
@@ -341,7 +345,7 @@ class Prefs {
}
function migrate(int $owner_uid, int $profile_id = null) {
- if (get_schema_version(true) < 141)
+ if (get_schema_version() < 141)
return;
if (!$profile_id) $profile_id = null;