diff --git a/src/IdProviderFactory.php b/src/IdProviderFactory.php index 142793a..6e741e0 100644 --- a/src/IdProviderFactory.php +++ b/src/IdProviderFactory.php @@ -67,8 +67,8 @@ private static function dbExecute() { * whether the WikiPage associated with the given title/ID exists or not. */ private static function getUniqueIdChecker() { - return function ( $text ) { - $title = Title::newFromText( $text ); + return function ( $id ) { + $title = Title::newFromText( $id ); // If no Title object is found, the page does not exist if ( $title === null ) {