aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--actions/systemsettings/install.php5
-rw-r--r--languages/en.php4
2 files changed, 7 insertions, 2 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());
diff --git a/languages/en.php b/languages/en.php
index c5a55fa60..c869edbe9 100644
--- a/languages/en.php
+++ b/languages/en.php
@@ -17,7 +17,9 @@
/**
* Errors
*/
-
+
+ 'InstallationException:CantCreateSite' => "Unable to create a default ElggSite with credentials Name:%s, Url: %s",
+
'actionundefined' => "The requested action (%s) was not defined in the system.",
'actionloggedout' => "Sorry, you cannot perform this action while logged out.",