aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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"));
+ }
-
+ }