diff options
Diffstat (limited to 'engine/handlers/action_handler.php')
| -rw-r--r-- | engine/handlers/action_handler.php | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/engine/handlers/action_handler.php b/engine/handlers/action_handler.php index f99e1efdc..bcad110b2 100644 --- a/engine/handlers/action_handler.php +++ b/engine/handlers/action_handler.php @@ -1,17 +1,20 @@ <?php - /** - * Elgg action handler + * Action handler. + * + * This file dispatches actions. It is called via a URL rewrite in .htaccess + * from http://site/action/. Anything after 'action/' is considered the action + * and will be passed to {@link action()}. + * + * @warning This sets the input named 'action' to the current action. When calling + * an action, get_input('action') will always return the action name. * - * @package Elgg - * @subpackage Core - * @author Curverider Ltd - * @link http://elgg.org/ + * @package Elgg.Core + * @subpackage Actions + * @link http://docs.elgg.org/Tutorials/Actions */ -/** - * Load Elgg framework - */ -require_once("../start.php"); +require_once(dirname(dirname(__FILE__)) . "/start.php"); + $action = get_input("action"); -action($action);
\ No newline at end of file +action($action); |
