diff options
Diffstat (limited to 'actions')
-rw-r--r-- | actions/plugins/settings/save.php | 2 | ||||
-rw-r--r-- | actions/plugins/usersettings/save.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/actions/plugins/settings/save.php b/actions/plugins/settings/save.php index d768d3604..f3c865b9f 100644 --- a/actions/plugins/settings/save.php +++ b/actions/plugins/settings/save.php @@ -26,7 +26,7 @@ $plugin_name = $plugin->manifest->getName(); $result = false; // allow a plugin to override the save action for their settings -if (elgg_action_exist("settings/$plugin_id/save")) { +if (elgg_action_exists("settings/$plugin_id/save")) { action("settings/$plugin_id/save"); } else { foreach ($params as $k => $v) { diff --git a/actions/plugins/usersettings/save.php b/actions/plugins/usersettings/save.php index 794ce4046..9c1657388 100644 --- a/actions/plugins/usersettings/save.php +++ b/actions/plugins/usersettings/save.php @@ -39,7 +39,7 @@ if (!$user->canEdit()) { $result = false; -if (elgg_action_exist("usersettings/$plugin_id/save")) { +if (elgg_action_exists("usersettings/$plugin_id/save")) { action("usersettings/$plugin_id/save"); } else { foreach ($params as $k => $v) { |