From d5db2a11c5a77f3fb1f4d6048ee0d5c6632543ac Mon Sep 17 00:00:00 2001 From: Matthias Ruester Date: Thu, 11 May 2017 11:04:24 +0200 Subject: [PATCH] Use PHP_VERSION constant instead of phpversion() --- libs/Autoloader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/Autoloader.php b/libs/Autoloader.php index d3b039caa..98745380f 100644 --- a/libs/Autoloader.php +++ b/libs/Autoloader.php @@ -76,7 +76,7 @@ public static function register($prepend = false) self::$SMARTY_DIR = defined('SMARTY_DIR') ? SMARTY_DIR : dirname(__FILE__) . DIRECTORY_SEPARATOR; self::$SMARTY_SYSPLUGINS_DIR = defined('SMARTY_SYSPLUGINS_DIR') ? SMARTY_SYSPLUGINS_DIR : self::$SMARTY_DIR . 'sysplugins' . DIRECTORY_SEPARATOR; - if (version_compare(phpversion(), '5.3.0', '>=')) { + if (version_compare(PHP_VERSION, '5.3.0', '>=')) { spl_autoload_register(array(__CLASS__, 'autoload'), true, $prepend); } else { spl_autoload_register(array(__CLASS__, 'autoload'));