From: Evan Prodromou Date: Sat, 17 May 2008 16:39:17 +0000 (-0400) Subject: change from class call on action to obj call X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=80ee6ee1d2f8c0b6f91859f48c2acb984ea0429c;p=quix0rs-gnu-social.git change from class call on action to obj call darcs-hash:20080517163917-84dde-c9e0953e6074e66d427164e7cfad1ca1cf27553b.gz --- diff --git a/index.php b/index.php index 9fa749522d..26a0946f06 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