Remove the AlternateEdit hook from the API: it is a hook meant to show a different...
authorBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 31 May 2008 14:07:15 +0000 (14:07 +0000)
committerBryan Tong Minh <btongminh@users.mediawiki.org>
Sat, 31 May 2008 14:07:15 +0000 (14:07 +0000)
includes/api/ApiEditPage.php

index 6140265..7407403 100644 (file)
@@ -75,9 +75,6 @@ class ApiEditPage extends ApiBase {
                $articleObj = new Article($titleObj);
                $ep = new EditPage($articleObj);
                
-               if ( !wfRunHooks( 'AlternateEdit', array( &$ep ) ) )
-                       $this->dieUsageMsg(array('hookaborted'));
-
                // EditPage wants to parse its stuff from a WebRequest
                // That interface kind of sucks, but it's workable
                $reqArr = array('wpTextbox1' => $params['text'],