aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-01 06:19:52 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-02-01 06:19:52 +0000
commit0f3e37266425d77cdbb3c559ad0c43b4557c2933 (patch)
treec5e4e6a4abee449cc81f0e462f85952305cbe5cd
parent28f259e72ea8dace183cbb342a22e5ebff2a97d6 (diff)
downloadelgg-0f3e37266425d77cdbb3c559ad0c43b4557c2933.tar.gz
elgg-0f3e37266425d77cdbb3c559ad0c43b4557c2933.tar.bz2
Fixes #1211: page_owner() sets the page owner after figuring it out.
git-svn-id: http://code.elgg.org/elgg/trunk@3882 36083f99-b078-4883-b0ff-0f9b5a30f544
-rw-r--r--engine/lib/pageowner.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/engine/lib/pageowner.php b/engine/lib/pageowner.php
index 825b41d37..287f82e21 100644
--- a/engine/lib/pageowner.php
+++ b/engine/lib/pageowner.php
@@ -71,6 +71,8 @@ function page_owner() {
forward();
}
+ // set the page owner so if we're called again we don't have to think.
+ set_page_owner($returnval);
return $returnval;
}