| @@ -54,14 +54,8 @@ | ||
| 54 | 54 | $return = $this->assetsPath ? $this->assetsPath : $this->baseUrl(); |
| 55 | 55 | return $return; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | - public function setSlug( $slug ) | |
| 59 | - { | |
| 60 | - $this->slug = $slug; | |
| 61 | - return $this; | |
| 62 | - } | |
| 63 | - | |
| 64 | 58 | public function getSlug() |
| 65 | 59 | { |
| 66 | 60 | return $this->slug; |
| 67 | 61 | } |
| @@ -258,14 +252,12 @@ | ||
| 258 | 252 | $host = $_SERVER['HTTP_HOST']; |
| 259 | 253 | } |
| 260 | 254 | |
| 261 | 255 | if( $noPort ){ |
| 262 | - if (is_string($host)) { | |
| 263 | - $pos = strpos( $host, ':' ); | |
| 264 | - if( false !== $pos ){ | |
| 265 | - $host = substr( $host, 0, $pos ); | |
| 266 | - } | |
| 267 | - } | |
| 256 | + $pos = strpos( $host, ':' ); | |
| 257 | + if( false !== $pos ){ | |
| 258 | + $host = substr( $host, 0, $pos ); | |
| 259 | + } | |
| 268 | 260 | } |
| 269 | 261 | |
| 270 | 262 | $return .= $host; |
| 271 | 263 | |