Validation fix
authorMagnus Manske <magnusmanske@users.mediawiki.org>
Thu, 31 Mar 2005 08:19:20 +0000 (08:19 +0000)
committerMagnus Manske <magnusmanske@users.mediawiki.org>
Thu, 31 Mar 2005 08:19:20 +0000 (08:19 +0000)
includes/SkinTemplate.php

index 87c8135..476af9c 100644 (file)
@@ -619,7 +619,7 @@ class SkinTemplate extends Skin {
                                }
 
                                # Validate tab. TODO: add validation to logged-in user rights 
-                               if($wgUseValidation && $action=='view'){ # && $wgUser->isAllowed('validate')){
+                               if($wgUseValidation && ( $action == "" || $action=='view' ) ){ # && $wgUser->isAllowed('validate')){
                                        if ( $oldid ) $oid = IntVal( $oldid ) ; # Use the oldid
                                        else
                                                {# Trying to get the current article revision through this weird stunt