summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index 9fa749522..26a0946f0 100644
--- a/index.php
+++ b/index.php
@@ -28,7 +28,8 @@ $actionfile = INSTALLDIR."/actions/$action.php";
if (file_exists($actionfile)) {
require_once($actionfile);
$action_class = ucfirst($action)."Action";
- call_user_func(array($action_class, 'handle'), $_REQUEST);
+ $action_obj = new $action_class();
+ call_user_func(array($action_obj, 'handle'), $_REQUEST);
} else {
common_user_error(_t('Unknown action'));
} \ No newline at end of file