Skip to content
Browse files

MINOR Using ASSETS_DIR constant in StaticPublisher (fixes #5619) (fro…

…m r105281)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112470 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information...
1 parent 1700c77 commit d3ebd0da22ee99697dd729dbb491cb9ff30915de @chillu chillu committed Oct 15, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 code/staticpublisher/StaticPublisher.php
View
2 code/staticpublisher/StaticPublisher.php
@@ -136,7 +136,7 @@ function externalReferencesFor($content) {
$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;
}

0 comments on commit d3ebd0d

Please sign in to comment.
Something went wrong with that request. Please try again.