diff --git a/code/staticpublisher/StaticPublisher.php b/code/staticpublisher/StaticPublisher.php index 20a4da57..92235800 100644 --- a/code/staticpublisher/StaticPublisher.php +++ b/code/staticpublisher/StaticPublisher.php @@ -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; }