aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/handlers/action_handler.php1
-rw-r--r--engine/handlers/cron_handler.php3
-rw-r--r--engine/handlers/xml-rpc_handler.php3
-rw-r--r--index.php1
4 files changed, 6 insertions, 2 deletions
diff --git a/engine/handlers/action_handler.php b/engine/handlers/action_handler.php
index fa5a40a7a..9dc9a4408 100644
--- a/engine/handlers/action_handler.php
+++ b/engine/handlers/action_handler.php
@@ -13,6 +13,7 @@
/**
* Load Elgg framework
*/
+ define('externalpage',true);
require_once("../start.php");
$action = get_input("action");
action($action);
diff --git a/engine/handlers/cron_handler.php b/engine/handlers/cron_handler.php
index 639884da4..5259fe5a3 100644
--- a/engine/handlers/cron_handler.php
+++ b/engine/handlers/cron_handler.php
@@ -10,7 +10,8 @@
* @link http://elgg.org/
*/
- // Load Elgg engine
+ // Load Elgg engine
+ define('externalpage',true);
require_once("../start.php");
global $CONFIG;
diff --git a/engine/handlers/xml-rpc_handler.php b/engine/handlers/xml-rpc_handler.php
index 82801a56f..ca75a9c24 100644
--- a/engine/handlers/xml-rpc_handler.php
+++ b/engine/handlers/xml-rpc_handler.php
@@ -10,7 +10,8 @@
* @link http://elgg.org/
*/
- // Load Elgg engine
+ // Load Elgg engine
+ define('externalpage',true);
require_once("../start.php");
global $CONFIG;
diff --git a/index.php b/index.php
index c0fa0f7ed..817e8b2a9 100644
--- a/index.php
+++ b/index.php
@@ -14,6 +14,7 @@
/**
* Start the Elgg engine
*/
+ define('externalpage',true);
require_once(dirname(__FILE__) . "/engine/start.php");