|
@@ 290-291 (lines=2) @@
|
| 287 |
|
$value = $this->build_url( $url ); |
| 288 |
|
} |
| 289 |
|
elseif ( 'force-www' == pods_var( self::$type . '_format', $options ) ) { |
| 290 |
|
if ( false !== strpos( $url[ 'host' ], '.' ) && false === strpos( $url[ 'host' ], '.', 1 ) ) |
| 291 |
|
$url[ 'host' ] = 'www.' . $url[ 'host' ]; |
| 292 |
|
|
| 293 |
|
$value = $this->build_url( $url ); |
| 294 |
|
} |
|
@@ 313-314 (lines=2) @@
|
| 310 |
|
$value = trim( $value, '/' ); |
| 311 |
|
} |
| 312 |
|
elseif ( 'no-http-force-www' == pods_var( self::$type . '_format', $options ) ) { |
| 313 |
|
if ( false !== strpos( $url[ 'host' ], '.' ) && false === strpos( $url[ 'host' ], '.', 1 ) ) |
| 314 |
|
$url[ 'host' ] = 'www.' . $url[ 'host' ]; |
| 315 |
|
|
| 316 |
|
$value = $this->build_url( $url ); |
| 317 |
|
$value = str_replace( trim( $url[ 'scheme' ] . '://', ':' ), '', $value ); |