aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/plugins/settings/save.php2
-rw-r--r--actions/plugins/usersettings/save.php2
-rw-r--r--engine/lib/actions.php2
3 files changed, 3 insertions, 3 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) {
diff --git a/engine/lib/actions.php b/engine/lib/actions.php
index 1a26018ab..c92ed4cb7 100644
--- a/engine/lib/actions.php
+++ b/engine/lib/actions.php
@@ -354,7 +354,7 @@ function get_site_secret() {
* @return bool
* @since 1.8.0
*/
-function elgg_action_exist($action) {
+function elgg_action_exists($action) {
global $CONFIG;
return (isset($CONFIG->actions[$action]) && file_exists($CONFIG->actions[$action]['file']));