* Removed Special:Validate, it's been superseded by the Review extension
[lhc/web/wiklou.git] / includes / Article.php
index e91153d..2e798f3 100644 (file)
@@ -1491,34 +1491,6 @@ class Article {
                }
        }
 
-       /**
-        * Validate function
-        */
-       function validate() {
-               global $wgOut, $wgUser, $wgRequest, $wgUseValidation;
-
-               if ( !$wgUseValidation ) # Are we using article validation at all?
-               {
-                       $wgOut->errorpage( "nosuchspecialpage", "nospecialpagetext" );
-                       return ;
-               }
-
-               $wgOut->setRobotpolicy( 'noindex,follow' );
-               $revision = $wgRequest->getVal( 'revision' );
-
-               include_once ( "SpecialValidate.php" ) ; # The "Validation" class
-
-               $v = new Validation ;
-               if ( $wgRequest->getVal ( "mode" , "" ) == "list" )
-                       $t = $v->showList ( $this ) ;
-               else if ( $wgRequest->getVal ( "mode" , "" ) == "details" )
-                       $t = $v->showDetails ( $this , $wgRequest->getVal( 'revision' ) ) ;
-               else
-                       $t = $v->validatePageForm ( $this , $revision ) ;
-
-               $wgOut->addHTML ( $t ) ;
-       }
-
        /**
         * Add this page to $wgUser's watchlist
         */