insert a clear:both div at the bottom of the content to stop floating content from...
[lhc/web/wiklou.git] / includes / AjaxDispatcher.php
index 0d4e830..7b85ed2 100644 (file)
@@ -84,8 +84,13 @@ class AjaxDispatcher {
                        wfHttpError( 400, 'Bad Request',
                                "unknown function " . (string) $this->func_name );
                } else {
+                       if ( strpos( $this->func_name, '::' ) !== false ) {
+                               $func = explode( '::', $this->func_name, 2 );
+                       } else {
+                               $func = $this->func_name;
+                       }
                        try {
-                               $result = call_user_func_array($this->func_name, $this->args);
+                               $result = call_user_func_array($func, $this->args);
 
                                if ( $result === false || $result === NULL ) {
                                        wfHttpError( 500, 'Internal Error',
@@ -115,4 +120,4 @@ class AjaxDispatcher {
        }
 }
 
-?>
+