PluginProbe
ShiftController Employee Shift Scheduling / 4.9.59
ShiftController Employee Shift Scheduling v4.9.59
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | hc3/uri.php +4 -12 trunk4.9.59 View file →
@@ -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