https://bugzilla.wikimedia.org/show_bug.cgi?id=27930
Summary: Implement a $wgAction (The Right Way) Product: MediaWiki Version: wikimedia-deployment Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: Normal Component: General/Unknown AssignedTo: wikibugs-l@lists.wikimedia.org ReportedBy: krinklem...@gmail.com Blocks: 4438,25800 Request to implement a $wgAction (PHP variable). This will A) Remove the duplication of code that redoes this in several places throughout the core and possible extensions as well B) Make it available in CSS (bug 4438) C) Make it available in JS (replacing the current workaround) And should: * Not be dependant on the action-parameter. Instead it should represent what MediaWiki actually does, and, as we know, the action parameter has nothing to do with that in many cases. ** During a view, action-param is almost never 'view' ** During a diff (which isn't an action, it's called "historysubmit"), action is only 'historysubmit' if it came from the history page (if from recentchanges, watchlist or if manaully constructed like: http://enwp.org/?diff=1 action is wrongly falling back to 'view' ) Ideas: * Introduce 'diff' as a valid action and it will be implied if there's a diff-parameter just like 'view' is implied. * Use action=diff on history submit, deprecate/remove 'historysubmit' -- 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 Wikibugs-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikibugs-l