aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/classes/ElggPlugin.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/classes/ElggPlugin.php b/engine/classes/ElggPlugin.php
index 5ecdfdfd0..18d97d23a 100644
--- a/engine/classes/ElggPlugin.php
+++ b/engine/classes/ElggPlugin.php
@@ -648,9 +648,9 @@ class ElggPlugin extends ElggObject {
if (!is_callable($function)) {
$return = false;
} else {
- $on_enable = call_user_func($function);
+ $result = call_user_func($function);
// allow null to mean "I don't care" like other subsystems
- $return = ($on_disable === false) ? false: true;
+ $return = ($result === false) ? false: true;
}
if ($return === false) {
@@ -702,9 +702,9 @@ class ElggPlugin extends ElggObject {
if (!is_callable($function)) {
$return = false;
} else {
- $on_enable = call_user_func($function);
+ $result = call_user_func($function);
// allow null to mean "I don't care" like other subsystems
- $return = ($on_disable === false) ? false : true;
+ $return = ($result === false) ? false : true;
}
if ($return === false) {