From 3b14b7901c65144835d74b712279d0492c267c0c Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 17 May 2008 11:47:01 -0400 Subject: fixes to make it all lint Ran everything through php -l, found out that it didn't compile. So: fixed the am-I-running-in-Laconica check at the top of each file. Some syntax fixes in shownotice, showstream, common. darcs-hash:20080517154701-84dde-8d38da89c5b9cb3b40704adb04a4de880c204181.gz --- index.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index 812239e3d..9d27eef2d 100644 --- a/index.php +++ b/index.php @@ -28,10 +28,8 @@ $actionfile = INSTALLDIR."/actions/$action.php"; if (file_exists($actionfile)) { require_once($actionfile); $action_class = ucfirst($action) . "Action"; - if (function_exists($action_function)) { - call_user_func($action_function); + call_user_func(array($action_class, 'handle'), $_REQUEST); } else { common_user_error(_t('Unknown action')); } -?> \ No newline at end of file -- cgit v1.2.3-54-g00ecf