aboutsummaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
Diffstat (limited to 'install.php')
-rw-r--r--install.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/install.php b/install.php
index 5e253eb1b..3be2b3c78 100644
--- a/install.php
+++ b/install.php
@@ -20,19 +20,20 @@
/**
* If we're installed, go back to the homepage
*/
- forward();
+ if (is_installed())
+ forward();
/**
* Install the database
*/
- $tables = get_db_tables();
- if (!$tables) {
+ if (!is_db_installed()) {
run_sql_script(dirname(__FILE__) . "/engine/schema/mysql.sql");
+ system_message("The Elgg database was installed.");
}
/**
* Load the front page
*/
- echo page_draw(null, elgg_view("homepage"));
+ echo page_draw("Installation", elgg_view("settings/system"));
?> \ No newline at end of file