From 3390b255c4e959d94e7c04827a04769ef714e173 Mon Sep 17 00:00:00 2001 From: Neil Blakey-Milner Date: Fri, 29 Jul 2005 12:13:56 +0000 Subject: [PATCH] Use PHP_Compat to support older versions of PHP. --- lib/util/legacy.inc | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/lib/util/legacy.inc b/lib/util/legacy.inc index ff8658c..5200355 100644 --- a/lib/util/legacy.inc +++ b/lib/util/legacy.inc @@ -11,17 +11,7 @@ if (!function_exists('array_fill')) { } } -if(!function_exists('array_combine')) { - function array_combine($a, $b) { - $c = array(); - $at = array_values($a); - $bt = array_values($b); - foreach ($at as $key=>$aval) { - $c[$aval] = $bt[$key]; - } - return $c; - } -} - +require_once('PHP/Compat.php'); +PHP_Compat::loadVersion(); ?> -- libgit2 0.21.4