1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 23:44:27 +02:00

Rough implementation of appearance settings

This commit is contained in:
Toby Zerner
2015-08-03 14:35:51 +09:30
parent 70901b1420
commit 83e8503df1
7 changed files with 173 additions and 8 deletions

View File

@@ -37,6 +37,14 @@ class UpdateConfigAction extends Action
$this->settings->set($k, $v);
}
$assetPath = public_path('assets');
$manifest = file_get_contents($assetPath . '/rev-manifest.json');
$revisions = json_decode($manifest, true);
foreach ($revisions as $file => $revision) {
@unlink($assetPath . '/' . substr_replace($file, '-' . $revision, strrpos($file, '.'), 0));
}
return $this->success();
}
}