diff options
-rw-r--r-- | admin/plugins.php | 2 | ||||
-rw-r--r-- | admin/site.php | 2 | ||||
-rw-r--r-- | admin/statistics.php | 2 | ||||
-rw-r--r-- | admin/user.php | 2 | ||||
-rw-r--r-- | views/default/page_elements/owner_block.php | 4 |
5 files changed, 6 insertions, 6 deletions
diff --git a/admin/plugins.php b/admin/plugins.php index 9d3b3218a..4ec3dfa56 100644 --- a/admin/plugins.php +++ b/admin/plugins.php @@ -19,7 +19,7 @@ admin_gatekeeper(); // Set admin user for user block - set_page_owner($_SESSION['guid']);
+ //set_page_owner($_SESSION['guid']);
// Regenerate plugin list
regenerate_plugin_list(); diff --git a/admin/site.php b/admin/site.php index 7803b4a39..18666eace 100644 --- a/admin/site.php +++ b/admin/site.php @@ -18,7 +18,7 @@ admin_gatekeeper();
// Set admin user for user block
- set_page_owner($_SESSION['guid']);
+ //set_page_owner($_SESSION['guid']);
// Display main admin menu
page_draw(elgg_echo("admin:site"),elgg_view_layout("two_column_left_sidebar",'', elgg_view_title(elgg_echo('admin:site')) . elgg_view("admin/site")));
diff --git a/admin/statistics.php b/admin/statistics.php index fcc42bad5..ba0a916e8 100644 --- a/admin/statistics.php +++ b/admin/statistics.php @@ -19,7 +19,7 @@ admin_gatekeeper(); // Set admin user for user block - set_page_owner($_SESSION['guid']); + //set_page_owner($_SESSION['guid']); // Display main admin menu page_draw(elgg_echo("admin:statistics"),elgg_view_layout("two_column_left_sidebar",'',elgg_view_title(elgg_echo('admin:statistics')) . elgg_view("admin/statistics"))); diff --git a/admin/user.php b/admin/user.php index 37160d2a7..f6798f4da 100644 --- a/admin/user.php +++ b/admin/user.php @@ -18,7 +18,7 @@ admin_gatekeeper();
// Set admin user for user block
- set_page_owner($_SESSION['guid']);
+ //set_page_owner($_SESSION['guid']);
// Are we performing a search
$search = get_input('s');
diff --git a/views/default/page_elements/owner_block.php b/views/default/page_elements/owner_block.php index 6544e8aee..20fd96d02 100644 --- a/views/default/page_elements/owner_block.php +++ b/views/default/page_elements/owner_block.php @@ -17,8 +17,8 @@ // Is there a page owner?
$owner = page_owner_entity();
- if (!$owner && isloggedin()) $owner = $_SESSION['user'];
- if ($owner) {
+ // if (!$owner && isloggedin()) $owner = $_SESSION['user'];
+ if ($owner instanceof ElggEntity) {
$icon = elgg_view("profile/icon",array('entity' => $owner, 'size' => 'tiny'));
if ($owner instanceof ElggUser || $owner instanceof ElggGroup) {
//$info = $owner->name;
|