From 86ba73e1efd0f4c463eb700100623f643736d94c Mon Sep 17 00:00:00 2001 From: Adam Roses Wight Date: Sun, 13 Dec 2015 17:20:41 -0800 Subject: [PATCH] Fix case of wfWikiID calls Change-Id: I1f980962dd2d0b2f05b14e506f679e21e3d67334 --- includes/api/ApiMain.php | 2 +- includes/user/LocalIdLookup.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index 0d1314fb78..49b9786ccb 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -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(), ); diff --git a/includes/user/LocalIdLookup.php b/includes/user/LocalIdLookup.php index 04c5b905ab..58892ea5ee 100644 --- a/includes/user/LocalIdLookup.php +++ b/includes/user/LocalIdLookup.php @@ -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; } -- 2.20.1