|
@@ 351-352 (lines=2) @@
|
| 348 |
|
$value = $this->build_url( $url ); |
| 349 |
|
} |
| 350 |
|
elseif ( 'force-www' == pods_var( self::$type . '_format', $options ) ) { |
| 351 |
|
if ( false !== strpos( $url[ 'host' ], '.' ) && false === strpos( $url[ 'host' ], '.', 1 ) ) |
| 352 |
|
$url[ 'host' ] = 'www.' . $url[ 'host' ]; |
| 353 |
|
|
| 354 |
|
$value = $this->build_url( $url ); |
| 355 |
|
} |
|
@@ 374-375 (lines=2) @@
|
| 371 |
|
$value = trim( $value, '/' ); |
| 372 |
|
} |
| 373 |
|
elseif ( 'no-http-force-www' == pods_var( self::$type . '_format', $options ) ) { |
| 374 |
|
if ( false !== strpos( $url[ 'host' ], '.' ) && false === strpos( $url[ 'host' ], '.', 1 ) ) |
| 375 |
|
$url[ 'host' ] = 'www.' . $url[ 'host' ]; |
| 376 |
|
|
| 377 |
|
$value = $this->build_url( $url ); |
| 378 |
|
$value = str_replace( trim( $url[ 'scheme' ] . '://', ':' ), '', $value ); |