mirror of
https://github.com/diocloid/LinkTitles.git
synced 2025-07-13 01:39:30 +02:00
Revise Special class.
- Change: The $wgLinkTitlesBatchTimeLimit configuration variable was renamed to $wgLinkTitlesSpecialPageReloadAfter.
This commit is contained in:
@ -84,13 +84,13 @@ class Extension {
|
||||
* @returns bool True if the page exists, false if the page does not exist
|
||||
*/
|
||||
public static function processPage( \Title $title, \RequestContext $context ) {
|
||||
$page = \WikiPage::factory($title);
|
||||
$page = \WikiPage::factory( $title );
|
||||
$content = $page->getContent();
|
||||
if ( $content != null ) {
|
||||
$text = $content->getContentHandler()->serializeContent($content);
|
||||
$text = $content->getContentHandler()->serializeContent( $content );
|
||||
$config = new Config();
|
||||
$linker = new Linker( $config );
|
||||
$newText = $linker->linkContent($title, $text);
|
||||
$newText = $linker->linkContent( $title, $text );
|
||||
if ( $text != $newText ) {
|
||||
$content = $content->getContentHandler()->unserializeContent( $newText );
|
||||
$page->doEditContent(
|
||||
|
Reference in New Issue
Block a user