]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change from class call on action to obj call
authorEvan Prodromou <evan@prodromou.name>
Sat, 17 May 2008 16:39:17 +0000 (12:39 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 17 May 2008 16:39:17 +0000 (12:39 -0400)
darcs-hash:20080517163917-84dde-c9e0953e6074e66d427164e7cfad1ca1cf27553b.gz

index.php

index 9fa749522df4992e288fdd3cf08ed9a1d14e7498..26a0946f06301ab61fbd0da957439782765a2cc0 100644 (file)
--- 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