*/
namespace Friendica\Core;
+use Friendica\App;
use Friendica\BaseObject;
use Friendica\Core\Config;
public static function init()
{
// Database isn't ready or populated yet
- if (!(self::getApp()->mode & \Friendica\App::MODE_DBCONFIGAVAILABLE)) {
+ if (!(self::getApp()->mode & App::MODE_DBCONFIGAVAILABLE)) {
return;
}
public static function load($family = "config")
{
// Database isn't ready or populated yet
- if (!(self::getApp()->mode & \Friendica\App::MODE_DBCONFIGAVAILABLE)) {
+ if (!(self::getApp()->mode & App::MODE_DBCONFIGAVAILABLE)) {
return;
}
public static function get($family, $key, $default_value = null, $refresh = false)
{
// Database isn't ready or populated yet, fallback to file config
- if (!(self::getApp()->mode & \Friendica\App::MODE_DBCONFIGAVAILABLE)) {
+ if (!(self::getApp()->mode & App::MODE_DBCONFIGAVAILABLE)) {
return self::getApp()->getConfigValue($family, $key, $default_value);
}
public static function set($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;
}
public static function delete($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;
}
*/
namespace Friendica\Core;
+use Friendica\App;
use Friendica\BaseObject;
require_once 'include/dba.php';
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;
}
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;
}
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;
}
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;
}
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;
}