aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-30 12:31:42 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-03-30 12:31:42 +0000
commit7f674010439a4d334e86a80513c7badc6e931779 (patch)
tree6e2c5cdb951fac32f692297d3d9cb008e88a9816
parent44c8d869ffbfa5fe2465f27dfc0aea244d4afc06 (diff)
downloadelgg-7f674010439a4d334e86a80513c7badc6e931779.tar.gz
elgg-7f674010439a4d334e86a80513c7badc6e931779.tar.bz2
Context can now be assigned by defining a constant in the page.
git-svn-id: https://code.elgg.org/elgg/trunk@3175 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/pageowner.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/engine/lib/pageowner.php b/engine/lib/pageowner.php
index 1f351443c..d78aa3301 100644
--- a/engine/lib/pageowner.php
+++ b/engine/lib/pageowner.php
@@ -150,4 +150,9 @@
}
+ if (defined('context')) {
+ global $CONFIG;
+ $CONFIG->context = context;
+ }
+
?> \ No newline at end of file