diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-30 21:48:24 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-10-30 21:48:24 +0000 |
commit | c27eac2d2a970e76a1204757bbe15da8efb2870c (patch) | |
tree | 7f524d3ee95391163293d9f77a945e2915c3e8ac /pages | |
parent | f49fdf4e1c80fe5bde922c25bdd6ca0e2c912ddb (diff) | |
download | elgg-c27eac2d2a970e76a1204757bbe15da8efb2870c.tar.gz elgg-c27eac2d2a970e76a1204757bbe15da8efb2870c.tar.bz2 |
Refs #1439: Using new page_owner functions in all of core
git-svn-id: http://code.elgg.org/elgg/trunk@7140 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'pages')
-rw-r--r-- | pages/friends/index.php | 4 | ||||
-rw-r--r-- | pages/friends/of.php | 4 | ||||
-rw-r--r-- | pages/friends/pickercallback.php | 2 | ||||
-rw-r--r-- | pages/settings/index.php | 6 | ||||
-rw-r--r-- | pages/settings/plugins.php | 2 | ||||
-rw-r--r-- | pages/settings/statistics.php | 2 | ||||
-rw-r--r-- | pages/settings/user.php | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/pages/friends/index.php b/pages/friends/index.php index 10128ffc7..e9ff87c16 100644 --- a/pages/friends/index.php +++ b/pages/friends/index.php @@ -6,11 +6,11 @@ * @subpackage Core */ -$owner = page_owner_entity(); +$owner = elgg_get_page_owner(); if (!$owner) { gatekeeper(); set_page_owner(get_loggedin_userid()); - $owner = page_owner_entity(); + $owner = elgg_get_page_owner(); } $title = sprintf(elgg_echo("friends:owned"), $owner->name); diff --git a/pages/friends/of.php b/pages/friends/of.php index b8740b88e..0e09e09f0 100644 --- a/pages/friends/of.php +++ b/pages/friends/of.php @@ -6,11 +6,11 @@ * @subpackage Core */ -$owner = page_owner_entity(); +$owner = elgg_get_page_owner(); if (!$owner) { gatekeeper(); set_page_owner(get_loggedin_userid()); - $owner = page_owner_entity(); + $owner = elgg_get_page_owner(); } $title = sprintf(elgg_echo("friends:of:owned"), $owner->name); diff --git a/pages/friends/pickercallback.php b/pages/friends/pickercallback.php index c04b1d383..00661c2b1 100644 --- a/pages/friends/pickercallback.php +++ b/pages/friends/pickercallback.php @@ -22,7 +22,7 @@ if (!$members) { $friendspicker = (int) get_input('friendspicker', 0); // Get page owner (bomb out if there isn't one) -$pageowner = page_owner_entity(); +$pageowner = elgg_get_page_owner(); if (!$pageowner) { forward(); exit; diff --git a/pages/settings/index.php b/pages/settings/index.php index 01a60d753..dbc8c87da 100644 --- a/pages/settings/index.php +++ b/pages/settings/index.php @@ -6,14 +6,14 @@ * @subpackage Core */ -if (!page_owner()) { +if (!elgg_get_page_owner_guid()) { set_page_owner(get_loggedin_userid()); } // Make sure we don't open a security hole ... -if ((!page_owner_entity()) || (!page_owner_entity()->canEdit())) { +if ((!elgg_get_page_owner()) || (!elgg_get_page_owner()->canEdit())) { set_page_owner(get_loggedin_userid()); } // Forward to the user settings -forward('pg/settings/user/' . page_owner_entity()->username . "/");
\ No newline at end of file +forward('pg/settings/user/' . elgg_get_page_owner()->username . "/");
\ No newline at end of file diff --git a/pages/settings/plugins.php b/pages/settings/plugins.php index a003be644..a768e69d7 100644 --- a/pages/settings/plugins.php +++ b/pages/settings/plugins.php @@ -10,7 +10,7 @@ gatekeeper(); // Make sure we don't open a security hole ... -if ((!page_owner_entity()) || (!page_owner_entity()->canEdit())) { +if ((!elgg_get_page_owner()) || (!elgg_get_page_owner()->canEdit())) { set_page_owner(get_loggedin_userid()); } diff --git a/pages/settings/statistics.php b/pages/settings/statistics.php index cd73c396b..38b0094ee 100644 --- a/pages/settings/statistics.php +++ b/pages/settings/statistics.php @@ -10,7 +10,7 @@ gatekeeper(); // Make sure we don't open a security hole ... -if ((!page_owner_entity()) || (!page_owner_entity()->canEdit())) { +if ((!elgg_get_page_owner()) || (!elgg_get_page_owner()->canEdit())) { set_page_owner(get_loggedin_userid()); } diff --git a/pages/settings/user.php b/pages/settings/user.php index 6482ac9bf..62a3bb1ba 100644 --- a/pages/settings/user.php +++ b/pages/settings/user.php @@ -10,7 +10,7 @@ gatekeeper(); // Make sure we don't open a security hole ... -if ((!page_owner_entity()) || (!page_owner_entity()->canEdit())) { +if ((!elgg_get_page_owner()) || (!elgg_get_page_owner()->canEdit())) { set_page_owner(get_loggedin_userid()); } |