mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 01:25:56 +00:00
use constants in get_pref()/set_pref()
This commit is contained in:
@@ -73,7 +73,7 @@ class UserHelper {
|
||||
if (!$pluginhost) $pluginhost = PluginHost::getInstance();
|
||||
|
||||
if ($owner_uid && SCHEMA_VERSION >= 100 && empty($_SESSION["safe_mode"])) {
|
||||
$plugins = get_pref("_ENABLED_PLUGINS", $owner_uid);
|
||||
$plugins = get_pref(Prefs::_ENABLED_PLUGINS, $owner_uid);
|
||||
|
||||
$pluginhost->load((string)$plugins, PluginHost::KIND_USER, $owner_uid);
|
||||
|
||||
@@ -125,7 +125,7 @@ class UserHelper {
|
||||
}
|
||||
|
||||
static function print_user_stylesheet() {
|
||||
$value = get_pref('USER_STYLESHEET');
|
||||
$value = get_pref(Prefs::USER_STYLESHEET);
|
||||
|
||||
if ($value) {
|
||||
print "<style type='text/css' id='user_css_style'>";
|
||||
|
||||
Reference in New Issue
Block a user