@@ -31,8 +31,7 @@ discard block |
||
| 31 | 31 | if(strpos($_SERVER[$sKey], ':') > 0) |
| 32 | 32 | { |
| 33 | 33 | list($aURL['host'], $aURL['port']) = explode(':', $_SERVER[$sKey]); |
| 34 | - } |
|
| 35 | - else |
|
| 34 | + } else |
|
| 36 | 35 | { |
| 37 | 36 | $aURL['host'] = $_SERVER[$sKey]; |
| 38 | 37 | } |
@@ -65,8 +64,7 @@ discard block |
||
| 65 | 64 | if(!empty($_SERVER['HTTP_SCHEME'])) |
| 66 | 65 | { |
| 67 | 66 | $aURL['scheme'] = $_SERVER['HTTP_SCHEME']; |
| 68 | - } |
|
| 69 | - else |
|
| 67 | + } else |
|
| 70 | 68 | { |
| 71 | 69 | $aURL['scheme'] = ((!empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) != 'off') ? 'https' : 'http'); |
| 72 | 70 | } |
@@ -95,8 +93,7 @@ discard block |
||
| 95 | 93 | if(!empty($_SERVER['PATH_INFO'])) |
| 96 | 94 | { |
| 97 | 95 | $sPath = parse_url($_SERVER['PATH_INFO']); |
| 98 | - } |
|
| 99 | - else |
|
| 96 | + } else |
|
| 100 | 97 | { |
| 101 | 98 | $sPath = parse_url($_SERVER['PHP_SELF']); |
| 102 | 99 | } |
@@ -76,8 +76,7 @@ |
||
| 76 | 76 | { |
| 77 | 77 | // Save this translation |
| 78 | 78 | $this->aTranslations[$sLanguage][$sName] = $xTranslation; |
| 79 | - } |
|
| 80 | - else |
|
| 79 | + } else |
|
| 81 | 80 | { |
| 82 | 81 | // Recursively read the translations in the array |
| 83 | 82 | $this->_loadTranslations($sLanguage, $sName, $xTranslation); |