]> git.mxchange.org Git - friendica.git/commitdiff
there is already $this->backend around, needs renaming
authorRoland Haeder <roland@mxchange.org>
Sat, 25 Mar 2017 14:12:24 +0000 (15:12 +0100)
committerRoland Haeder <roland@mxchange.org>
Sat, 25 Mar 2017 14:12:41 +0000 (15:12 +0100)
Signed-off-by: Roland Haeder <roland@mxchange.org>
boot.php

index 474cb82057721febe1b0d6cfb5246280b4773f4c..92acb1b248f342396ced07ef915d08c3b02ec853 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -1255,29 +1255,29 @@ class App {
         * @return bool Is it a known backend?
         */
        function is_backend() {
-               static $backend = array();
-               $backend[] = "_well_known";
-               $backend[] = "api";
-               $backend[] = "dfrn_notify";
-               $backend[] = "fetch";
-               $backend[] = "hcard";
-               $backend[] = "hostxrd";
-               $backend[] = "nodeinfo";
-               $backend[] = "noscrape";
-               $backend[] = "p";
-               $backend[] = "poco";
-               $backend[] = "post";
-               $backend[] = "proxy";
-               $backend[] = "pubsub";
-               $backend[] = "pubsubhubbub";
-               $backend[] = "receive";
-               $backend[] = "rsd_xml";
-               $backend[] = "salmon";
-               $backend[] = "statistics_json";
-               $backend[] = "xrd";
+               static $backends = array();
+               $backends[] = "_well_known";
+               $backends[] = "api";
+               $backends[] = "dfrn_notify";
+               $backends[] = "fetch";
+               $backends[] = "hcard";
+               $backends[] = "hostxrd";
+               $backends[] = "nodeinfo";
+               $backends[] = "noscrape";
+               $backends[] = "p";
+               $backends[] = "poco";
+               $backends[] = "post";
+               $backends[] = "proxy";
+               $backends[] = "pubsub";
+               $backends[] = "pubsubhubbub";
+               $backends[] = "receive";
+               $backends[] = "rsd_xml";
+               $backends[] = "salmon";
+               $backends[] = "statistics_json";
+               $backends[] = "xrd";
 
                // Check if current module is in backend or backend flag is set
-               return (in_array($this->module, self::$backend) || $this->backend);
+               return (in_array($this->module, self::$backends) || $this->backend);
        }
 
        /**