From: Bryan Tong Minh Date: Sat, 31 May 2008 14:07:15 +0000 (+0000) Subject: Remove the AlternateEdit hook from the API: it is a hook meant to show a different... X-Git-Tag: 1.31.0-rc.0~47268 X-Git-Url: http://git.cyclocoop.org/%24href?a=commitdiff_plain;h=fb30149415ce2324557f22aba2321e685f05a05b;p=lhc%2Fweb%2Fwiklou.git 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. --- 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'],