summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorChristian Schneider2015-02-10 16:31:38 +0100
committerChristian Schneider2015-02-10 16:31:38 +0100
commit63ec357b2f300c48d4c90d7d6209b964c2caa3dd (patch)
tree6cade258a1c0c9362a5931a0dbc6a8c51d33812d /it.class
parent9e350531328e67bd5b0c0425f1a2619a08456f6e (diff)
downloaditools-63ec357b2f300c48d4c90d7d6209b964c2caa3dd.tar.gz
itools-63ec357b2f300c48d4c90d7d6209b964c2caa3dd.tar.bz2
itools-63ec357b2f300c48d4c90d7d6209b964c2caa3dd.zip
Make ITools standard PHP 5.3 compatible (syntax patch, no short array syntax)
Diffstat (limited to 'it.class')
-rw-r--r--it.class4
1 files changed, 2 insertions, 2 deletions
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));
}