https://bugzilla.wikimedia.org/show_bug.cgi?id=27930

Krinkle <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #6 from Krinkle <[email protected]> 2012-01-08 01:19:39 UTC ---
Re-opening. MediaWiki::getAction barely, if anything, better than it was with
getValue('action', 'view').

Using $mediaWiki->getAction() to determine mw.config's wgAction property or
body class "action-..." is still unreliable as things like
"/w/index.php?action=nonsense" will still make MediaWiki::getAction() return
"nonsense".

The "real" action is determined in MediaWiki::performAction, which is using
MediaWiki::getAction only as a mild suggestion to get started. We need to store
the outcome of the performing action somewhere accessible from anywhere.

It is context/request dependent, but unless we can find a better place, how
about storing the actual performed action (which will contain "unknownaction"
if there was none, i.e. the "default" case of the switch() in
MediaWiki:performAction) .. in a field of the MediaWiki instance and using a
public getter to retrieve it?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to