X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=56f285f2df9037f8f2dc405258f7bd51f495554b;hb=b6e57989dc9a3a26a832666cba17037eb222c7e7;hp=e7543728d2f6d25178a02a9103a2847fd5b641fe;hpb=8ddb94ef0669948d11da6040e47eab386b91f3db;p=friendica.git diff --git a/update.php b/update.php index e7543728d2..56f285f2df 100644 --- a/update.php +++ b/update.php @@ -6,7 +6,6 @@ use Friendica\Core\L10n; use Friendica\Core\PConfig; use Friendica\Core\Worker; use Friendica\Database\DBA; -use Friendica\Database\DBM; use Friendica\Model\Contact; use Friendica\Model\Item; use Friendica\Model\User; @@ -50,10 +49,10 @@ function update_1178() { $profile["pub_keywords"] = profile_clean_keywords($profile["pub_keywords"]); $r = q("UPDATE `contact` SET `about` = '%s', `location` = '%s', `keywords` = '%s', `gender` = '%s' WHERE `self` AND `uid` = %d", - dbesc($profile["about"]), - dbesc($profile["locality"]), - dbesc($profile["pub_keywords"]), - dbesc($profile["gender"]), + DBA::escape($profile["about"]), + DBA::escape($profile["locality"]), + DBA::escape($profile["pub_keywords"]), + DBA::escape($profile["gender"]), intval($profile["uid"]) ); } @@ -113,11 +112,11 @@ function update_1191() { // select old formlist addon entries $r = q("SELECT `uid`, `cat`, `k`, `v` FROM `pconfig` WHERE `cat` = '%s' ", - dbesc('forumlist') + DBA::escape('forumlist') ); // convert old forumlist addon entries in new config entries - if (DBM::is_result($r)) { + if (DBA::isResult($r)) { foreach ($r as $rr) { $uid = $rr['uid']; $family = $rr['cat']; @@ -150,7 +149,7 @@ function update_1191() { function update_1203() { $r = q("UPDATE `user` SET `account-type` = %d WHERE `page-flags` IN (%d, %d)", - dbesc(ACCOUNT_TYPE_COMMUNITY), dbesc(PAGE_COMMUNITY), dbesc(PAGE_PRVGROUP)); + DBA::escape(Contact::ACCOUNT_TYPE_COMMUNITY), DBA::escape(Contact::PAGE_COMMUNITY), DBA::escape(Contact::PAGE_PRVGROUP)); } function update_1244() {