]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/statusnet.php
let avatars be served over SSL
[quix0rs-gnu-social.git] / lib / statusnet.php
index 29e9030267c0d6ad9e9fa0db5f897a661e773129..4f82fdaa6cb64ee22372393124c002d5536f63fd 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);
             }
         }
 
@@ -147,6 +148,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