aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/pageowner.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-10-08 17:56:27 -0400
committerCash Costello <cash.costello@gmail.com>2011-10-08 17:56:27 -0400
commitc80f32c614e48e237bcc3b72b780badf17d99dca (patch)
treeef37a16cc632d2143a42027ef83a4bfa511ddc9b /engine/lib/pageowner.php
parent73eb2ffc45442195c6c8fe9dd13604781adfc74b (diff)
downloadelgg-c80f32c614e48e237bcc3b72b780badf17d99dca.tar.gz
elgg-c80f32c614e48e237bcc3b72b780badf17d99dca.tar.bz2
Fixes #3936 added @access private to internal functions
Diffstat (limited to 'engine/lib/pageowner.php')
-rw-r--r--engine/lib/pageowner.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/engine/lib/pageowner.php b/engine/lib/pageowner.php
index 504d34a4e..d1010fda6 100644
--- a/engine/lib/pageowner.php
+++ b/engine/lib/pageowner.php
@@ -82,6 +82,7 @@ function elgg_set_page_owner_guid($guid) {
* @param array $params no parameters
*
* @return int GUID
+ * @access private
*/
function default_page_owner_handler($hook, $entity_type, $returnvalue, $params) {
@@ -259,6 +260,7 @@ function elgg_in_context($context) {
* @note This is on the 'boot, system' event so that the context is set up quickly.
*
* @return void
+ * @access private
*/
function page_owner_boot() {
global $CONFIG;
@@ -266,7 +268,10 @@ function page_owner_boot() {
elgg_register_plugin_hook_handler('page_owner', 'system', 'default_page_owner_handler');
$CONFIG->context = array();
- // @todo Ew... hacky
+
+ // Bootstrap the context stack by setting its first entry to the handler.
+ // This is the first segment of the URL and the handler is set by the rewrite rules.
+ // @todo this does not work for actions
$handler = get_input('handler', FALSE);
if ($handler) {
elgg_set_context($handler);