aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-09 12:15:56 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-07-09 12:15:56 +0000
commit6fc948daa0469142af595eaffc4fe59282690bf4 (patch)
tree92a9c426c3556dbf61fd5ee99e336ccaf781a152 /index.php
parent10c02af267eee4098a525930ebfe6984beb9d197 (diff)
downloadelgg-6fc948daa0469142af595eaffc4fe59282690bf4.tar.gz
elgg-6fc948daa0469142af595eaffc4fe59282690bf4.tar.bz2
Plugins can now override the front page
git-svn-id: https://code.elgg.org/elgg/trunk@1352 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'index.php')
-rw-r--r--index.php24
1 files changed, 12 insertions, 12 deletions
diff --git a/index.php b/index.php
index 87b2c9c8c..79b59252f 100644
--- a/index.php
+++ b/index.php
@@ -17,20 +17,20 @@
require_once(dirname(__FILE__) . "/engine/start.php");
+ if (!trigger_plugin_hook('index','system',null,false)) {
-
- /**
- * Check to see if user is logged in, if not display login form
- **/
- if ($_SESSION['id'] != -1){
- //Load the sample welcome page
- echo page_draw(null, elgg_view("welcome"));
- } else {
- //Load the front page
- echo page_draw(null, elgg_view("login"));
- }
+ /**
+ * Check to see if user is logged in, if not display login form
+ **/
+ if ($_SESSION['id'] != -1){
+ //Load the sample welcome page
+ echo page_draw(null, elgg_view("welcome"));
+ } else {
+ //Load the front page
+ echo page_draw(null, elgg_view("login"));
+ }
-
+ }