<?php
-define('UPDATE_VERSION' , 1196);
+define('UPDATE_VERSION' , 1208);
/**
*
if (!$r)
return UPDATE_FAILED;
- proc_run('php',"include/threadupdate.php");
+ proc_run(PRIORITY_LOW, "include/threadupdate.php");
return UPDATE_SUCCESS;
}
set_config('system','community_page_style', CP_NO_COMMUNITY_PAGE);
// Update the central item storage with uid=0
- proc_run('php',"include/threadupdate.php");
+ proc_run(PRIORITY_LOW, "include/threadupdate.php");
return UPDATE_SUCCESS;
}
function update_1180() {
// Fill the new fields in the term table.
- proc_run('php',"include/tagupdate.php");
+ proc_run(PRIORITY_LOW, "include/tagupdate.php");
return UPDATE_SUCCESS;
}
$idx = array_search($plugin, $plugins_arr);
if ($idx !== false){
unset($plugins_arr[$idx]);
- //delete forumlist manually from addon and hook table
+ //delete forumlist manually from addon and hook table
// since uninstall_plugin() don't work here
q("DELETE FROM `addon` WHERE `name` = 'forumlist' ");
q("DELETE FROM `hook` WHERE `file` = 'addon/forumlist/forumlist.php' ");
return UPDATE_SUCCESS;
}
+
+function update_1202() {
+ $r = q("UPDATE `user` SET `account-type` = %d WHERE `page-flags` IN (%d, %d)",
+ dbesc(ACCOUNT_TYPE_COMMUNITY), dbesc(PAGE_COMMUNITY), dbesc(PAGE_PRVGROUP));
+}