]> git.mxchange.org Git - friendica.git/commitdiff
No german compound wording :-)
authorMichael <heluecht@pirati.ca>
Sun, 19 Nov 2017 19:47:04 +0000 (19:47 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 19 Nov 2017 19:47:04 +0000 (19:47 +0000)
mod/item.php
src/Core/Worker.php
src/Worker/CreateShadowEntry.php [new file with mode: 0644]
src/Worker/CreateShadowentry.php [deleted file]

index 0e2e657049cf74adfd872962beb65f9cf015066e..2fcaa6c3f23d1cac0a2343b973927eb5a250c91b 100644 (file)
@@ -1064,7 +1064,7 @@ function item_post(App $a) {
        // We now do it in the background to save some time.
        // This is important in interactive environments like the frontend or the API.
        // We don't fork a new process since this is done anyway with the following command
-       Worker::add(array('priority' => PRIORITY_HIGH, 'dont_fork' => true), "CreateShadowentry", $post_id);
+       Worker::add(array('priority' => PRIORITY_HIGH, 'dont_fork' => true), "CreateShadowEntry", $post_id);
 
        // Call the background process that is delivering the item to the receivers
        Worker::add(PRIORITY_HIGH, "Notifier", $notify_type, $post_id);
index 7d130c1e3a381a781db05cd312bcd54c36f2bf18..9e69d4173a807db96131eebe276465b5a9961ddd 100644 (file)
@@ -923,7 +923,7 @@ class Worker {
         *
         * next args are passed as $cmd command line
         * or: Worker::add(PRIORITY_HIGH, "Notifier", "drop", $drop_id);
-        * or: Worker::add(array('priority' => PRIORITY_HIGH, 'dont_fork' => true), "CreateShadowentry", $post_id);
+        * or: Worker::add(array('priority' => PRIORITY_HIGH, 'dont_fork' => true), "CreateShadowEntry", $post_id);
         *
         * @note $cmd and string args are surrounded with ""
         *
diff --git a/src/Worker/CreateShadowEntry.php b/src/Worker/CreateShadowEntry.php
new file mode 100644 (file)
index 0000000..cf95ec6
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+/**
+ * @file src/Worker/CreateShadowEntry.php
+ * @brief This script creates posts with UID = 0 for a given public post.
+ *
+ * This script is started from mod/item.php to save some time when doing a post.
+ */
+
+namespace Friendica\Worker;
+
+require_once("include/threads.php");
+
+class CreateShadowEntry {
+       public static function execute($message_id = 0) {
+               if (empty($message_id)) {
+                       return;
+               }
+
+               add_shadow_entry($message_id);
+       }
+}
diff --git a/src/Worker/CreateShadowentry.php b/src/Worker/CreateShadowentry.php
deleted file mode 100644 (file)
index cc05420..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-<?php
-/**
- * @file src/Worker/CreateShadowentry.php
- * @brief This script creates posts with UID = 0 for a given public post.
- *
- * This script is started from mod/item.php to save some time when doing a post.
- */
-
-namespace Friendica\Worker;
-
-require_once("include/threads.php");
-
-class CreateShadowentry {
-       public static function execute($message_id = 0) {
-               if (empty($message_id)) {
-                       return;
-               }
-
-               add_shadow_entry($message_id);
-       }
-}