fix version_compare
This commit is contained in:
@@ -851,7 +851,7 @@ class FroxlorInstall {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if magic_quotes_runtime is active | get_magic_quotes_runtime() is always FALSE since 5.4
|
// Check if magic_quotes_runtime is active | get_magic_quotes_runtime() is always FALSE since 5.4
|
||||||
if (version_compare("5.4.0", PHP_VERSION, "<")) {
|
if (version_compare(PHP_VERSION, "5.4.0", "<")) {
|
||||||
$content .= $this->_status_message('begin', $this->_lng['requirements']['phpmagic_quotes_runtime']);
|
$content .= $this->_status_message('begin', $this->_lng['requirements']['phpmagic_quotes_runtime']);
|
||||||
if (get_magic_quotes_runtime()) {
|
if (get_magic_quotes_runtime()) {
|
||||||
// deactivate it
|
// deactivate it
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ $idna_convert = new idna_convert_wrapper();
|
|||||||
* disable magic_quotes_runtime if enabled
|
* disable magic_quotes_runtime if enabled
|
||||||
*/
|
*/
|
||||||
// since 5.4 get_magic_quotes_runtime() and get_magic_quotes_gpc() return always FALSE
|
// since 5.4 get_magic_quotes_runtime() and get_magic_quotes_gpc() return always FALSE
|
||||||
if (version_compare("5.4.0", PHP_VERSION, "<")) {
|
if (version_compare(PHP_VERSION, "5.4.0", "<")) {
|
||||||
if (get_magic_quotes_runtime()) {
|
if (get_magic_quotes_runtime()) {
|
||||||
// deactivate
|
// deactivate
|
||||||
set_magic_quotes_runtime(false);
|
set_magic_quotes_runtime(false);
|
||||||
|
|||||||
Reference in New Issue
Block a user