]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/statusnet.php
OStatus: save file records for enclosures
[quix0rs-gnu-social.git] / lib / statusnet.php
index 9c7ede5a5d4fe50164ab533d03862c1fe98c3041..7c4df84b4a7692ed59c5b770d5a044dbcdcfcc55 100644 (file)
@@ -30,6 +30,7 @@ global $config, $_server, $_path;
 class StatusNet
 {
     protected static $have_config;
+    protected static $is_api;
 
     /**
      * Configure and instantiate a plugin into the current configuration.
@@ -63,7 +64,7 @@ class StatusNet
                 }
             }
             if (!class_exists($pluginclass)) {
-                throw new ServerException(500, "Plugin $name not found.");
+                throw new ServerException("Plugin $name not found.", 500);
             }
         }
 
@@ -201,6 +202,16 @@ class StatusNet
         return self::$have_config;
     }
 
+    public function isApi()
+    {
+        return self::$is_api;
+    }
+    
+    public function setApi($mode)
+    {
+        self::$is_api = $mode;
+    }
+
     /**
      * Build default configuration array
      * @return array