}
- // no sorting???
- //$lsort = create_function('$a,$b','return strlen($a) > strlen($b) ? 1 : -1;');
- //usort($files, $lsort);
+ // yes sort... if includes are used - they have to be in the first file...
+ $lsort = create_function('$a,$b','return strlen($a) > strlen($b) ? 1 : -1;');
+ usort($files, $lsort);
+ usort($relfiles,$lsort);
+ // print_R($relfiles);
+
if (!empty($this->bootLoader->isDev) && !empty($_REQUEST['isDev'])) {
echo "<!-- CSS compile turned off (isDev on) -->\n";
$this->assetArrayToHtml($files,'css');
$output = date('Y-m-d-H-i-s-', $maxtime). $smod .'-'.md5(serialize($arfiles)) .'.css';
-
+ $asset = $ff->project == 'Pman' ? '/Core/Asset/css/' : '/Asset/css/';
// where are we going to write all of this..
// This has to be done via a
if (true || !file_exists($compiledir.'/'.$output) || !filesize($compiledir.'/'.$output)) {
-
+ //print_r($relfiles);
require_once 'HTML/CSS/Minify.php';
$x = new HTML_CSS_Minify(substr($relpath,0,-1), $dir, $relfiles);
- file_put_contents($compiledir.'/'.$output , $x->minify( $this->baseURL.'/Asset/css'));
+ file_put_contents($compiledir.'/'.$output , $x->minify( $this->baseURL.$asset));
clearstatcache();
if (!file_exists($compiledir.'/'.$output) ||
!filesize($compiledir.'/'.$routput)) {
// echo "<!-- file already exists: {$basedir}/{$output} -->\n";
}
- $asset = $ff->project == 'Pman' ? '/Core/Asset/css/' : '/Asset/css/';
+
//$this->arrayToJsInclude( $files);
$this->assetArrayToHtml( array(
$this->baseURL.$asset. $output,