From 06fce6847aa3c29b9e05ce4b82d2b0272033ef74 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 10 Jun 2008 14:57:40 +0000 Subject: Languages are now loaded before the main engine starts. git-svn-id: https://code.elgg.org/elgg/trunk@849 36083f99-b078-4883-b0ff-0f9b5a30f544 --- engine/start.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engine') diff --git a/engine/start.php b/engine/start.php index 214ed725b..3424c54de 100644 --- a/engine/start.php +++ b/engine/start.php @@ -33,6 +33,10 @@ throw new InstallationException("Error in installation: could not load the Export library."); } + if (!@include_once(dirname(__FILE__) . "/lib/languages.php")) { // Main Elgg library + throw new InstallationException("Elgg could not load its main library."); + } + /** * Set light mode default */ @@ -86,7 +90,7 @@ '.','..', '.svn', 'CVS','cvs', - 'settings.php','settings.example.php','exceptions.php','elgglib.php','database.php','actions.php','sessions.php' + 'settings.php','settings.example.php','languages.php','exceptions.php','elgglib.php','database.php','actions.php','sessions.php' ); // Get the list of files to include, and alphabetically sort them -- cgit v1.2.3