From: dave Date: Fri, 23 Apr 2010 10:36:17 +0000 (+0000) Subject: frontpage creation respects walledgarden X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=78029503c98d12d1fe0681f5aa915ccc1246d662;p=lorea%2Felgg.git frontpage creation respects walledgarden git-svn-id: http://code.elgg.org/elgg/trunk@5858 36083f99-b078-4883-b0ff-0f9b5a30f544 --- 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'); }