diff options
author | ozh <ozh@ozh.org> | 2017-04-20 10:33:42 +0300 |
---|---|---|
committer | ozh <ozh@ozh.org> | 2017-04-20 10:33:42 +0300 |
commit | 51a3d3beaba31aeb9ed3e76425b7ad7d76416c11 (patch) | |
tree | 36c9c2836414a14a89b49abd3fc5bb014b106531 /admin | |
parent | dea4ace0c64943fe123da14c97aedcd404e61188 (diff) |
Replace phpversion() with PHP_VERSION
According to my tests, we'll speed things by almost 2.8 seconds every 1 million calls, dude.
Diffstat (limited to 'admin')
-rw-r--r-- | admin/install.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/install.php b/admin/install.php index eff7e1d6..e66087b0 100644 --- a/admin/install.php +++ b/admin/install.php @@ -16,7 +16,7 @@ if ( !yourls_check_database_version() ) { if ( !yourls_check_php_version() ) { $error[] = yourls_s( '%s version is too old. Ask your server admin for an upgrade.', 'PHP' ); - yourls_debug_log( 'PHP version: ' . phpversion() ); + yourls_debug_log( 'PHP version: ' . PHP_VERSION ); } // Is YOURLS already installed ? |