From: Magnus Manske Date: Thu, 31 Mar 2005 08:19:20 +0000 (+0000) Subject: Validation fix X-Git-Tag: 1.5.0alpha1~450 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=7237e91c0a975f06c581ccf82fb0a8b1c523eab2;p=lhc%2Fweb%2Fwiklou.git Validation fix --- diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php index 87c8135b08..476af9c179 100644 --- a/includes/SkinTemplate.php +++ b/includes/SkinTemplate.php @@ -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