projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c82eddb
)
JsCompile.php
author
Alan Knowles
<alan@akbkhome.com>
Tue, 26 Jul 2011 11:23:31 +0000
(19:23 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Tue, 26 Jul 2011 11:23:31 +0000
(19:23 +0800)
JsCompile.php
patch
|
blob
|
history
diff --git
a/JsCompile.php
b/JsCompile.php
index
8808bde
..
7a5e3f1
100644
(file)
--- a/
JsCompile.php
+++ b/
JsCompile.php
@@
-255,18
+255,20
@@
class Pman_Core_JsCompile extends Pman
$res = `$cmd`;
//exit;
$res = `$cmd`;
//exit;
- // we should do more checking.. return val etc..
- if (file_exists($output) && ($max < filemtime($output) ) ) {
-
- return true;
- }
- echo "<!-- packed file did not exist
+ // since this only appears when we change.. it's ok to dump it out..
+ echo "<!-- Compiled javascript
" . htmlspecialchars($cmd) . "
" . htmlspecialchars($res) . "
-->";
" . htmlspecialchars($cmd) . "
" . htmlspecialchars($res) . "
-->";
+ // we should do more checking.. return val etc..
+ if (file_exists($output) && ($max < filemtime($output) ) ) {
+
+ return true;
+ }
+ echo "<!-- JS COMPILE ERROR: packed file did not exist -->";
return false;
}
return false;
}