Allow callback to be set by options array, inspired by bug 27391
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 14 Feb 2011 17:16:39 +0000 (17:16 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 14 Feb 2011 17:16:39 +0000 (17:16 +0000)
includes/HttpFunctions.php

index 7e5bc1f..924f543 100644 (file)
@@ -188,7 +188,7 @@ class MWHttpRequest {
                }
 
                $members = array( "postData", "proxy", "noProxy", "sslVerifyHost", "caInfo",
-                                 "method", "followRedirects", "maxRedirects", "sslVerifyCert" );
+                                 "method", "followRedirects", "maxRedirects", "sslVerifyCert", "callback" );
 
                foreach ( $members as $o ) {
                        if ( isset( $options[$o] ) ) {