Make an empty "?action=" parameter default to "view"
[lhc/web/wiklou.git] / includes / skins / SkinTemplate.php
index c1db302..0bc980a 100644 (file)
@@ -844,7 +844,7 @@ class SkinTemplate extends Skin {
                );
 
                // parameters
-               $action = $request->getVal( 'action', 'view' );
+               $action = Action::getActionName( $this );
 
                $userCanRead = $title->quickUserCan( 'read', $user );