@@ -193,7 +193,7 @@ discard block |
||
| 193 | 193 | |
| 194 | 194 | public function getRequestUri() |
| 195 | 195 | { |
| 196 | - return $this->getServerConstant('HTTP_HOST') . $this->getServerConstant('REQUEST_URI'); |
|
| 196 | + return $this->getServerConstant('HTTP_HOST').$this->getServerConstant('REQUEST_URI'); |
|
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | /** |
@@ -201,7 +201,7 @@ discard block |
||
| 201 | 201 | * @param string $newlang new UI language to set |
| 202 | 202 | * @return string the relative url of the page |
| 203 | 203 | */ |
| 204 | - public function getLangUrl($newlang=null) |
|
| 204 | + public function getLangUrl($newlang = null) |
|
| 205 | 205 | { |
| 206 | 206 | $script_name = str_replace('/index.php', '', $this->getServerConstant('SCRIPT_NAME')); |
| 207 | 207 | $langurl = substr(str_replace($script_name, '', strval($this->getServerConstant('REQUEST_URI'))), 1); |
@@ -210,7 +210,7 @@ discard block |
||
| 210 | 210 | } |
| 211 | 211 | if (str_contains($langurl, '?')) { |
| 212 | 212 | $urlparts = explode('?', $langurl); |
| 213 | - $langurl = $urlparts[0] . '?' . urlencode($urlparts[1]); |
|
| 213 | + $langurl = $urlparts[0].'?'.urlencode($urlparts[1]); |
|
| 214 | 214 | $langurl = str_replace("%3D", "=", $langurl); |
| 215 | 215 | } |
| 216 | 216 | // make sure that the resulting URL isn't interpreted as an absolute URL |