From 1a998ef523d53611ead0656dcbc08f87cba1bb81 Mon Sep 17 00:00:00 2001 From: Ricordisamoa Date: Sat, 27 Feb 2016 05:21:03 +0100 Subject: [PATCH] Remove useless PHP version comparison from wfDebugBacktrace() MediaWiki 1.27 only supports PHP 5.5.9 and above, therefore it is no more necessary to check that the running PHP version is equal to or greater than 5.4.0. Change-Id: I819c625e173cbf2a54ef614d742fe01f70be8efc --- includes/GlobalFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index eb174f2e3b..5138018c99 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1557,7 +1557,7 @@ function wfDebugBacktrace( $limit = 0 ) { return []; } - if ( $limit && version_compare( PHP_VERSION, '5.4.0', '>=' ) ) { + if ( $limit ) { return array_slice( debug_backtrace( DEBUG_BACKTRACE_PROVIDE_OBJECT, $limit + 1 ), 1 ); } else { return array_slice( debug_backtrace(), 1 ); -- 2.20.1