X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FPConfig.php;h=2b6618930097c1c2ddf6c149b2a8d9286372331d;hb=761bdafa34bfdf1b2b43a3f06ae092e0925898ac;hp=aa5f75abe737b2350e199ae9083e899e6a6bce0e;hpb=cd9b864045588308e18e16f7a1c1029fd380d8fd;p=friendica.git diff --git a/src/Core/PConfig.php b/src/Core/PConfig.php index aa5f75abe7..2b66189300 100644 --- a/src/Core/PConfig.php +++ b/src/Core/PConfig.php @@ -8,6 +8,7 @@ */ namespace Friendica\Core; +use Friendica\App; use Friendica\BaseObject; require_once 'include/dba.php'; @@ -29,7 +30,7 @@ class PConfig extends BaseObject public static function init($uid) { // Database isn't ready or populated yet - if (!(self::getApp()->mode & \Friendica\App::MODE_DBCONFIGAVAILABLE)) { + if (!(self::getApp()->mode & App::MODE_DBCONFIGAVAILABLE)) { return; } @@ -54,7 +55,7 @@ class PConfig extends BaseObject public static function load($uid, $family) { // Database isn't ready or populated yet - if (!(self::getApp()->mode & \Friendica\App::MODE_DBCONFIGAVAILABLE)) { + if (!(self::getApp()->mode & App::MODE_DBCONFIGAVAILABLE)) { return; } @@ -83,7 +84,7 @@ class PConfig extends BaseObject public static function get($uid, $family, $key, $default_value = null, $refresh = false) { // Database isn't ready or populated yet - if (!(self::getApp()->mode & \Friendica\App::MODE_DBCONFIGAVAILABLE)) { + if (!(self::getApp()->mode & App::MODE_DBCONFIGAVAILABLE)) { return; } @@ -107,12 +108,12 @@ class PConfig extends BaseObject * @param string $key The configuration key to set * @param string $value The value to store * - * @return mixed Stored $value or false + * @return bool Operation success */ public static function set($uid, $family, $key, $value) { // Database isn't ready or populated yet - if (!(self::getApp()->mode & \Friendica\App::MODE_DBCONFIGAVAILABLE)) { + if (!(self::getApp()->mode & App::MODE_DBCONFIGAVAILABLE)) { return false; } @@ -138,7 +139,7 @@ class PConfig extends BaseObject public static function delete($uid, $family, $key) { // Database isn't ready or populated yet - if (!(self::getApp()->mode & \Friendica\App::MODE_DBCONFIGAVAILABLE)) { + if (!(self::getApp()->mode & App::MODE_DBCONFIGAVAILABLE)) { return false; }