From 89ae1aaed767a2e5598fe6438ca0f32451606aae Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 22 Jul 2011 15:42:06 +0800 Subject: [PATCH] JsCompile.php --- JsCompile.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/JsCompile.php b/JsCompile.php index f648aa4c..fd6fa775 100644 --- a/JsCompile.php +++ b/JsCompile.php @@ -91,7 +91,7 @@ class Pman_Core_JsCompile extends Pman $this->pack($arfiles,$output); } - print_r($arfiles);exit; + print_r(sort(array_keys($arfiles));exit; @@ -102,7 +102,7 @@ class Pman_Core_JsCompile extends Pman /** * 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 * */ @@ -126,7 +126,7 @@ class Pman_Core_JsCompile extends Pman } $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); } -- 2.39.2