From 9e2d0bf7e72563f4cbf2ce1c9bf453646c4a8ad4 Mon Sep 17 00:00:00 2001 From: icewing Date: Tue, 10 Jun 2008 17:30:45 +0000 Subject: Marcus Povey * Debug added to site installation git-svn-id: https://code.elgg.org/elgg/trunk@860 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/systemsettings/install.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'actions/systemsettings') diff --git a/actions/systemsettings/install.php b/actions/systemsettings/install.php index 1587388bb..b56a86f6c 100644 --- a/actions/systemsettings/install.php +++ b/actions/systemsettings/install.php @@ -21,7 +21,10 @@ $site->name = get_input('sitename'); $site->url = get_input('wwwroot'); $site->access_id = 2; // The site is public - $site->save(); + $guid = $site->save(); + + if (!$guid) + throw new InstallationException(sprintf(elgg_echo('InstallationException:CantCreateSite'), get_input('sitename'), get_input('wwwroot'))); datalist_set('installed',time()); -- cgit v1.2.3