Please review carefully, I cannot see negative side effects from this patch. It gives...
authorThomas Gries <wikinaut@users.mediawiki.org>
Sun, 5 Feb 2012 11:00:07 +0000 (11:00 +0000)
committerThomas Gries <wikinaut@users.mediawiki.org>
Sun, 5 Feb 2012 11:00:07 +0000 (11:00 +0000)
includes/Wiki.php

index 86883d9..6ead57c 100644 (file)
@@ -486,7 +486,7 @@ class MediaWiki {
                        return;
                }
 
-               if ( wfRunHooks( 'UnknownAction', array( $act, $page ) ) ) {
+               if ( wfRunHooks( 'UnknownAction', array( $request->getVal( 'action', 'view' ), $page ) ) ) {
                        $output->showErrorPage( 'nosuchaction', 'nosuchactiontext' );
                }