aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-23 10:36:17 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-04-23 10:36:17 +0000
commit78029503c98d12d1fe0681f5aa915ccc1246d662 (patch)
tree8c74040ca729851537870ec2ad220c0f15c54eb1 /mod
parentfeefb1e89a5d02f56c36f02f59e7428304578f9c (diff)
downloadelgg-78029503c98d12d1fe0681f5aa915ccc1246d662.tar.gz
elgg-78029503c98d12d1fe0681f5aa915ccc1246d662.tar.bz2
frontpage creation respects walledgarden
git-svn-id: http://code.elgg.org/elgg/trunk@5858 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/sitepages/start.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/mod/sitepages/start.php b/mod/sitepages/start.php
index 325ddc8da..a173dcd6f 100644
--- a/mod/sitepages/start.php
+++ b/mod/sitepages/start.php
@@ -38,8 +38,8 @@ function sitepages_init() {
elgg_extend_view('footer/links', 'sitepages/footer_menu');
elgg_extend_view('metatags', 'sitepages/metatags');
- // Replace the default index page if user has requested
- if (get_plugin_setting('ownfrontpage', 'sitepages') == 'yes') {
+ // Replace the default index page if user has requested and the site is not running walled garden
+ if ((get_plugin_setting('ownfrontpage', 'sitepages') == 'yes') && (!is_plugin_enabled('walledgarden'))) {
register_plugin_hook('index', 'system', 'sitepages_custom_index');
}