aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 02:23:07 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-19 02:23:07 +0000
commit0d7a1b4b52d6e5c66d59589dca1ec0b8a3a7e1fd (patch)
treedc9f37fce52fb4d8f6ffdbeaf7080988553649ef /engine
parentebcbf0cb3b4c4053565adc089acfb8bc96605701 (diff)
downloadelgg-0d7a1b4b52d6e5c66d59589dca1ec0b8a3a7e1fd.tar.gz
elgg-0d7a1b4b52d6e5c66d59589dca1ec0b8a3a7e1fd.tar.bz2
switching to using full paths in handlers
git-svn-id: http://code.elgg.org/elgg/trunk@7341 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/handlers/action_handler.php2
-rw-r--r--engine/handlers/cron_handler.php3
-rw-r--r--engine/handlers/pagehandler.php2
-rw-r--r--engine/handlers/service_handler.php2
-rw-r--r--engine/handlers/xml-rpc_handler.php3
5 files changed, 5 insertions, 7 deletions
diff --git a/engine/handlers/action_handler.php b/engine/handlers/action_handler.php
index a6bdaeae9..cf6c8c9eb 100644
--- a/engine/handlers/action_handler.php
+++ b/engine/handlers/action_handler.php
@@ -14,7 +14,7 @@
* @link http://docs.elgg.org/Tutorials/Actions
*/
-require_once("../start.php");
+require_once(dirname(dirname(__FILE__)) . "/start.php");
$action = get_input("action");
action($action); \ No newline at end of file
diff --git a/engine/handlers/cron_handler.php b/engine/handlers/cron_handler.php
index 8ca8ac8a9..9d3891892 100644
--- a/engine/handlers/cron_handler.php
+++ b/engine/handlers/cron_handler.php
@@ -13,8 +13,7 @@
* @todo
*/
-require_once("../start.php");
-global $CONFIG;
+require_once(dirname(dirname(__FILE__)) . "/start.php");
$period = get_input('period');
if (!$period) {
diff --git a/engine/handlers/pagehandler.php b/engine/handlers/pagehandler.php
index a92c2f408..e824b5232 100644
--- a/engine/handlers/pagehandler.php
+++ b/engine/handlers/pagehandler.php
@@ -17,7 +17,7 @@
* @link http://docs.elgg.org/Tutorials/PageHandlers
*/
-require_once("../start.php");
+require_once(dirname(dirname(__FILE__)) . "/start.php");
$handler = get_input('handler');
$page = get_input('page');
diff --git a/engine/handlers/service_handler.php b/engine/handlers/service_handler.php
index c6a7e57c5..a23528be8 100644
--- a/engine/handlers/service_handler.php
+++ b/engine/handlers/service_handler.php
@@ -19,7 +19,7 @@
* @link http://docs.elgg.org/Tutorials/WebServices
*/
-require_once("../start.php");
+require_once(dirname(dirname(__FILE__)) . "/start.php");
$handler = get_input('handler');
$request = get_input('request');
diff --git a/engine/handlers/xml-rpc_handler.php b/engine/handlers/xml-rpc_handler.php
index 2454c83bc..c5dedea1d 100644
--- a/engine/handlers/xml-rpc_handler.php
+++ b/engine/handlers/xml-rpc_handler.php
@@ -10,8 +10,7 @@
* @todo Does this work?
*/
-require_once("../start.php");
-global $CONFIG;
+require_once(dirname(dirname(__FILE__)) . "/start.php");
// Register the error handler
error_reporting(E_ALL);