diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-09 12:15:56 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-07-09 12:15:56 +0000 |
commit | 6fc948daa0469142af595eaffc4fe59282690bf4 (patch) | |
tree | 92a9c426c3556dbf61fd5ee99e336ccaf781a152 | |
parent | 10c02af267eee4098a525930ebfe6984beb9d197 (diff) | |
download | elgg-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
-rw-r--r-- | index.php | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -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"));
+ }
- + } |