Updated to work with new MediaWiki\Title\Title in 1.44

This commit is contained in:
2025-07-10 12:51:00 +02:00
parent 15f8fc5a3b
commit c56a6850a2
13 changed files with 56 additions and 32 deletions

View File

@ -24,6 +24,8 @@
*/
namespace LinkTitles;
use MediaWiki\Title\Title as MWTitle;
/**
* Performs the actual linking of content to existing pages.
*/
@ -61,12 +63,12 @@ class Linker {
/**
* Core function of the extension, performs the actual parsing of the content.
*
* This method receives a Title object and the string representation of the
* This method receives a MWTitle object and the string representation of the
* source page. It does not work on a WikiPage object directly because the
* callbacks in the Extension class do not always get a WikiPage object in the
* first place.
*
* @param \Title &$title Title object for the current page.
* @param MWTitle &$title MWTitle object for the current page.
* @param String $text String that holds the article content
* @return String|null Source page text with links to target pages, or null if no links were added
*/