diff options
Diffstat (limited to 'includes/actions/EditAction.php')
-rw-r--r-- | includes/actions/EditAction.php | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/includes/actions/EditAction.php b/includes/actions/EditAction.php index 08a33f4c..dec3d841 100644 --- a/includes/actions/EditAction.php +++ b/includes/actions/EditAction.php @@ -23,17 +23,25 @@ * @author Timo Tijhof */ +/** + * Page edition handler + * + * This is a wrapper that will call the EditPage class, or ExternalEdit + * if $wgUseExternalEditor is set to true and requested by the user. + * + * @ingroup Actions + */ class EditAction extends FormlessAction { public function getName() { return 'edit'; } - public function onView(){ + public function onView() { return null; } - public function show(){ + public function show() { $page = $this->page; $request = $this->getRequest(); $user = $this->getUser(); @@ -56,13 +64,20 @@ class EditAction extends FormlessAction { } +/** + * 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(){ + public function show() { if ( session_id() == '' ) { // Send a cookie so anons get talk message notifications wfSetupSession(); |