]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add action class to default loads
authorEvan Prodromou <evan@prodromou.name>
Sat, 17 May 2008 16:18:17 +0000 (12:18 -0400)
committerEvan Prodromou <evan@prodromou.name>
Sat, 17 May 2008 16:18:17 +0000 (12:18 -0400)
darcs-hash:20080517161817-84dde-a28288b093f40eda0d8444f54eca818b2c65a735.gz

index.php
lib/common.php

index cddd1103412092ecb4aae9f226fe963acc9eb65b..9fa749522df4992e288fdd3cf08ed9a1d14e7498 100644 (file)
--- a/index.php
+++ b/index.php
@@ -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'));
index bcfca0fc047f5bf0028c0bdb8a9000db539dd881..5eed1bb81b3025331b5d738b4f3339f6c29e4609 100644 (file)
@@ -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