From fb30149415ce2324557f22aba2321e685f05a05b Mon Sep 17 00:00:00 2001 From: Bryan Tong Minh Date: Sat, 31 May 2008 14:07:15 +0000 Subject: [PATCH] Remove the AlternateEdit hook from the API: it is a hook meant to show a different EditForm which is not what we want to do. --- includes/api/ApiEditPage.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index 6140265506..74074039f6 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -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'], -- 2.20.1