From da5aa66e3e0d13e8fe4766168fb992183f107780 Mon Sep 17 00:00:00 2001 From: cash Date: Wed, 20 Oct 2010 00:07:56 +0000 Subject: Fixes #2570 - cannot replicate issue with current_page_url() so returned to using it - fixes subdirectory install issue git-svn-id: http://code.elgg.org/elgg/trunk@7100 36083f99-b078-4883-b0ff-0f9b5a30f544 --- install/ElggInstaller.php | 1 + views/installation/install/forms/admin.php | 5 +---- views/installation/install/forms/database.php | 4 +--- views/installation/install/forms/settings.php | 4 +--- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/install/ElggInstaller.php b/install/ElggInstaller.php index 66d1038ab..5cc9258ec 100644 --- a/install/ElggInstaller.php +++ b/install/ElggInstaller.php @@ -746,6 +746,7 @@ class ElggInstaller { /** * Get the best guess at the base URL + * @note Cannot use current_page_url() because it depends on $CONFIG->wwwroot * @todo Should this be a core function? * @return string */ diff --git a/views/installation/install/forms/admin.php b/views/installation/install/forms/admin.php index cfeab190a..1ecb389a3 100644 --- a/views/installation/install/forms/admin.php +++ b/views/installation/install/forms/admin.php @@ -8,10 +8,7 @@ $vars['type'] = 'admin'; $form_body = elgg_view('install/forms/template', $vars); - -// @todo bug in current_page_url() with :8080 sites -//$url = current_page_url(); -$url = '/install.php?step=admin'; +$url = current_page_url(); $params = array( 'body' => $form_body, diff --git a/views/installation/install/forms/database.php b/views/installation/install/forms/database.php index 2d1d41bc9..0e798db09 100644 --- a/views/installation/install/forms/database.php +++ b/views/installation/install/forms/database.php @@ -8,9 +8,7 @@ $vars['type'] = 'database'; $form_body = elgg_view('install/forms/template', $vars); -// @todo bug in current_page_url() with :8080 sites -//$url = current_page_url(); -$url = '/install.php?step=database'; +$url = current_page_url(); $params = array( 'body' => $form_body, diff --git a/views/installation/install/forms/settings.php b/views/installation/install/forms/settings.php index 7f493ebff..e9a818b92 100644 --- a/views/installation/install/forms/settings.php +++ b/views/installation/install/forms/settings.php @@ -8,9 +8,7 @@ $vars['type'] = 'settings'; $form_body = elgg_view('install/forms/template', $vars); -// @todo bug in current_page_url() with :8080 sites -//$url = current_page_url(); -$url = '/install.php?step=settings'; +$url = current_page_url(); $params = array( 'body' => $form_body, -- cgit v1.2.3