summaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-17 11:47:01 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-17 11:47:01 -0400
commit3b14b7901c65144835d74b712279d0492c267c0c (patch)
tree9ce2b2053e00cda38030dbc0e2cba4c1db33c628 /index.php
parentffc729453d487941e8a001d8a112c6509c892bc6 (diff)
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
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 1 insertions, 3 deletions
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