Skip to content

Commit

Permalink
Merge pull request #18 from caffeineinc/caffeineinc-fix-includeSiteTr…
Browse files Browse the repository at this point in the history
…eeVersions

includeSiteTreeVersions requires array to merge
  • Loading branch information
chillu committed Sep 18, 2017
2 parents 839f4b2 + f88d027 commit 6e6e655
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/WhitelistGenerator.php
Expand Up @@ -41,6 +41,7 @@ public static function generateWhitelistRules(){

} elseif ($rule === '$URLSegment') {
$topLevelPagesArray = array(); //temporary array to store top-level pages
$oldTopLevelPagesArray = array();

//special case for SiteTree, add all possible top Level Pages
$topLevelPages = SiteTree::get()->filter('ParentID', 0);
Expand Down

0 comments on commit 6e6e655

Please sign in to comment.