aboutsummaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 22:15:36 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-30 22:15:36 +0000
commit9255088a79a034c3cdf4eb46124504b9dd0c838e (patch)
treea225048f7475ea8ddb4820b539f8482655d9da8e /install
parent323e3ee1dafdf7bdd60607fd960e53957fce770d (diff)
downloadelgg-9255088a79a034c3cdf4eb46124504b9dd0c838e.tar.gz
elgg-9255088a79a034c3cdf4eb46124504b9dd0c838e.tar.bz2
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
Diffstat (limited to 'install')
-rw-r--r--install/ElggInstaller.php12
1 files changed, 6 insertions, 6 deletions
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));
}