Page MenuHomePhabricator

How to replace ArticleAfterFetchContent with ArticleAfterFetchContentObject
Closed, InvalidPublic

Description

Author: adsf

Description:
Since MediaWiki 1.22 ArticleAfterFetchContent is not invoked anymore. The documentation says to use ArticleAfterFetchContentObject instead.

While ArticleAfterFetchContentObject hooks are invoked, I did not find any information on how to update extensions using ArticleAfterFetchContent.

Let's take this stripped down example:

public static function hookArticleAfterFetchContent(&$article, &$content) {
      $content = $content . 'A';
      return true;
}

How do I get that to work in MediaWiki 22.0?


Version: unspecified
Severity: normal

Details

Reference
bz59094

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 2:34 AM
bzimport set Reference to bz59094.
bzimport added a subscriber: Unknown Object (MLST).

Hi adsf. This does not sound like something is wrong in the code of MediaWiki (a so-called "bug"), but instead like a support request (how to change settings, questions how to do something, etc.). As bugzilla.wikimedia.org is only for specific bug reports and enhancement requests, please use https://www.mediawiki.org/wiki/Project:Support_desk for support requests and "How can I do X" questions. Thanks!