]> git.mxchange.org Git - friendica.git/blobdiff - update.php
proc_run was replaced
[friendica.git] / update.php
index 4e945d2091430c15913ee1aab398b2065a54f432..db67d54600c331c56d7d2785d3f058747a9ac1c8 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 
-define('UPDATE_VERSION' , 1217);
+define('UPDATE_VERSION' , 1235);
+
+use Friendica\Core\Worker;
 
 /**
  *
@@ -356,7 +358,7 @@ function update_1035() {
 
 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",
@@ -1596,7 +1598,7 @@ function update_1169() {
        if (!$r)
                return UPDATE_FAILED;
 
-       proc_run(PRIORITY_LOW, "include/threadupdate.php");
+       Worker::add(PRIORITY_LOW, "threadupdate");
 
        return UPDATE_SUCCESS;
 }
@@ -1637,7 +1639,7 @@ function update_1178() {
                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;
 }
@@ -1645,14 +1647,14 @@ function update_1178() {
 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');