mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
MINOR Using ASSETS_DIR constant in StaticPublisher (fixes #5619) (from r105281)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112470 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
1700c77476
commit
d3ebd0da22
@ -136,7 +136,7 @@ abstract class StaticPublisher extends DataObjectDecorator {
|
||||
$matches = $xContent->xpath($xlink);
|
||||
if($matches) foreach($matches as $item) {
|
||||
$url = $item . '';
|
||||
if($assetsOnly && substr($url,0,7) != 'assets/') continue;
|
||||
if($assetsOnly && substr($url,0,7) != ASSETS_DIR . '/') continue;
|
||||
|
||||
$urls[] = $url;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user