Merge "mediawiki.page.watch.ajax: Fail early if updateWatchLink is called wrong"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 20 Mar 2014 18:20:10 +0000 (18:20 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 20 Mar 2014 18:20:10 +0000 (18:20 +0000)
1  2 
resources/mediawiki.page/mediawiki.page.watch.ajax.js

        function mwUriGetAction( url ) {
                var action, actionPaths, key, i, m, parts;
  
-               actionPaths = mw.config.get( 'wgActionPaths' );
                // TODO: Does MediaWiki give action path or query param
 -              // precedence ? If the former, move this to the bottom
 +              // precedence? If the former, move this to the bottom
                action = mw.util.getParamValue( 'action', url );
                if ( action !== null ) {
                        return action;