<?php
-define('UPDATE_VERSION' , 1223);
+define('UPDATE_VERSION' , 1235);
+
+use Friendica\Core\Worker;
/**
*
function update_1036() {
- $r = dbq("SELECT * FROM `contact` WHERE `network` = 'dfrn' && `photo` LIKE '%include/photo%' ");
+ $r = dbq("SELECT * FROM `contact` WHERE `network` = 'dfrn' AND `photo` LIKE '%include/photo%' ");
if (dbm::is_result($r)) {
foreach ($r as $rr) {
q("UPDATE `contact` SET `photo` = '%s', `thumb` = '%s', `micro` = '%s' WHERE `id` = %d",
if (!$r)
return UPDATE_FAILED;
- proc_run(PRIORITY_LOW, "include/threadupdate.php");
+ Worker::add(PRIORITY_LOW, "threadupdate");
return UPDATE_SUCCESS;
}
set_config('system','community_page_style', CP_NO_COMMUNITY_PAGE);
// Update the central item storage with uid=0
- proc_run(PRIORITY_LOW, "include/threadupdate.php");
+ Worker::add(PRIORITY_LOW, "threadupdate");
return UPDATE_SUCCESS;
}
function update_1180() {
// Fill the new fields in the term table.
- proc_run(PRIORITY_LOW, "include/tagupdate.php");
+ Worker::add(PRIORITY_LOW, "tagupdate");
return UPDATE_SUCCESS;
}
function update_1188() {
- if (strlen(get_config('system','directory_submit_url')) AND
+ if (strlen(get_config('system','directory_submit_url')) &&
!strlen(get_config('system','directory'))) {
set_config('system','directory', dirname(get_config('system','directory_submit_url')));
del_config('system','directory_submit_url');