page; $request = $this->getRequest(); $user = $this->getUser(); $context = $this->getContext(); if ( wfRunHooks( 'CustomEditor', array( $page, $user ) ) ) { $handler = ContentHandler::getForTitle( $page->getTitle() ); if ( ExternalEdit::useExternalEngine( $context, 'edit' ) && $this->getName() == 'edit' && !$request->getVal( 'section' ) && !$request->getVal( 'oldid' ) ) { $extedit = $handler->createExternalEdit( $context ); $extedit->execute(); } else { $editor = $handler->createEditPage( $page ); $editor->edit(); } } } } class SubmitAction extends EditAction { public function getName() { return 'submit'; } public function show(){ if ( session_id() == '' ) { // Send a cookie so anons get talk message notifications wfSetupSession(); } parent::show(); } }