Skip to content

Commit fb0c985

Browse files
committed
Update Uri.php
1 parent b2201b6 commit fb0c985

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

src/Uri.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,10 @@ public function getAuthority() {
173173
/**
174174
* Returns the base URL of the framework.
175175
*
176-
* The returned value will depend on the folder where the framework files
177-
* are located. For example, if your domain is 'example.com' and the framework
176+
* The returned value will depend on the folder where the library files
177+
* are located. For example, if your domain is 'example.com' and the library
178178
* is placed at the root and the requested resource is 'http://example.com/x/y/z',
179-
* then the base URL will be 'http://example.com/'. If the framework is
179+
* then the base URL will be 'http://example.com/'. If the library is
180180
* placed inside a folder in the server which has the name 'system', and
181181
* the same resource is requested, then the base URL will be
182182
* 'http://example.com/system'.
@@ -202,13 +202,13 @@ public static function getBaseURL() {
202202
$docRoot = filter_var($_SERVER['DOCUMENT_ROOT']);
203203
$len = strlen($docRoot);
204204

205-
if (!defined(ROOT_DIR)) {
205+
if (!defined('ROOT_DIR')) {
206206
define('ROOT_DIR', __DIR__);
207207
}
208208
$toAppend = substr(ROOT_DIR, $len, strlen(ROOT_DIR) - $len);
209209

210-
if (isset($_SERVER['HTTP_WEBFIORI_REMOVE_PATH'])) {
211-
$toAppend = str_replace($_SERVER['HTTP_WEBFIORI_REMOVE_PATH'],'' ,$toAppend);
210+
if (isset($_SERVER['HTTP_WF_REMOVE_PATH'])) {
211+
$toAppend = str_replace($_SERVER['HTTP_WF_REMOVE_PATH'],'' ,$toAppend);
212212
}
213213
$xToAppend = str_replace('\\', '/', $toAppend);
214214

0 commit comments

Comments
 (0)