]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
switching to using full paths in handlers
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 19 Nov 2010 02:23:07 +0000 (02:23 +0000)
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>
Fri, 19 Nov 2010 02:23:07 +0000 (02:23 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@7341 36083f99-b078-4883-b0ff-0f9b5a30f544

engine/handlers/action_handler.php
engine/handlers/cron_handler.php
engine/handlers/pagehandler.php
engine/handlers/service_handler.php
engine/handlers/xml-rpc_handler.php

index a6bdaeae90050db3bb868c402cb023293ef56c08..cf6c8c9ebfe14ced861da0ca377ce210044e93ad 100644 (file)
@@ -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
index 8ca8ac8a9aa5f7c0f1ac127cd1282f52129976d8..9d38918920a491774474d148dbfc404fdf74da22 100644 (file)
@@ -13,8 +13,7 @@
  * @todo
  */
 
-require_once("../start.php");
-global $CONFIG;
+require_once(dirname(dirname(__FILE__)) . "/start.php");
 
 $period = get_input('period');
 if (!$period) {
index a92c2f4083e620e93ecaee82b79024ae1bcf28c1..e824b523218f9b5537571509e67fea5e4652565e 100644 (file)
@@ -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');
index c6a7e57c517cd3557d7bc94e5f9ef0d0b5ce9654..a23528be84b5a5ecc97b19f7821c668768449403 100644 (file)
@@ -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');
index 2454c83bc527bb9a1a8da6880af90921e6fde0e4..c5dedea1d97258163a379bd74413c7b36b48df9e 100644 (file)
@@ -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);