Cosmetics changes : remove ending lines spaces
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3012 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -58,7 +58,7 @@ class route
|
||||
/** Array to variable definition */
|
||||
public $variable = array ();
|
||||
|
||||
/** The route constructor : initialize the parameters */
|
||||
/** The route constructor : initialize the parameters */
|
||||
function __construct ()
|
||||
{
|
||||
$this->ratelimiter = new ratelimitfile ();
|
||||
@@ -99,7 +99,7 @@ class route
|
||||
if (substr ($this->baseURL, -1) !== "/")
|
||||
$this->baseURL .= "/";
|
||||
}
|
||||
elseif (isset ($_SERVER["REQUEST_URI"]) &&
|
||||
elseif (isset ($_SERVER["REQUEST_URI"]) &&
|
||||
strpos ($_SERVER["REQUEST_URI"], "index.php?url=") !== false)
|
||||
{
|
||||
$this->baseURL = "";
|
||||
@@ -139,7 +139,6 @@ class route
|
||||
strpos ($_SERVER["REQUEST_URI"], "index.php?url=") !== false)
|
||||
return "index.php?url=".$this->baseURL;
|
||||
return $this->baseURL;
|
||||
|
||||
}
|
||||
|
||||
/** Return the baseURL of the module
|
||||
@@ -187,7 +186,7 @@ class route
|
||||
}
|
||||
if (isset ($_SERVER["REQUEST_URI"]))
|
||||
{
|
||||
// If there is a directory before the index.php file, must remove the
|
||||
// If there is a directory before the index.php file, must remove the
|
||||
// directory structure
|
||||
if (dirname ($_SERVER["SCRIPT_NAME"]) !== "/")
|
||||
$url .= substr ($_SERVER["REQUEST_URI"],
|
||||
|
||||
Reference in New Issue
Block a user