]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Removed notices that revealed themselfes over night ... (#5645)
[friendica.git] / update.php
index 47434b3373a4480900df5fe6b32807988cb68d81..56f285f2df9037f8f2dc405258f7bd51f495554b 100644 (file)
@@ -149,7 +149,7 @@ function update_1191() {
 
 function update_1203() {
        $r = q("UPDATE `user` SET `account-type` = %d WHERE `page-flags` IN (%d, %d)",
-               DBA::escape(ACCOUNT_TYPE_COMMUNITY), DBA::escape(PAGE_COMMUNITY), DBA::escape(PAGE_PRVGROUP));
+               DBA::escape(Contact::ACCOUNT_TYPE_COMMUNITY), DBA::escape(Contact::PAGE_COMMUNITY), DBA::escape(Contact::PAGE_PRVGROUP));
 }
 
 function update_1244() {
@@ -246,15 +246,3 @@ function update_1278() {
 
        return UPDATE_SUCCESS;
 }
-
-function update_1278() {
-       Config::set('system', 'maintenance', 1);
-       Config::set('system', 'maintenance_reason', L10n::t('%s: Updating post-type.', DBM::date().' '.date('e')));
-
-       Item::update(['post-type' => Item::PT_PAGE], ['bookmark' => true]);
-       Item::update(['post-type' => Item::PT_PERSONAL_NOTE], ['type' => 'note']);
-
-       Config::set('system', 'maintenance', 0);
-
-       return UPDATE_SUCCESS;
-}