Fix case of wfWikiID calls
authorAdam Roses Wight <awight@wikimedia.org>
Mon, 14 Dec 2015 01:20:41 +0000 (17:20 -0800)
committerAdam Roses Wight <awight@wikimedia.org>
Mon, 14 Dec 2015 01:20:41 +0000 (17:20 -0800)
Change-Id: I1f980962dd2d0b2f05b14e506f679e21e3d67334

includes/api/ApiMain.php
includes/user/LocalIdLookup.php

index 0d1314f..49b9786 100644 (file)
@@ -1294,7 +1294,7 @@ class ApiMain extends ApiBase {
                        'dt' => date( 'c' ),
                        'client_ip' => $request->getIP(),
                        'user_agent' => $this->getUserAgent(),
-                       'wiki' => wfWikiId(),
+                       'wiki' => wfWikiID(),
                        'time_backend_ms' => round( $time * 1000 ),
                        'params' => array(),
                );
index 04c5b90..58892ea 100644 (file)
@@ -40,7 +40,7 @@ class LocalIdLookup extends CentralIdLookup {
                }
 
                // Easy case, we're checking locally
-               if ( $wikiId === null || $wikiId === wfWikiId() ) {
+               if ( $wikiId === null || $wikiId === wfWikiID() ) {
                        return true;
                }