From 1951880fc96e3d6c4b4991c898e6009eba1f9a7f Mon Sep 17 00:00:00 2001 From: gesinn-it-ilm Date: Mon, 23 Dec 2024 20:39:43 +0100 Subject: [PATCH] IdProviderFactory.php - update function param, add $id instead of $text --- src/IdProviderFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) {