diff options
author | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-10 17:30:45 +0000 |
---|---|---|
committer | icewing <icewing@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-06-10 17:30:45 +0000 |
commit | 9e2d0bf7e72563f4cbf2ce1c9bf453646c4a8ad4 (patch) | |
tree | e9d3710411c0e86b2662cd8cc2836189f8b23fc2 /actions/systemsettings | |
parent | 7abd3a520eea2c2a4661c4807e5fe8428269d7ba (diff) | |
download | elgg-9e2d0bf7e72563f4cbf2ce1c9bf453646c4a8ad4.tar.gz elgg-9e2d0bf7e72563f4cbf2ce1c9bf453646c4a8ad4.tar.bz2 |
Marcus Povey <marcus@dushka.co.uk>
* Debug added to site installation
git-svn-id: https://code.elgg.org/elgg/trunk@860 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/systemsettings')
-rw-r--r-- | actions/systemsettings/install.php | 5 |
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());
|