]> git.mxchange.org Git - friendica.git/blobdiff - src/Worker/Cron.php
"UpdateServers" added
[friendica.git] / src / Worker / Cron.php
index 0db70f5a8dddc801b86eafe9a6451979ce92eeeb..356be46e44b694987689c4394e620a806ec7b057 100644 (file)
@@ -42,7 +42,7 @@ class Cron
                Worker::add(PRIORITY_LOW, "DiscoverPoCo");
 
                // run the process to update locally stored global contacts in the background
-               Worker::add(PRIORITY_LOW, "DiscoverPoCo", "checkcontact");
+               Worker::add(PRIORITY_LOW, 'DiscoverContacts');
 
                // Expire and remove user entries
                Worker::add(PRIORITY_MEDIUM, "CronJobs", "expire_and_remove_users");
@@ -73,9 +73,9 @@ class Cron
                        // update nodeinfo data
                        Worker::add(PRIORITY_LOW, "CronJobs", "nodeinfo");
 
-                       Worker::add(PRIORITY_LOW, "DiscoverPoCo", "update_server");
+                       Worker::add(PRIORITY_LOW, 'UpdateServers');
 
-                       Worker::add(PRIORITY_LOW, "DiscoverPoCo", "suggestions");
+                       Worker::add(PRIORITY_LOW, 'UpdateSuggestions');
 
                        Worker::add(PRIORITY_LOW, 'Expire');
 
@@ -104,7 +104,7 @@ class Cron
                // Ensure to have a .htaccess file.
                // this is a precaution for systems that update automatically
                $basepath = $a->getBasePath();
-               if (!file_exists($basepath . '/.htaccess')) {
+               if (!file_exists($basepath . '/.htaccess') && is_writable($basepath)) {
                        copy($basepath . '/.htaccess-dist', $basepath . '/.htaccess');
                }