Skip to content

Commit

Permalink
IdProviderFactory.php
Browse files Browse the repository at this point in the history
- update function param, add $id instead of $text
  • Loading branch information
gesinn-it-ilm committed Dec 23, 2024
1 parent ba5185f commit 1951880
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/IdProviderFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) {
Expand Down

0 comments on commit 1951880

Please sign in to comment.