mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Replace regex by explode as suggested by Ermal
This commit is contained in:
parent
613a94b31b
commit
5459701254
@ -1628,7 +1628,8 @@ function isvm() {
|
||||
}
|
||||
|
||||
function get_freebsd_version() {
|
||||
return preg_replace('/\..*$/', '', php_uname("r"));
|
||||
$version = explode(".", php_uname("r"));
|
||||
return $version[0];
|
||||
}
|
||||
|
||||
function download_file($url, $destination, $verify_ssl = false, $connect_timeout = 60, $timeout = 0) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user