]> git.mxchange.org Git - friendica.git/commitdiff
"rawcontent" is now a baseobject method
authorMichael <heluecht@pirati.ca>
Sun, 30 Sep 2018 20:47:28 +0000 (20:47 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 30 Sep 2018 20:47:28 +0000 (20:47 +0000)
index.php
src/BaseModule.php

index f535bcc0d1fcab340557208c28a1aa1f1613b6d4..46b95c75e4bfe0b0962b81f7f54cbea9ad763179 100644 (file)
--- a/index.php
+++ b/index.php
@@ -353,7 +353,7 @@ if ($a->module_loaded) {
 
        // "rawContent" is especially meant for technical endpoints.
        // This endpoint doesn't need any theme initialization or other comparable stuff.
-       if (!$a->error && $a->module_class && method_exists($a->module_class, 'rawContent')) {
+       if (!$a->error && $a->module_class) {
                call_user_func([$a->module_class, 'rawContent']);
        }
 
index 3ad4a4f055a7be33ebba9b3a1dfe42556ca7f11c..1da9397a7833da42e8ab778f8268544c02344f17 100644 (file)
@@ -21,7 +21,16 @@ abstract class BaseModule extends BaseObject
         */
        public static function init()
        {
+       }
 
+       /**
+        * @brief Module GET method to display raw content from technical endpoints
+        *
+        * Extend this method if the module is supposed to return communication data,
+        * e.g. from protocol implementations.
+        */
+       public static function rawContent()
+       {
        }
 
        /**