dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Use context when parsing message 'redirectedfrom'"
[lhc/web/wiklou.git]
/
includes
/
actions
/
PurgeAction.php
diff --git
a/includes/actions/PurgeAction.php
b/includes/actions/PurgeAction.php
index
4c5171c
..
ed0bff7
100644
(file)
--- a/
includes/actions/PurgeAction.php
+++ b/
includes/actions/PurgeAction.php
@@
-1,8
+1,6
@@
<?php
/**
<?php
/**
- * Formats credits for articles
- *
- * Copyright 2004, Evan Prodromou <evan@wikitravel.org>.
+ * User-requested page cache purging.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-20,9
+18,16
@@
*
* @file
* @ingroup Actions
*
* @file
* @ingroup Actions
- * @author <evan@wikitravel.org>
*/
*/
+/**
+ * User-requested page cache purging.
+ *
+ * For users with 'purge', this will directly trigger the cache purging and
+ * for users without that right, it will show a confirmation form.
+ *
+ * @ingroup Actions
+ */
class PurgeAction extends FormAction {
private $redirectParams;
class PurgeAction extends FormAction {
private $redirectParams;
@@
-66,7
+71,7
@@
class PurgeAction extends FormAction {
$this->getRequest()->getQueryValues(),
array( 'title' => null, 'action' => null )
) );
$this->getRequest()->getQueryValues(),
array( 'title' => null, 'action' => null )
) );
- if( $this->onSubmit( array() ) ) {
+ if
( $this->onSubmit( array() ) ) {
$this->onSuccess();
}
} else {
$this->onSuccess();
}
} else {
@@
-91,6
+96,6
@@
class PurgeAction extends FormAction {
}
public function onSuccess() {
}
public function onSuccess() {
- $this->getOutput()->redirect( $this->getTitle()->getFullU
rl
( $this->redirectParams ) );
+ $this->getOutput()->redirect( $this->getTitle()->getFullU
RL
( $this->redirectParams ) );
}
}
}
}