Updated file bundler, bugfix for Steffen

This commit is contained in:
markseu 2018-08-24 17:24:05 +02:00
parent 96d8c61787
commit 1e11e5642f

10
system/plugins/bundle.php Normal file → Executable file
View file

@ -4,7 +4,7 @@
// This file may be used and distributed under the terms of the public license.
class YellowBundle {
const VERSION = "0.7.2";
const VERSION = "0.7.3";
public $yellow; //access to API
// Handle initialisation
@ -89,10 +89,12 @@ class YellowBundle {
$location = substru($key, strlenu($base));
$fileName = $this->yellow->lookup->findFileFromSystem($location);
$modified = max($modified, $this->yellow->toolbox->getFileModified($fileName));
if (is_readable($fileName)) array_push($fileNames, $fileName);
unset($data[$key]);
if (is_readable($fileName)) {
array_push($fileNames, $fileName);
unset($data[$key]);
}
}
if (count($fileNames)>1) {
if (!empty($fileNames)) {
$this->yellow->toolbox->timerStart($time);
$id = substru(md5(implode($fileNames).$base), 0, 10);
$fileNameBundle = $this->yellow->config->get("assetDir")."bundle-$id.min.$type";;