"Krinkle" posted a comment on MediaWiki.r109223.
URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/109223#c29841

Commit summary for MediaWiki.r109223:

[Actions] Move action logic out of 
MediaWiki::getAction/MediaWiki::performAction into Action::getActionName.
* Follows-up r109195
* Reverts/Redoes r108342, r108343, r108345

* Contributes to solution of bug 27930 - Ability to get current action (The 
Right Way)

Krinkle's comment:

Okay, chatter on IRC with Aaron resulted in that this revision can be 
re-instated. But we need to use $context->canUseWikiPage() before calling 
$context->getWikiPage() so that if the current context is in NS_SPECIAL, we 
won't try to fabricate a WikiPage object, which cases the exceptions to be 
thrown as shown above by Raymond.

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

Reply via email to