dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90f59e1
)
Action::checkCanExecute doesn't return anything on success, but WatchAction returns...
author
Reedy
<reedy@wikimedia.org>
Sat, 7 Apr 2012 16:23:16 +0000
(17:23 +0100)
committer
Reedy
<reedy@wikimedia.org>
Sat, 7 Apr 2012 16:23:55 +0000
(17:23 +0100)
Change-Id: Ib4169a8067f22f4a80295923e2aa77d151c4c47c
includes/Action.php
patch
|
blob
|
history
diff --git
a/includes/Action.php
b/includes/Action.php
index
84c0f80
..
a25e8aa
100644
(file)
--- a/
includes/Action.php
+++ b/
includes/Action.php
@@
-266,6
+266,7
@@
abstract class Action {
*
* @param $user User: the user to check, or null to use the context user
* @throws ErrorPageError
+ * @return bool True on success
*/
protected function checkCanExecute( User $user ) {
$right = $this->getRestriction();
@@
-287,6
+288,7
@@
abstract class Action {
if ( $this->requiresWrite() && wfReadOnly() ) {
throw new ReadOnlyError();
}
+ return true;
}
/**