$this->pack($arfiles,$output);
}
- print_r($arfiles);exit;
+ print_r(sort(array_keys($arfiles));exit;
/**
* wrapper arroudn packer...
- * @param {Array} $files the files to pack
+ * @param {Array} map of $files => filemtime the files to pack
* @param {String} $output name fo file to output
*
*/
}
$targetm = file_exists($output) ? filemtime($output) : 0;
$max = 0;
- foreach($files as $i => $f) {
+ foreach($files as $f => $mt) {
$max = max($max,filemtime($f));
$files[$i] = escapeshellarg($f);
}