summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-17 12:18:17 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-17 12:18:17 -0400
commit669f494922df170db2703f14222d1b8dc4813300 (patch)
tree376e77618ff6405b78c9113e399886bd9f42c5c8
parent62d028459574c3aa2dc58fe71adf4e6ddfb8fa2a (diff)
add action class to default loads
darcs-hash:20080517161817-84dde-a28288b093f40eda0d8444f54eca818b2c65a735.gz
-rw-r--r--index.php2
-rw-r--r--lib/common.php3
2 files changed, 3 insertions, 2 deletions
diff --git a/index.php b/index.php
index cddd11034..9fa749522 100644
--- 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'));
diff --git a/lib/common.php b/lib/common.php
index bcfca0fc0..5eed1bb81 100644
--- a/lib/common.php
+++ b/lib/common.php
@@ -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