aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-26 23:38:09 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-26 23:38:09 +0000
commitb5a87393452a7dc77cbaa52e3209bc25e0c22e79 (patch)
tree46825f758bbd72663bc77c3c86b8d805c17ed20f
parentaeee52fb2992b060b80ec58a4da5216bf426993e (diff)
downloadelgg-b5a87393452a7dc77cbaa52e3209bc25e0c22e79.tar.gz
elgg-b5a87393452a7dc77cbaa52e3209bc25e0c22e79.tar.bz2
Fixes #3249 fixed name of actions exists function
git-svn-id: http://code.elgg.org/elgg/trunk@8862 36083f99-b078-4883-b0ff-0f9b5a30f544
-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']));