Class file relocations

Issue #3878
This commit is contained in:
Adam Magness 2017-11-07 22:57:46 -05:00
commit 4ca68c7af0
151 changed files with 987 additions and 8742 deletions

View file

@ -2,6 +2,7 @@
use Friendica\App;
use Friendica\Core\Config;
use Friendica\Database\DBM;
require_once('include/attach.php');
require_once('include/datetime.php');
@ -15,7 +16,7 @@ function wall_attach_post(App $a) {
$r = q("SELECT `user`.*, `contact`.`id` FROM `user` LEFT JOIN `contact` on `user`.`uid` = `contact`.`uid` WHERE `user`.`nickname` = '%s' AND `user`.`blocked` = 0 and `contact`.`self` = 1 LIMIT 1",
dbesc($nick)
);
if (! dbm::is_result($r)) {
if (! DBM::is_result($r)) {
if ($r_json) {
echo json_encode(array('error'=>t('Invalid request.')));
killme();
@ -58,7 +59,7 @@ function wall_attach_post(App $a) {
intval($contact_id),
intval($page_owner_uid)
);
if (dbm::is_result($r)) {
if (DBM::is_result($r)) {
$can_post = true;
$visitor = $contact_id;
}
@ -144,7 +145,7 @@ function wall_attach_post(App $a) {
dbesc($hash)
);
if (! dbm::is_result($r)) {
if (! DBM::is_result($r)) {
$msg = t('File upload failed.');
if ($r_json) {
echo json_encode(array('error'=>$msg));