diff options
Diffstat (limited to 'includes/actions/EditAction.php')
-rw-r--r-- | includes/actions/EditAction.php | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/includes/actions/EditAction.php b/includes/actions/EditAction.php index dec3d841..3dd4c483 100644 --- a/includes/actions/EditAction.php +++ b/includes/actions/EditAction.php @@ -43,21 +43,11 @@ class EditAction extends FormlessAction { public function show() { $page = $this->page; - $request = $this->getRequest(); $user = $this->getUser(); - $context = $this->getContext(); if ( wfRunHooks( 'CustomEditor', array( $page, $user ) ) ) { - if ( ExternalEdit::useExternalEngine( $context, 'edit' ) - && $this->getName() == 'edit' && !$request->getVal( 'section' ) - && !$request->getVal( 'oldid' ) ) - { - $extedit = new ExternalEdit( $context ); - $extedit->execute(); - } else { - $editor = new EditPage( $page ); - $editor->edit(); - } + $editor = new EditPage( $page ); + $editor->edit(); } } |