mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 01:39:30 +02:00
Updated to work with new MediaWiki\Title\Title in 1.44
This commit is contained in:
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user