Merge "Add actual documentation for ContentHandler::getActionOverrides"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 18 May 2016 17:41:05 +0000 (17:41 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 18 May 2016 17:41:05 +0000 (17:41 +0000)
1  2 
includes/actions/Action.php

@@@ -62,7 -62,7 +62,7 @@@ abstract class Action 
         * the action is disabled, or null if it's not recognised
         * @param string $action
         * @param array $overrides
-        * @return bool|null|string|callable
+        * @return bool|null|string|callable|Action
         */
        final private static function getClass( $action, array $overrides ) {
                global $wgActions;
                // Trying to get a WikiPage for NS_SPECIAL etc. will result
                // in WikiPage::factory throwing "Invalid or virtual namespace -1 given."
                // For SpecialPages et al, default to action=view.
 -              if ( !$context->canUseWikiPage() ) {
 +              if ( $actionName === '' || !$context->canUseWikiPage() ) {
                        return 'view';
                }