aboutsummaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/systemsettings/install.php5
1 files changed, 4 insertions, 1 deletions
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());