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 "Modified Lojban interwiki"
[lhc/web/wiklou.git]
/
includes
/
actions
/
Action.php
diff --git
a/includes/actions/Action.php
b/includes/actions/Action.php
index
ead8efa
..
84bf16e
100644
(file)
--- a/
includes/actions/Action.php
+++ b/
includes/actions/Action.php
@@
-62,7
+62,7
@@
abstract class Action {
* the action is disabled, or null if it's not recognised
* @param string $action
* @param array $overrides
* the action is disabled, or null if it's not recognised
* @param string $action
* @param array $overrides
- * @return bool|null|string|callable
+ * @return bool|null|string|callable
|Action
*/
final private static function getClass( $action, array $overrides ) {
global $wgActions;
*/
final private static function getClass( $action, array $overrides ) {
global $wgActions;
@@
-96,6
+96,9
@@
abstract class Action {
$classOrCallable = self::getClass( $action, $page->getActionOverrides() );
if ( is_string( $classOrCallable ) ) {
$classOrCallable = self::getClass( $action, $page->getActionOverrides() );
if ( is_string( $classOrCallable ) ) {
+ if ( !class_exists( $classOrCallable ) ) {
+ return false;
+ }
$obj = new $classOrCallable( $page, $context );
return $obj;
}
$obj = new $classOrCallable( $page, $context );
return $obj;
}