From 63ec357b2f300c48d4c90d7d6209b964c2caa3dd Mon Sep 17 00:00:00 2001 From: Christian Schneider Date: Tue, 10 Feb 2015 16:31:38 +0100 Subject: Make ITools standard PHP 5.3 compatible (syntax patch, no short array syntax) --- it.class | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'it.class') diff --git a/it.class b/it.class index 2ac8388..59b1ba8 100644 --- a/it.class +++ b/it.class @@ -622,7 +622,7 @@ static function _exec_quotevalue($value, $errmsg = "") */ static function cexec(/* $cmd, $values1 = array(), ... */) { - return it::exec('cdist -c {CMD}', 'CMD' => call_user_func_array('it::shell_command', func_get_args())); + return it::exec('cdist -c {CMD}', array('CMD' => call_user_func_array('it::shell_command', func_get_args()))); } @@ -636,7 +636,7 @@ static function cdist(/* $file1, ... */) foreach (func_get_args() as $arg) $files = array_merge((array)$files, (array)$arg); - return it::exec('cdist {FILES}', 'FILES' => $files); + return it::exec('cdist {FILES}', array('FILES' => $files)); } -- cgit v1.2.3