diff --git a/libraries/src/Router/Route.php b/libraries/src/Router/Route.php index c58f682ba4811..4d52016fa89ca 100644 --- a/libraries/src/Router/Route.php +++ b/libraries/src/Router/Route.php @@ -69,12 +69,6 @@ public static function _($url, $xhtml = true, $tls = self::TLS_IGNORE, $absolute { try { - // @todo Deprecate in 4.0 Before 3.9.7 this method accepted -1. - if ($tls == -1) - { - $tls = self::TLS_DISABLE; - } - // @deprecated 4.0 Before 3.9.7 this method silently converted $tls to integer if (!is_int($tls)) { @@ -87,6 +81,12 @@ public static function _($url, $xhtml = true, $tls = self::TLS_IGNORE, $absolute $tls = (int) $tls; } + // @todo Deprecate in 4.0 Before 3.9.7 this method accepted -1. + if ($tls === -1) + { + $tls = self::TLS_DISABLE; + } + $app = Factory::getApplication(); $client = $app->getName();