projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
bea3216
)
JsCompile.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 28 Jul 2011 14:37:44 +0000
(22:37 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 28 Jul 2011 14:37:44 +0000
(22:37 +0800)
JsCompile.php
patch
|
blob
|
history
diff --git
a/JsCompile.php
b/JsCompile.php
index
58e5639
..
cad5951
100644
(file)
--- a/
JsCompile.php
+++ b/
JsCompile.php
@@
-102,11
+102,11
@@
class Pman_Core_JsCompile extends Pman
$output = md5(serialize($arfiles)) .'.js';
$output = md5(serialize($arfiles)) .'.js';
- if (!file_exists($basedir.'/_cache_/'.$output)) {
+ if (
$output_url &&
!file_exists($basedir.'/_cache_/'.$output)) {
$this->pack($arfiles,$basedir.'/_cache_/'.$output);
}
$this->pack($arfiles,$basedir.'/_cache_/'.$output);
}
- if (file_exists($basedir.'/_cache_/'.$output)) {
+ if (
$output_url &&
file_exists($basedir.'/_cache_/'.$output)) {
echo '<script type="text/javascript" src="'.$output_url.'/_cache_/'. $output.'"></script>';
return;
echo '<script type="text/javascript" src="'.$output_url.'/_cache_/'. $output.'"></script>';
return;