mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:10:15 +00:00
Relocate class files from /include to /src/
dbm, Diaspora, dfrn, and NotificationsManager moved to namespace. Includes and references in files updated.
This commit is contained in:
parent
2a814623d8
commit
6189f6c8e7
31 changed files with 7965 additions and 67 deletions
|
@ -1,8 +1,8 @@
|
|||
<?php
|
||||
namespace Friendica\Core;
|
||||
|
||||
use Friendica\Database\Dbm;
|
||||
use dba;
|
||||
use dbm;
|
||||
|
||||
/**
|
||||
* @file include/Core/PConfig.php
|
||||
|
@ -37,7 +37,7 @@ class PConfig {
|
|||
$a = get_app();
|
||||
|
||||
$r = dba::select('pconfig', array('v', 'k'), array('cat' => $family, 'uid' => $uid));
|
||||
if (dbm::is_result($r)) {
|
||||
if (Dbm::is_result($r)) {
|
||||
while ($rr = dba::fetch($r)) {
|
||||
$k = $rr['k'];
|
||||
$a->config[$uid][$family][$k] = $rr['v'];
|
||||
|
@ -90,7 +90,7 @@ class PConfig {
|
|||
}
|
||||
|
||||
$ret = dba::select('pconfig', array('v'), array('uid' => $uid, 'cat' => $family, 'k' => $key), array('limit' => 1));
|
||||
if (dbm::is_result($ret)) {
|
||||
if (Dbm::is_result($ret)) {
|
||||
$val = (preg_match("|^a:[0-9]+:{.*}$|s", $ret['v']) ? unserialize($ret['v']) : $ret['v']);
|
||||
$a->config[$uid][$family][$key] = $val;
|
||||
self::$in_db[$uid][$family][$key] = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue