Florianschmidtwelzow has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/280970

Change subject: Remove usage of Title::newFromRedirect()
......................................................................

Remove usage of Title::newFromRedirect()

Bug: T122754
Change-Id: I0be8d2b5b4531751c21fec5795669ce6795c601c
---
M cleanupMl.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/WikimediaMaintenance 
refs/changes/70/280970/1

diff --git a/cleanupMl.php b/cleanupMl.php
index 937a119..d019d16 100644
--- a/cleanupMl.php
+++ b/cleanupMl.php
@@ -53,7 +53,7 @@
                echo "Cannot load text: $line\n";
                continue;
        }
-       $redir = Title::newFromRedirect( $text );
+       $redir = ContentHandler::makeContent( $text, null, 
CONTENT_MODEL_WIKITEXT )->getRedirectTarget();
        if ( !$redir ) {
                echo "Not a redirect: $line\n";
                continue;

-- 
To view, visit https://gerrit.wikimedia.org/r/280970
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0be8d2b5b4531751c21fec5795669ce6795c601c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/WikimediaMaintenance
Gerrit-Branch: master
Gerrit-Owner: Florianschmidtwelzow <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to