Skip to content

Commit

Permalink
MINOR Using ASSETS_DIR constant in StaticPublisher (fixes #5619) (fro…
Browse files Browse the repository at this point in the history
…m r105281)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112470 467b73ca-7a2a-4603-9d3b-597d59a354a9
  • Loading branch information
chillu committed Oct 15, 2010
1 parent 1700c77 commit d3ebd0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/staticpublisher/StaticPublisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d3ebd0d

Please sign in to comment.