]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/widget.php
better output for registration confirmation
[quix0rs-gnu-social.git] / lib / widget.php
index 0c52748f38f0bc7e4dac4c36e047e29d01ff0ede..f9b71525598365a939933a57c3231228401a02dc 100644 (file)
@@ -28,7 +28,7 @@
  * @link      http://status.net/
  */
 
-if (!defined('LACONICA')) {
+if (!defined('STATUSNET') && !defined('LACONICA')) {
     exit(1);
 }
 
@@ -79,4 +79,17 @@ class Widget
     function show()
     {
     }
+
+    /**
+     * Delegate output methods to the outputter attribute.
+     *
+     * @param string $name      Name of the method
+     * @param array  $arguments Arguments called
+     *
+     * @return mixed Return value of the method.
+     */
+    function __call($name, $arguments)
+    {
+        return call_user_func_array(array($this->out, $name), $arguments);
+    }
 }