page; $user = $this->getUser(); if ( wfRunHooks( 'CustomEditor', array( $page, $user ) ) ) { $editor = new EditPage( $page ); $editor->edit(); } } } /** * Edit submission handler * * This is the same as EditAction; except that it sets the session cookie. * * @ingroup Actions */ 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(); } }