diff options
author | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-08 16:48:35 +0000 |
---|---|---|
committer | ben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-04-08 16:48:35 +0000 |
commit | 146062199ca57fdf34ff3a7acc603c63b644e290 (patch) | |
tree | d08b61e3aa64efe3d1702d9ee22f994c33fc0a05 /engine/start.php | |
parent | 775885a82766bc733d7e9bbdd4bf4da7a8376c80 (diff) | |
download | elgg-146062199ca57fdf34ff3a7acc603c63b644e290.tar.gz elgg-146062199ca57fdf34ff3a7acc603c63b644e290.tar.bz2 |
Incorporating setup fixes from Rolando
git-svn-id: https://code.elgg.org/elgg/trunk@423 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/start.php')
-rw-r--r-- | engine/start.php | 32 |
1 files changed, 20 insertions, 12 deletions
diff --git a/engine/start.php b/engine/start.php index 956f0ac3e..a3386f309 100644 --- a/engine/start.php +++ b/engine/start.php @@ -14,20 +14,28 @@ /**
* Load important prerequisites
- */ - - if (!@include_once(dirname(__FILE__) . "/lib/exceptions.php")) { // Exceptions - echo "Error in installation: could not load the Exceptions library."; - exit; + */
+
+ if (!@include_once(dirname(__FILE__) . "/lib/exceptions.php")) { // Exceptions
+ echo "Error in installation: could not load the Exceptions library.";
+ exit;
}
if (!@include_once(dirname(__FILE__) . "/lib/elgglib.php")) { // Main Elgg library
throw new InstallationException("Elgg could not load its main library.");
- } - - if (!@include_once(dirname(__FILE__) . "/lib/export.php")) { // Export library - echo "Error in installation: could not load the Export library."; - exit; + }
+
+ if (!@include_once(dirname(__FILE__) . "/lib/actions.php")) {
+ throw new InstallationException("Elgg could not load the Actions library");
+ }
+
+ if (!@include_once(dirname(__FILE__) . "/lib/sessions.php")) {
+ throw new InstallationException("Elgg could not load the Sessions library");
+ }
+
+ if (!@include_once(dirname(__FILE__) . "/lib/export.php")) { // Export library
+ echo "Error in installation: could not load the Export library.";
+ exit;
}
/**
@@ -68,9 +76,9 @@ $file_exceptions = array(
'.','..',
- '.svn', + '.svn',
'CVS','cvs',
- 'settings.php','settings.example.php','elgglib.php','database.php'
+ 'settings.php','settings.example.php','exceptions.php','elgglib.php','database.php','actions.php','sessions.php'
);
// Get the list of files to include, and alphabetically sort them
|