From c7fc13c9feca224a6e1189bb7af697b3016dfdb6 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 20 May 2010 21:28:09 +0000 Subject: [PATCH] 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 --- code/staticpublisher/StaticPublisher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }