]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Added an INSTALLING constant when installing.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 16 Nov 2009 02:58:02 +0000 (02:58 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Mon, 16 Nov 2009 02:58:02 +0000 (02:58 +0000)
Fixed a bug when trying to export a site that causes the browser to redirect to the site's url, which caused the installation process to skip past the "create your admin user" prompt when "ping home" was checked.

git-svn-id: http://code.elgg.org/elgg/trunk@3687 36083f99-b078-4883-b0ff-0f9b5a30f544

actions/systemsettings/install.php
views/default/site/default.php

index 9679012e7e405b479216b1ee25e345850420e3d4..41a2a8b22b7644357328d91e9f6c0ad87b4f584d 100644 (file)
@@ -10,6 +10,7 @@
  * @link http://elgg.org/
  */
 
+define('INSTALLING', TRUE);
 elgg_set_viewtype('failsafe'); // Set failsafe again incase we get an exception thrown
 
 if (is_installed()) {
index 432f2ba338f55aab55d3ccf6c4aae45a38fd0b79..36e041de2efcc8423346b864ced3f54a6e7e0798 100644 (file)
@@ -9,10 +9,11 @@
  */
 
 // sites information (including plugin settings) shouldn't be shown.
-// there's not a real reason to display a site object
-// unless specifically overriden with a subtype view.
-if ($site = $vars['entity']->url) {
-       forward($site);
-} else {
-       forward();
-}
\ No newline at end of file
+// this view is required for pinging home during install.
+if (!defined('INSTALLING')) {
+       if ($site = $vars['entity']->url) {
+               forward($site);
+       } else {
+               forward();
+       }
+}