forked from GNUsocial/gnu-social
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
This commit is contained in:
@@ -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'));
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user