Last modified: 2011-11-17 16:19:20 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 T34454, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32454 - ArticlePurge hook is broken after r86041
ArticlePurge hook is broken after r86041
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
General/Unknown (Other open bugs)
unspecified
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-11-17 08:20 UTC by cryptocoryne
Modified: 2011-11-17 16:19 UTC (History)
2 users (show)

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


Attachments
patch (1.02 KB, patch)
2011-11-17 08:20 UTC, cryptocoryne
Details

Description cryptocoryne 2011-11-17 08:20:24 UTC
Created attachment 9482 [details]
patch

After changes in r86401 ArticlePurge hook is broken:

$wgHooks['ArticlePurge'][] = 'testArticlePurge';
public static function testArticlePurge( &$article ) {
	global $wgOut;
		
	$wgOut->addWikiMsg( 'error' );
	return false;
}

is displayed normal page after execute "action=purge" without any errors (1.18rc1).

I've write patch to fix this bug.
Comment 1 Mark A. Hershberger 2011-11-17 16:19:20 UTC
r103471

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


Navigation
Links