aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/friends/index.php4
-rw-r--r--pages/friends/of.php4
-rw-r--r--pages/friends/pickercallback.php2
-rw-r--r--pages/settings/index.php6
-rw-r--r--pages/settings/plugins.php2
-rw-r--r--pages/settings/statistics.php2
-rw-r--r--pages/settings/user.php2
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());
}