Merge "Replace several uses of wfWikiId() with WikiMap methods"
[lhc/web/wiklou.git] / includes / api / ApiMain.php
index 6faac96..f60443c 100644 (file)
@@ -321,7 +321,7 @@ class ApiMain extends ApiBase {
                $request = $this->getRequest();
 
                // JSONP mode
-               if ( $request->getVal( 'callback' ) !== null ) {
+               if ( $request->getCheck( 'callback' ) ) {
                        $this->lacksSameOriginSecurity = true;
                        return true;
                }