aboutsummaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-16 02:58:02 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-11-16 02:58:02 +0000
commitfc46a5866b7272e4c6237a99c31bcbb89826c29e (patch)
tree7b41a7b347eb0426957f0d2657e6d3755216108b /views
parent1890c9534ff1255af9f2f73d3cf319b81c245eb2 (diff)
downloadelgg-fc46a5866b7272e4c6237a99c31bcbb89826c29e.tar.gz
elgg-fc46a5866b7272e4c6237a99c31bcbb89826c29e.tar.bz2
Added an INSTALLING constant when installing.
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
Diffstat (limited to 'views')
-rw-r--r--views/default/site/default.php15
1 files changed, 8 insertions, 7 deletions
diff --git a/views/default/site/default.php b/views/default/site/default.php
index 432f2ba33..36e041de2 100644
--- a/views/default/site/default.php
+++ b/views/default/site/default.php
@@ -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();
+ }
+}