|
@@ 367-368 (lines=2) @@
|
| 364 |
|
$value = $this->build_url( $url, $options ); |
| 365 |
|
} |
| 366 |
|
elseif ( 'force-www' == pods_var( self::$type . '_format', $options ) ) { |
| 367 |
|
if ( false !== strpos( $url[ 'host' ], '.' ) && false === strpos( $url[ 'host' ], '.', 1 ) ) |
| 368 |
|
$url[ 'host' ] = 'www.' . $url[ 'host' ]; |
| 369 |
|
|
| 370 |
|
$value = $this->build_url( $url, $options ); |
| 371 |
|
} |
|
@@ 390-391 (lines=2) @@
|
| 387 |
|
$value = trim( $value, '/' ); |
| 388 |
|
} |
| 389 |
|
elseif ( 'no-http-force-www' == pods_var( self::$type . '_format', $options ) ) { |
| 390 |
|
if ( false !== strpos( $url[ 'host' ], '.' ) && false === strpos( $url[ 'host' ], '.', 1 ) ) |
| 391 |
|
$url[ 'host' ] = 'www.' . $url[ 'host' ]; |
| 392 |
|
|
| 393 |
|
$value = $this->build_url( $url, $options ); |
| 394 |
|
$value = str_replace( trim( $url[ 'scheme' ] . '://', ':' ), '', $value ); |