aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/actions.php
diff options
context:
space:
mode:
Diffstat (limited to 'engine/lib/actions.php')
-rw-r--r--engine/lib/actions.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/engine/lib/actions.php b/engine/lib/actions.php
index 8abd03d64..d95fe0435 100644
--- a/engine/lib/actions.php
+++ b/engine/lib/actions.php
@@ -51,7 +51,7 @@
* @param string $forwarder Optionally, the location to forward to
*
* @link http://docs.elgg.org/Actions
-* @see register_action()
+* @see elgg_register_action()
*
* @return void
*/
@@ -128,7 +128,7 @@ function action($action, $forwarder = "") {
*
* Actions should be namedspaced for your plugin. Example:
* <code>
- * register_action('myplugin/save_settings', ...);
+ * elgg_register_action('myplugin/save_settings', ...);
* </code>
*
* @tip Put action files under the actions/ directory of your plugin.
@@ -370,9 +370,8 @@ function elgg_action_exist($action) {
/**
* Initialize some ajaxy actions features
*/
-function actions_init()
-{
- register_action('security/refreshtoken', TRUE);
+function actions_init() {
+ elgg_register_action('security/refreshtoken', '', 'public');
elgg_view_register_simplecache('js/languages/en');