MINOR Using ASSETS_DIR constant in StaticPublisher (fixes #5619)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.4@105281 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-05-20 21:28:09 +00:00 committed by Sam Minnee
parent 383358fa05
commit c7fc13c9fe

View File

@ -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;
}