diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-20 11:10:20 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2009-02-20 11:10:20 +0000 |
commit | 806795fa390753539dbb02c490dcd94c2c7610d8 (patch) | |
tree | 91e790bbccfce6a423a4ec977ae7a4a8115e4f6d | |
parent | fe1b0d56d4515ede1a3128c649c487b15fb6ffa4 (diff) | |
download | elgg-806795fa390753539dbb02c490dcd94c2c7610d8.tar.gz elgg-806795fa390753539dbb02c490dcd94c2c7610d8.tar.bz2 |
Removed unnecessary owner blocks.
git-svn-id: https://code.elgg.org/elgg/trunk@2844 36083f99-b078-4883-b0ff-0f9b5a30f544
-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;
|