aboutsummaryrefslogtreecommitdiff
path: root/pages/settings
diff options
context:
space:
mode:
Diffstat (limited to 'pages/settings')
-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
4 files changed, 6 insertions, 6 deletions
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());
}