mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
Remove old code.
This commit is contained in:
parent
e7f2e62cec
commit
b28bf04e5a
|
@ -83,12 +83,9 @@ class AssetManager
|
||||||
foreach ($this->files[$type] as $file) {
|
foreach ($this->files[$type] as $file) {
|
||||||
$lastModTime = max($lastModTime, filemtime($file));
|
$lastModTime = max($lastModTime, filemtime($file));
|
||||||
}
|
}
|
||||||
$debug = 0;
|
|
||||||
// $debug = 1;
|
|
||||||
|
|
||||||
if (! file_exists($file = $dir.'/'.$this->name.'-'.$revision.'.'.$type)
|
if (! file_exists($file = $dir.'/'.$this->name.'-'.$revision.'.'.$type)
|
||||||
|| filemtime($file) < $lastModTime
|
|| filemtime($file) < $lastModTime) {
|
||||||
|| $debug) {
|
|
||||||
$this->storage->put($file, $callback());
|
$this->storage->put($file, $callback());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user