add action class to default loads

darcs-hash:20080517161817-84dde-a28288b093f40eda0d8444f54eca818b2c65a735.gz
This commit is contained in:
Evan Prodromou 2008-05-17 12:18:17 -04:00
parent 62d0284595
commit 669f494922
2 changed files with 3 additions and 2 deletions

View File

@ -27,7 +27,7 @@ $actionfile = INSTALLDIR."/actions/$action.php";
if (file_exists($actionfile)) { if (file_exists($actionfile)) {
require_once($actionfile); require_once($actionfile);
$action_class = ucfirst($action) . "Action"; $action_class = ucfirst($action)."Action";
call_user_func(array($action_class, 'handle'), $_REQUEST); call_user_func(array($action_class, 'handle'), $_REQUEST);
} else { } else {
common_user_error(_t('Unknown action')); common_user_error(_t('Unknown action'));

View File

@ -55,7 +55,8 @@ $config['db'] =
'db_driver' => 'MDB2', 'db_driver' => 'MDB2',
'quote_identifiers' => false); 'quote_identifiers' => false);
require_once(INSTALLDIR . '/config.php'); require_once(INSTALLDIR.'/config.php');
require_once(INSTALLDIR.'/lib/action.php');
# Show a server error # Show a server error