add action class to default loads
darcs-hash:20080517161817-84dde-a28288b093f40eda0d8444f54eca818b2c65a735.gz
This commit is contained in:
parent
62d0284595
commit
669f494922
|
@ -27,7 +27,7 @@ $actionfile = INSTALLDIR."/actions/$action.php";
|
|||
|
||||
if (file_exists($actionfile)) {
|
||||
require_once($actionfile);
|
||||
$action_class = ucfirst($action) . "Action";
|
||||
$action_class = ucfirst($action)."Action";
|
||||
call_user_func(array($action_class, 'handle'), $_REQUEST);
|
||||
} else {
|
||||
common_user_error(_t('Unknown action'));
|
||||
|
|
|
@ -55,7 +55,8 @@ $config['db'] =
|
|||
'db_driver' => 'MDB2',
|
||||
'quote_identifiers' => false);
|
||||
|
||||
require_once(INSTALLDIR . '/config.php');
|
||||
require_once(INSTALLDIR.'/config.php');
|
||||
require_once(INSTALLDIR.'/lib/action.php');
|
||||
|
||||
# Show a server error
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user