$ff = HTML_FlexyFramework::get();
- if (!empty($ff->Pman['isDev']) && !empty($_REQUEST['isDev'])) {
- echo "<!-- Javascript compile turned off (isDev on) -->\n";
+ if (empty($compiledir) || (!empty($ff->Pman['isDev']) && !empty($_REQUEST['isDev']))) {
+ echo "<!-- Javascript compile turned off (isDev on or mkdir failed) -->\n";
$this->assetArrayToHtml($files,'js');
return;
}
// we cant output non-cached versions of this....
// this doesnt really look like it would work!
- $this->outputCSSDir("{$this->rootDir}/Pman/{$smod}/scss/{$smod}.scss", $smod);
+ $this->outputSCSSDir("{$this->rootDir}/Pman/{$smod}/scss/{$smod}.scss", $smod);
}
/*
function outputSCSSDir($file, $smod= '')
{
+
+
$ff = HTML_FlexyFramework::get();
$asset = $ff->project == 'Pman' ? '/Core/Asset/css/' : '/Asset/css/';
$ar = glob(dirname($file). '/*.scss');
$maxtime = filemtime($file);
foreach($ar as $fn) {
- $maxtime=max($maxtime, filemtime($fn));
+ $maxtime= max($maxtime, filemtime($fn));
}