mirror of
https://github.com/Mibew/mibew.git
synced 2025-01-31 05:20:30 +03:00
Remove obsolete code from init
This commit is contained in:
parent
423ef8d36f
commit
8aba48a1d2
@ -62,14 +62,8 @@ if ($tmp_request->isSecure()) {
|
|||||||
// Remove temporary request to keep global scope clean.
|
// Remove temporary request to keep global scope clean.
|
||||||
unset($tmp_request);
|
unset($tmp_request);
|
||||||
|
|
||||||
if (version_compare(phpversion(), '5.4.0', '<')) {
|
if (session_status() == PHP_SESSION_NONE) {
|
||||||
if (session_id() == '') {
|
session_start();
|
||||||
session_start();
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if (session_status() == PHP_SESSION_NONE) {
|
|
||||||
session_start();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (function_exists("date_default_timezone_set")) {
|
if (function_exists("date_default_timezone_set")) {
|
||||||
|
Loading…
Reference in New Issue
Block a user