Last modified: 2014-01-02 11:38:40 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61094, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59094 - How to replace ArticleAfterFetchContent with ArticleAfterFetchContentObject
How to replace ArticleAfterFetchContent with ArticleAfterFetchContentObject
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
ContentHandler (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-29 01:17 UTC by adsf
Modified: 2014-01-02 11:38 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description adsf 2013-12-29 01:17:32 UTC
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?
Comment 1 Andre Klapper 2014-01-02 11:38:40 UTC
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!

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links