aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/default/site/default.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/views/default/site/default.php b/views/default/site/default.php
index 44f052d18..dcb305419 100644
--- a/views/default/site/default.php
+++ b/views/default/site/default.php
@@ -8,5 +8,14 @@
* @link http://elgg.org/
*/
- echo elgg_view('object/default', $vars);
+ // sites information (including plugin settings) shouldn't be shown.
+ // there's not a real reason to display a site object
+ // unless specifically overriden with a subtype view.
+ if ($site = $vars['entity']->url) {
+ forward($site);
+ } else {
+ forward();
+ }
+
+ //echo elgg_view('object/default', $vars);
?> \ No newline at end of file