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
* @link http://elgg.org/
*/
+define('INSTALLING', TRUE);
elgg_set_viewtype('failsafe'); // Set failsafe again incase we get an exception thrown
if (is_installed()) {
*/
// 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();
+ }
+}