From 9255088a79a034c3cdf4eb46124504b9dd0c838e Mon Sep 17 00:00:00 2001 From: ewinslow Date: Sat, 30 Oct 2010 22:15:36 +0000 Subject: Refs #2598: Converted virtually all uses of $CONFIG->wwwroot to elgg_get_site_url() git-svn-id: http://code.elgg.org/elgg/trunk@7146 36083f99-b078-4883-b0ff-0f9b5a30f544 --- install/ElggInstaller.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'install') diff --git a/install/ElggInstaller.php b/install/ElggInstaller.php index 480a2ed1e..1527572d6 100644 --- a/install/ElggInstaller.php +++ b/install/ElggInstaller.php @@ -369,7 +369,7 @@ class ElggInstaller { ), 'wwwroot' => array( 'type' => 'text', - 'value' => $CONFIG->wwwroot, + 'value' => elgg_get_site_url(), 'required' => TRUE, ), 'path' => array( @@ -551,7 +551,7 @@ class ElggInstaller { protected function getNextStepUrl($currentStep) { global $CONFIG; $nextStep = $this->getNextStep($currentStep); - return "{$CONFIG->wwwroot}install.php?step=$nextStep"; + return elgg_get_site_url()."install.php?step=$nextStep"; } /** @@ -659,15 +659,15 @@ class ElggInstaller { } if ($this->status['settings'] == FALSE) { - forward("{$CONFIG->wwwroot}install.php?step=settings"); + forward(elgg_get_site_url()."install.php?step=settings"); } if ($this->status['admin'] == FALSE) { - forward("{$CONFIG->wwwroot}install.php?step=admin"); + forward(elgg_get_site_url()."install.php?step=admin"); } // everything appears to be set up - forward("{$CONFIG->wwwroot}install.php?step=complete"); + forward(elgg_get_site_url()."install.php?step=complete"); } /** @@ -1029,7 +1029,7 @@ class ElggInstaller { require_once(dirname(__FILE__) . "/ElggRewriteTester.php"); $tester = new ElggRewriteTester(); - $url = "{$CONFIG->wwwroot}rewrite.php"; + $url = elgg_get_site_url()."rewrite.php"; $report['rewrite'] = array($tester->run($url, $CONFIG->path)); } -- cgit v1.2.3