Minor bugfixtures

This commit is contained in:
Tony Air 2020-04-24 17:31:16 +07:00
parent 5891ff3ff8
commit 860b176359
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@
use SilverStripe\Control\Controller;
use SilverStripe\CMS\Controllers\ContentController;
use SilverStripe\Control\Director;
use SilverStripe\ORM\FieldType\DBDatetime;
use SilverStripe\View\ArrayData;
use SilverStripe\CMS\Model\SiteTree;

View File

@ -122,6 +122,7 @@ class WebpackTemplateProvider implements TemplateGlobalProvider
$cfg = self::config();
return strpos($path, '//') === false ?
Controller::join_links(
RESOURCES_DIR,
self::projectName(),
$cfg['dist'],
(strpos($path, '.css') ? 'css' : 'js'),