From 7237e91c0a975f06c581ccf82fb0a8b1c523eab2 Mon Sep 17 00:00:00 2001 From: Magnus Manske Date: Thu, 31 Mar 2005 08:19:20 +0000 Subject: [PATCH] Validation fix --- includes/SkinTemplate.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.20.1