2005-09-01 06:42:20 +00:00
|
|
|
<?php
|
2010-09-05 13:15:48 +00:00
|
|
|
/**
|
2012-06-25 19:54:41 +00:00
|
|
|
* Clean up broken, unparseable titles.
|
2005-09-01 06:42:20 +00:00
|
|
|
*
|
2024-02-09 01:02:16 +00:00
|
|
|
* Copyright © 2005 Brooke Vibber <bvibber@wikimedia.org>
|
2014-03-20 15:45:01 +00:00
|
|
|
* https://www.mediawiki.org/
|
2006-01-07 13:09:30 +00:00
|
|
|
*
|
2005-09-01 06:42:20 +00:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
2006-01-07 13:09:30 +00:00
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
2005-09-01 06:42:20 +00:00
|
|
|
* (at your option) any later version.
|
2006-01-07 13:09:30 +00:00
|
|
|
*
|
2005-09-01 06:42:20 +00:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
2006-01-07 13:09:30 +00:00
|
|
|
*
|
2005-09-01 06:42:20 +00:00
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
2006-04-05 07:43:17 +00:00
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
2005-09-01 06:42:20 +00:00
|
|
|
* http://www.gnu.org/copyleft/gpl.html
|
|
|
|
|
*
|
2010-09-05 13:15:48 +00:00
|
|
|
* @file
|
2024-02-09 01:02:16 +00:00
|
|
|
* @author Brooke Vibber <bvibber@wikimedia.org>
|
WARNING: HUGE COMMIT
Doxygen documentation update:
* Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group.
* Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file.
* Removed some empty comments
* Removed some ?>
Added following groups:
* ExternalStorage
* JobQueue
* MaintenanceLanguage
One more thing: there are still a lot of warnings when generating the doc.
2008-05-20 17:13:28 +00:00
|
|
|
* @ingroup Maintenance
|
2005-09-01 06:42:20 +00:00
|
|
|
*/
|
|
|
|
|
|
2023-03-01 20:33:26 +00:00
|
|
|
use MediaWiki\Title\Title;
|
2024-09-27 16:12:27 +00:00
|
|
|
use Wikimedia\Rdbms\IDBAccessObject;
|
2017-07-10 22:07:07 +00:00
|
|
|
|
2024-08-27 12:00:25 +00:00
|
|
|
// @codeCoverageIgnoreStart
|
2020-09-23 10:49:16 +00:00
|
|
|
require_once __DIR__ . '/TableCleanup.php';
|
2024-08-27 12:00:25 +00:00
|
|
|
// @codeCoverageIgnoreEnd
|
2005-09-01 06:42:20 +00:00
|
|
|
|
2012-06-25 19:54:41 +00:00
|
|
|
/**
|
|
|
|
|
* Maintenance script to clean up broken, unparseable titles.
|
|
|
|
|
*
|
|
|
|
|
* @ingroup Maintenance
|
|
|
|
|
*/
|
2006-07-13 17:38:01 +00:00
|
|
|
class TitleCleanup extends TableCleanup {
|
2024-07-05 03:27:07 +00:00
|
|
|
|
|
|
|
|
private string $prefix;
|
|
|
|
|
|
2009-08-24 02:14:52 +00:00
|
|
|
public function __construct() {
|
|
|
|
|
parent::__construct();
|
2016-01-30 02:48:47 +00:00
|
|
|
$this->addDescription( 'Script to clean up broken, unparseable titles' );
|
2024-07-05 03:27:07 +00:00
|
|
|
$this->addOption( 'prefix', "Broken pages will be renamed to titles with " .
|
|
|
|
|
"<prefix> prepended before the article name. Defaults to 'Broken'", false, true );
|
2020-04-21 06:57:21 +00:00
|
|
|
$this->setBatchSize( 1000 );
|
2005-09-01 06:42:20 +00:00
|
|
|
}
|
2006-01-07 13:31:29 +00:00
|
|
|
|
2024-07-05 03:27:07 +00:00
|
|
|
/**
|
|
|
|
|
* @inheritDoc
|
|
|
|
|
*/
|
|
|
|
|
public function execute() {
|
|
|
|
|
$this->prefix = $this->getOption( 'prefix', 'Broken' ) . "/";
|
|
|
|
|
// Make sure the prefix itself is a valid title now
|
|
|
|
|
// rather than spewing errors for every page being cleaned up
|
|
|
|
|
// if it's not (We assume below that concatenating the prefix to a title leaves it in NS0)
|
|
|
|
|
// The trailing slash above ensures that concatenating the title to something
|
|
|
|
|
// can't turn it into a namespace or interwiki
|
|
|
|
|
$title = Title::newFromText( $this->prefix );
|
|
|
|
|
if ( !$title || !$title->canExist() || $title->getInterwiki() || $title->getNamespace() !== 0 ) {
|
|
|
|
|
$this->fatalError( "Invalid prefix {$this->prefix}. Must be a valid mainspace title." );
|
|
|
|
|
}
|
|
|
|
|
parent::execute();
|
|
|
|
|
}
|
|
|
|
|
|
2013-09-02 15:49:22 +00:00
|
|
|
/**
|
2020-11-12 22:22:22 +00:00
|
|
|
* @param stdClass $row
|
2013-09-02 15:49:22 +00:00
|
|
|
*/
|
2009-09-24 04:19:25 +00:00
|
|
|
protected function processRow( $row ) {
|
|
|
|
|
$display = Title::makeName( $row->page_namespace, $row->page_title );
|
2023-08-31 09:21:12 +00:00
|
|
|
$verified = $this->getServiceContainer()->getContentLanguage()->normalize( $display );
|
2005-09-01 06:42:20 +00:00
|
|
|
$title = Title::newFromText( $verified );
|
2006-01-07 13:31:29 +00:00
|
|
|
|
2020-01-09 23:48:34 +00:00
|
|
|
if ( $title !== null
|
2009-09-24 04:19:25 +00:00
|
|
|
&& $title->canExist()
|
|
|
|
|
&& $title->getNamespace() == $row->page_namespace
|
2013-10-08 17:11:35 +00:00
|
|
|
&& $title->getDBkey() === $row->page_title
|
|
|
|
|
) {
|
2020-05-19 22:10:27 +00:00
|
|
|
// all is fine
|
|
|
|
|
$this->progress( 0 );
|
2013-10-08 17:11:35 +00:00
|
|
|
|
2013-09-02 15:49:22 +00:00
|
|
|
return;
|
2008-12-16 02:33:38 +00:00
|
|
|
}
|
|
|
|
|
|
2010-05-22 16:50:39 +00:00
|
|
|
if ( $row->page_namespace == NS_FILE && $this->fileExists( $row->page_title ) ) {
|
2009-08-24 02:14:52 +00:00
|
|
|
$this->output( "file $row->page_title needs cleanup, please run cleanupImages.php.\n" );
|
2013-09-02 15:49:22 +00:00
|
|
|
$this->progress( 0 );
|
2020-01-09 23:48:34 +00:00
|
|
|
} elseif ( $title === null ) {
|
2009-08-24 02:14:52 +00:00
|
|
|
$this->output( "page $row->page_id ($display) is illegal.\n" );
|
2005-09-01 06:42:20 +00:00
|
|
|
$this->moveIllegalPage( $row );
|
2013-09-02 15:49:22 +00:00
|
|
|
$this->progress( 1 );
|
2008-12-16 02:33:38 +00:00
|
|
|
} else {
|
2009-08-24 02:14:52 +00:00
|
|
|
$this->output( "page $row->page_id ($display) doesn't match self.\n" );
|
2005-09-01 06:42:20 +00:00
|
|
|
$this->moveInconsistentPage( $row, $title );
|
2013-09-02 15:49:22 +00:00
|
|
|
$this->progress( 1 );
|
2005-09-01 06:42:20 +00:00
|
|
|
}
|
2008-12-16 02:33:38 +00:00
|
|
|
}
|
2006-01-07 13:31:29 +00:00
|
|
|
|
2013-09-02 15:49:22 +00:00
|
|
|
/**
|
|
|
|
|
* @param string $name
|
|
|
|
|
* @return bool
|
|
|
|
|
*/
|
2009-08-24 02:14:52 +00:00
|
|
|
protected function fileExists( $name ) {
|
2008-12-16 02:33:38 +00:00
|
|
|
// XXX: Doesn't actually check for file existence, just presence of image record.
|
|
|
|
|
// This is reasonable, since cleanupImages.php only iterates over the image table.
|
2024-01-17 18:53:40 +00:00
|
|
|
$dbr = $this->getReplicaDB();
|
2022-07-11 13:51:08 +00:00
|
|
|
$row = $dbr->newSelectQueryBuilder()
|
|
|
|
|
->select( '*' )
|
|
|
|
|
->from( 'image' )
|
|
|
|
|
->where( [ 'img_name' => $name ] )
|
|
|
|
|
->caller( __METHOD__ )
|
|
|
|
|
->fetchRow();
|
2013-10-08 17:11:35 +00:00
|
|
|
|
2008-12-16 02:33:38 +00:00
|
|
|
return $row !== false;
|
2005-09-01 06:42:20 +00:00
|
|
|
}
|
2006-01-07 13:31:29 +00:00
|
|
|
|
2013-09-02 15:49:22 +00:00
|
|
|
/**
|
2020-11-12 22:22:22 +00:00
|
|
|
* @param stdClass $row
|
2013-09-02 15:49:22 +00:00
|
|
|
*/
|
2009-08-24 02:14:52 +00:00
|
|
|
protected function moveIllegalPage( $row ) {
|
2024-07-05 03:27:07 +00:00
|
|
|
$legalChars = Title::legalChars();
|
|
|
|
|
$legalizedUnprefixed = preg_replace_callback( "/([^$legalChars])/",
|
2016-02-17 09:09:32 +00:00
|
|
|
[ $this, 'hexChar' ],
|
2005-09-01 06:42:20 +00:00
|
|
|
$row->page_title );
|
2024-07-05 03:27:07 +00:00
|
|
|
if ( $legalizedUnprefixed == '.' ) {
|
|
|
|
|
$legalizedUnprefixed = '(dot)';
|
2013-04-18 18:48:44 +00:00
|
|
|
}
|
2024-07-05 03:27:07 +00:00
|
|
|
if ( $legalizedUnprefixed == '_' ) {
|
|
|
|
|
$legalizedUnprefixed = '(space)';
|
2013-04-18 18:48:44 +00:00
|
|
|
}
|
2024-07-05 03:27:07 +00:00
|
|
|
$ns = (int)$row->page_namespace;
|
2024-07-30 16:46:10 +00:00
|
|
|
|
|
|
|
|
$title = null;
|
|
|
|
|
// Try to move "Talk:Project:Foo" -> "Project talk:Foo"
|
|
|
|
|
if ( $ns === 1 ) {
|
|
|
|
|
$subjectTitle = Title::newFromText( $legalizedUnprefixed );
|
|
|
|
|
if ( $subjectTitle && !$subjectTitle->isTalkPage() ) {
|
|
|
|
|
$talkTitle = $subjectTitle->getTalkPageIfDefined();
|
|
|
|
|
if ( $talkTitle !== null && !$talkTitle->exists() ) {
|
|
|
|
|
$ns = $talkTitle->getNamespace();
|
|
|
|
|
$title = $talkTitle;
|
|
|
|
|
}
|
2024-07-05 03:27:07 +00:00
|
|
|
}
|
|
|
|
|
}
|
2006-01-07 13:31:29 +00:00
|
|
|
|
2024-07-30 16:46:10 +00:00
|
|
|
if ( $title === null ) {
|
|
|
|
|
// Not a talk page or that didn't work
|
|
|
|
|
// move any other broken pages to the main namespace so they can be found together
|
|
|
|
|
if ( $ns !== 0 ) {
|
|
|
|
|
$namespaceInfo = $this->getServiceContainer()->getNamespaceInfo();
|
|
|
|
|
$namespaceName = $namespaceInfo->getCanonicalName( $ns );
|
|
|
|
|
if ( $namespaceName === false ) {
|
|
|
|
|
$namespaceName = "NS$ns"; // Fallback for unknown namespaces
|
|
|
|
|
}
|
|
|
|
|
$ns = 0;
|
|
|
|
|
$legalizedUnprefixed = "$namespaceName:$legalizedUnprefixed";
|
|
|
|
|
}
|
|
|
|
|
$title = Title::newFromText( $this->prefix . $legalizedUnprefixed );
|
|
|
|
|
}
|
2024-07-05 03:27:07 +00:00
|
|
|
|
|
|
|
|
if ( $title === null ) {
|
|
|
|
|
// It's still not a valid title, try again with a much smaller
|
|
|
|
|
// allowed character set. This will mangle any titles with non-ASCII
|
|
|
|
|
// characters, but if we don't do this the result will be
|
|
|
|
|
// falling back to the Broken/id:foo failsafe below which is worse
|
2024-07-30 16:46:10 +00:00
|
|
|
$legalizedUnprefixed = preg_replace_callback( '!([^A-Za-z0-9_:\\-])!',
|
2024-07-05 03:27:07 +00:00
|
|
|
[ $this, 'hexChar' ],
|
|
|
|
|
$legalizedUnprefixed
|
|
|
|
|
);
|
2024-07-30 16:46:10 +00:00
|
|
|
$title = Title::newFromText( $this->prefix . $legalizedUnprefixed );
|
2024-07-05 03:27:07 +00:00
|
|
|
}
|
|
|
|
|
|
2020-01-09 23:48:34 +00:00
|
|
|
if ( $title === null ) {
|
2024-07-05 03:27:07 +00:00
|
|
|
// Oh well, we tried
|
|
|
|
|
$clean = $this->prefix . 'id:' . $row->page_id;
|
2024-07-30 16:46:10 +00:00
|
|
|
$legalized = $this->prefix . $legalizedUnprefixed;
|
2009-08-24 02:14:52 +00:00
|
|
|
$this->output( "Couldn't legalize; form '$legalized' still invalid; using '$clean'\n" );
|
2005-09-01 06:42:20 +00:00
|
|
|
$title = Title::newFromText( $clean );
|
2024-09-01 15:35:52 +00:00
|
|
|
} elseif ( $title->exists( IDBAccessObject::READ_LATEST ) ) {
|
2024-07-05 03:27:07 +00:00
|
|
|
$clean = $this->prefix . 'id:' . $row->page_id;
|
2024-07-30 16:46:10 +00:00
|
|
|
$conflict = $title->getDBKey();
|
|
|
|
|
$this->output( "Legalized for '$conflict' exists; using '$clean'\n" );
|
2005-09-01 06:42:20 +00:00
|
|
|
$title = Title::newFromText( $clean );
|
|
|
|
|
}
|
2006-01-07 13:31:29 +00:00
|
|
|
|
2024-09-01 15:35:52 +00:00
|
|
|
if ( !$title || $title->exists( IDBAccessObject::READ_LATEST ) ) {
|
2024-07-05 03:27:07 +00:00
|
|
|
// This can happen in corner cases like if numbers are made not valid
|
|
|
|
|
// title characters using the (deprecated) $wgLegalTitleChars or
|
|
|
|
|
// a 'Broken/id:foo' title already exists
|
|
|
|
|
$this->error( "Destination page {$title->getText()} is invalid or already exists, skipping." );
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
2008-01-14 09:26:36 +00:00
|
|
|
$dest = $title->getDBkey();
|
2010-05-22 16:50:39 +00:00
|
|
|
if ( $this->dryrun ) {
|
2013-10-08 17:11:35 +00:00
|
|
|
$this->output( "DRY RUN: would rename $row->page_id ($row->page_namespace," .
|
2024-07-30 16:46:10 +00:00
|
|
|
"'$row->page_title') to ($ns,'$dest')\n" );
|
2005-09-01 06:42:20 +00:00
|
|
|
} else {
|
2013-10-08 17:11:35 +00:00
|
|
|
$this->output( "renaming $row->page_id ($row->page_namespace," .
|
2024-08-19 18:24:01 +00:00
|
|
|
"'$row->page_title') to ($ns,'$dest')\n" );
|
2024-01-17 18:53:40 +00:00
|
|
|
$this->getPrimaryDB()
|
2024-01-16 22:47:08 +00:00
|
|
|
->newUpdateQueryBuilder()
|
|
|
|
|
->update( 'page' )
|
2024-07-30 16:46:10 +00:00
|
|
|
->set( [ 'page_title' => $dest, 'page_namespace' => $ns ] )
|
2024-01-16 22:47:08 +00:00
|
|
|
->where( [ 'page_id' => $row->page_id ] )
|
|
|
|
|
->caller( __METHOD__ )->execute();
|
2005-09-01 06:42:20 +00:00
|
|
|
}
|
|
|
|
|
}
|
2006-01-07 13:31:29 +00:00
|
|
|
|
2013-09-02 15:49:22 +00:00
|
|
|
/**
|
2020-11-12 22:22:22 +00:00
|
|
|
* @param stdClass $row
|
2013-09-02 15:49:22 +00:00
|
|
|
* @param Title $title
|
|
|
|
|
*/
|
2017-07-10 22:07:07 +00:00
|
|
|
protected function moveInconsistentPage( $row, Title $title ) {
|
2024-07-05 03:27:07 +00:00
|
|
|
$titleImpossible = $title->getInterwiki() || !$title->canExist();
|
|
|
|
|
if ( $title->exists( IDBAccessObject::READ_LATEST ) || $titleImpossible ) {
|
2018-01-26 03:17:01 +00:00
|
|
|
if ( $titleImpossible ) {
|
2013-03-09 20:14:22 +00:00
|
|
|
$prior = $title->getPrefixedDBkey();
|
2005-09-01 06:51:40 +00:00
|
|
|
} else {
|
2008-01-14 09:26:36 +00:00
|
|
|
$prior = $title->getDBkey();
|
2005-09-01 06:51:40 +00:00
|
|
|
}
|
2010-04-12 17:55:44 +00:00
|
|
|
|
2024-07-05 03:27:07 +00:00
|
|
|
$ns = (int)$row->page_namespace;
|
|
|
|
|
# If a page is saved in the main namespace with a namespace prefix then try to move it into
|
|
|
|
|
# that namespace. If there's no conflict then it will succeed. Otherwise it will hit the condition
|
|
|
|
|
# } else if ($ns !== 0) { and be moved to Broken/Namespace:Title
|
|
|
|
|
# whereas without this check it would just go to Broken/Title
|
|
|
|
|
if ( $ns === 0 ) {
|
|
|
|
|
$ns = $title->getNamespace();
|
|
|
|
|
}
|
|
|
|
|
|
2017-02-20 22:48:21 +00:00
|
|
|
# Old cleanupTitles could move articles there. See T25147.
|
2024-07-05 03:27:07 +00:00
|
|
|
# or a page could be stored as (0, "Special:Foo") in which case the $titleImpossible
|
|
|
|
|
# condition would be true and we've already added a prefix so pretend we're in mainspace
|
|
|
|
|
# and don't add another
|
2013-04-18 18:48:44 +00:00
|
|
|
if ( $ns < 0 ) {
|
|
|
|
|
$ns = 0;
|
|
|
|
|
}
|
2010-04-12 17:55:44 +00:00
|
|
|
|
2014-08-12 18:46:31 +00:00
|
|
|
# Namespace which no longer exists. Put the page in the main namespace
|
2017-02-20 22:48:21 +00:00
|
|
|
# since we don't have any idea of the old namespace name. See T70501.
|
2024-07-05 03:27:07 +00:00
|
|
|
# We build the new title ourself rather than relying on getDBKey() because
|
|
|
|
|
# that will return Special:BadTitle
|
|
|
|
|
$namespaceInfo = $this->getServiceContainer()->getNamespaceInfo();
|
|
|
|
|
if ( !$namespaceInfo->exists( $ns ) ) {
|
|
|
|
|
$clean = "{$this->prefix}NS$ns:$row->page_title";
|
2014-08-12 18:46:31 +00:00
|
|
|
$ns = 0;
|
2024-09-01 15:35:52 +00:00
|
|
|
} elseif ( !$titleImpossible && !$title->exists( IDBAccessObject::READ_LATEST ) ) {
|
2018-01-26 03:17:01 +00:00
|
|
|
// Looks like the current title, after cleaning it up, is valid and available
|
|
|
|
|
$clean = $prior;
|
2024-07-05 03:27:07 +00:00
|
|
|
} elseif ( $ns !== 0 ) {
|
|
|
|
|
// Put all broken pages in the main namespace so that they can be found via Special:PrefixIndex
|
|
|
|
|
$nsName = $namespaceInfo->getCanonicalName( $ns );
|
|
|
|
|
$clean = "{$this->prefix}$nsName:{$prior}";
|
|
|
|
|
$ns = 0;
|
2018-01-26 03:17:01 +00:00
|
|
|
} else {
|
2024-07-05 03:27:07 +00:00
|
|
|
$clean = $this->prefix . $prior;
|
2018-01-26 03:17:01 +00:00
|
|
|
}
|
2010-04-12 17:55:44 +00:00
|
|
|
$verified = Title::makeTitleSafe( $ns, $clean );
|
2024-09-01 15:35:52 +00:00
|
|
|
if ( !$verified || $verified->exists( IDBAccessObject::READ_LATEST ) ) {
|
2024-07-05 03:27:07 +00:00
|
|
|
$lastResort = "{$this->prefix}id: {$row->page_id}";
|
|
|
|
|
$this->output( "Couldn't legalize; form '$clean' exists; using '$lastResort'\n" );
|
|
|
|
|
$verified = Title::makeTitleSafe( $ns, $lastResort );
|
2024-09-01 15:35:52 +00:00
|
|
|
if ( !$verified || $verified->exists( IDBAccessObject::READ_LATEST ) ) {
|
2024-07-05 03:27:07 +00:00
|
|
|
// This can happen in corner cases like if numbers are made not valid
|
|
|
|
|
// title characters using the (deprecated) $wgLegalTitleChars or
|
|
|
|
|
// a 'Broken/id:foo' title already exists
|
|
|
|
|
$this->error( "Destination page $lastResort invalid or already exists." );
|
|
|
|
|
return;
|
|
|
|
|
}
|
2005-09-01 06:42:20 +00:00
|
|
|
}
|
|
|
|
|
$title = $verified;
|
|
|
|
|
}
|
2024-07-05 03:27:07 +00:00
|
|
|
|
2005-10-02 12:42:29 +00:00
|
|
|
$ns = $title->getNamespace();
|
2008-01-14 09:26:36 +00:00
|
|
|
$dest = $title->getDBkey();
|
2010-04-12 17:55:44 +00:00
|
|
|
|
2010-05-22 16:50:39 +00:00
|
|
|
if ( $this->dryrun ) {
|
2013-10-08 17:11:35 +00:00
|
|
|
$this->output( "DRY RUN: would rename $row->page_id ($row->page_namespace," .
|
|
|
|
|
"'$row->page_title') to ($ns,'$dest')\n" );
|
2005-09-01 06:42:20 +00:00
|
|
|
} else {
|
2013-10-08 17:11:35 +00:00
|
|
|
$this->output( "renaming $row->page_id ($row->page_namespace," .
|
|
|
|
|
"'$row->page_title') to ($ns,'$dest')\n" );
|
2024-01-17 18:53:40 +00:00
|
|
|
$this->getPrimaryDB()
|
2024-01-16 22:47:08 +00:00
|
|
|
->newUpdateQueryBuilder()
|
|
|
|
|
->update( 'page' )
|
|
|
|
|
->set( [
|
2005-10-02 12:42:29 +00:00
|
|
|
'page_namespace' => $ns,
|
|
|
|
|
'page_title' => $dest
|
2024-01-16 22:47:08 +00:00
|
|
|
] )
|
|
|
|
|
->where( [ 'page_id' => $row->page_id ] )
|
|
|
|
|
->caller( __METHOD__ )->execute();
|
2023-08-31 09:21:12 +00:00
|
|
|
$this->getServiceContainer()->getLinkCache()->clear();
|
2005-09-01 06:42:20 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2024-08-27 12:00:25 +00:00
|
|
|
// @codeCoverageIgnoreStart
|
2018-01-13 00:02:09 +00:00
|
|
|
$maintClass = TitleCleanup::class;
|
2013-05-07 23:00:15 +00:00
|
|
|
require_once RUN_MAINTENANCE_IF_MAIN;
|
2024-08-27 12:00:25 +00:00
|
|
|
// @codeCoverageIgnoreEnd
|