Browse files

Use corrected function name from silverstripe-cms project

The CMS project had a function named "SiteTree::prepopuplate_permission_cache" which
should be "SiteTree::prepopulate_permission_cache".  Since another commit corrected
the function name in that project, this project needs to use the new name.
  • Loading branch information...
1 parent 8ba585b commit 09bb6d404c9361a8386ebd1c0688fdcaa7d41421 @jthomerson jthomerson committed Jan 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 admin/code/LeftAndMain.php
2 admin/code/LeftAndMain.php
@@ -540,7 +540,7 @@ function getSiteTreeFor($className, $rootID = null, $childrenMethod = null, $num
// NOTE: SiteTree/CMSMain coupling :-(
if(class_exists('SiteTree')) {
- SiteTree::prepopuplate_permission_cache('CanEditType', $obj->markedNodeIDs(), 'SiteTree::can_edit_multiple');
+ SiteTree::prepopulate_permission_cache('CanEditType', $obj->markedNodeIDs(), 'SiteTree::can_edit_multiple');
// getChildrenAsUL is a flexible and complex way of traversing the tree

0 comments on commit 09bb6d4

Please sign in to comment.