use Friendica\Core\Config;
use Friendica\Core\PConfig;
use Friendica\Core\System;
+use Friendica\Database\DBM;
require_once "include/template_processor.php";
require_once "include/friendica_smarty.php";
dbesc($resource)
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$found = true;
}
} while ($found == true);
dbesc(NETWORK_OSTATUS),
dbesc(NETWORK_DIASPORA)
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$total = intval($r[0]['total']);
}
if (! $total) {
dbesc(NETWORK_DIASPORA),
intval($shown)
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$contacts = array();
foreach ($r AS $contact) {
$contacts[] = $contact["id"];
$r = q("SELECT `id`, `uid`, `addr`, `url`, `name`, `thumb`, `network` FROM `contact` WHERE `id` IN (%s)",
dbesc(implode(",", $contacts)));
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
$contacts = sprintf( tt('%d Contact','%d Contacts', $total),$total);
$micropro = Array();
foreach ($r as $rr) {
$x = q("SELECT `uid` FROM `user` WHERE `guid` = '%s' LIMIT 1",
dbesc($guid)
);
- if (! dbm::is_result($x)) {
+ if (! DBM::is_result($x)) {
$found = false;
}
} while ($found == true);
intval($termtype),
intval($uid));
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
unset($deleted_tags[$key]);
}
else {
intval($item),
intval($uid)
);
- if (dbm::is_result($r)) {
+ if (DBM::is_result($r)) {
if (! stristr($r[0]['file'],'[' . file_tag_encode($file) . ']')) {
q("UPDATE `item` SET `file` = '%s' WHERE `id` = %d AND `uid` = %d",
dbesc($r[0]['file'] . '[' . file_tag_encode($file) . ']'),
intval($item),
intval($uid)
);
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
return false;
}
intval($termtype),
intval($uid));
- if (! dbm::is_result($r)) {
+ if (! DBM::is_result($r)) {
$saved = PConfig::get($uid,'system','filetags');
PConfig::set($uid, 'system', 'filetags', str_replace($pattern, '', $saved));
}