aboutsummaryrefslogtreecommitdiff
path: root/engine/start.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-06 11:21:47 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-06 11:21:47 +0000
commit6606581f431f52330b8bcc28e1aa1b55a4b5b408 (patch)
tree51f9e80b120ad8b3b7c6a05fdd75fc737929da5b /engine/start.php
parente60775fb5a44955669e18780de3bad7bc0f0ce30 (diff)
downloadelgg-6606581f431f52330b8bcc28e1aa1b55a4b5b408.tar.gz
elgg-6606581f431f52330b8bcc28e1aa1b55a4b5b408.tar.bz2
removed several parts of the old installer from the core
git-svn-id: http://code.elgg.org/elgg/trunk@7021 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/start.php')
-rw-r--r--engine/start.php20
1 files changed, 7 insertions, 13 deletions
diff --git a/engine/start.php b/engine/start.php
index ce011f5c4..a84a19e0d 100644
--- a/engine/start.php
+++ b/engine/start.php
@@ -82,7 +82,8 @@ set_exception_handler('__elgg_php_exception_handler');
* Load the system settings
*/
if (!include_once(dirname(__FILE__) . "/settings.php")) {
- throw new InstallationException("Elgg could not load the settings file.");
+ $msg = elgg_echo('InstallationException:CannotLoadSettings');
+ throw new InstallationException($msg);
}
@@ -94,7 +95,7 @@ $lib_files = array(
'admin.php', 'annotations.php', 'api.php', 'cache.php',
'calendar.php', 'configuration.php', 'cron.php', 'entities.php',
'export.php', 'extender.php', 'filestore.php', 'group.php',
- 'input.php', 'install.php', 'location.php', 'mb_wrapper.php',
+ 'input.php', 'location.php', 'mb_wrapper.php',
'memcache.php', 'metadata.php', 'metastrings.php', 'notification.php',
'objects.php', 'opendd.php', 'pagehandler.php',
'pageowner.php', 'pam.php', 'plugins.php', 'query.php',
@@ -107,20 +108,13 @@ foreach($lib_files as $file) {
$file = $lib_dir . $file;
elgg_log("Loading $file...");
if (!include_once($file)) {
- throw new InstallationException("Could not load {$file}");
+ $msg = sprint(elgg_echo('InstallationException:MissingLibrary'), $file);
+ throw new InstallationException($msg);
}
}
-// check if the install was completed
-// @todo move into function
-$installed = FALSE;
-try {
- $installed = is_installed();
-} catch (DatabaseException $e) {}
-if (!$installed) {
- header("Location: install.php");
- exit;
-}
+// confirm that the installation completed successfully
+verify_installation();
// Autodetect some default configuration settings
set_default_config();