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(); } } } } 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(); } }