Page MenuHomePhabricator

Remove deprecated code from "ArticleToCategory2Hooks.php"
Closed, ResolvedPublic

Description

Reported on MediaWiki.org:

The suggestion is to replace $content = $rev->getText(); by $content = ContentHandler::getContentText($rev->getContent()); in "ArticleToCategory2Hooks.php". This is supposed to avoid errors on category pages.

Since I am not a developer ...

Event Timeline

@Peachey88 created MediaWiki-extensions-ArticleToCategory2 a while ago; wondering if any codebase maintainers asked for this tag and are aware?

Reedy renamed this task from Remmove deprecated code from "ArticleToCategory2Hooks.php" to Remove deprecated code from "ArticleToCategory2Hooks.php".Jul 18 2020, 4:08 PM

Change 678112 had a related patch set uploaded (by Kghbln; author: Kghbln):

[mediawiki/extensions/ArticleToCategory2@master] Remove deprecated `$rev->getText();`

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

Change 678112 merged by jenkins-bot:

[mediawiki/extensions/ArticleToCategory2@master] Replace deprecated `$rev->getText()` call

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

Change 678089 had a related patch set uploaded (by Kghbln; author: Kghbln):

[mediawiki/extensions/ArticleToCategory2@REL1_35] Replace deprecated `$rev->getText()` call

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

Change 678090 had a related patch set uploaded (by Kghbln; author: Kghbln):

[mediawiki/extensions/ArticleToCategory2@REL1_36] Replace deprecated `$rev->getText()` call

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

Change 678090 merged by jenkins-bot:

[mediawiki/extensions/ArticleToCategory2@REL1_36] Replace deprecated `$rev->getText()` call

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

Change 678089 merged by jenkins-bot:

[mediawiki/extensions/ArticleToCategory2@REL1_35] Replace deprecated `$rev->getText()` call

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

Kghbln claimed this task.