Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
jthomerson committed Jan 23, 2012
1 parent ca1d879 commit 845e214
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/reports/PagesScheduledForDeletionReport.php
Expand Up @@ -116,7 +116,7 @@ function sourceRecords($params, $sort, $limit) {
$records = singleton('SiteTree')->buildDataObjectSet($query->execute(), 'DataObjectSet', $query);

Versioned::reading_stage($stage);
if ($records) SiteTree::prepopuplate_permission_cache('edit', $records->column('ID'));
if ($records) SiteTree::prepopulate_permission_cache('edit', $records->column('ID'));

// Filter to only those with canEdit permission
$filteredRecords = new DataObjectSet();
Expand Down
2 changes: 1 addition & 1 deletion code/reports/PagesScheduledForPublishingReport.php
Expand Up @@ -76,7 +76,7 @@ function sourceRecords($params, $sort, $limit) {
// Turn a query into records
$records = singleton('SiteTree')->buildDataObjectSet($query->execute(), 'DataObjectSet', $query);

if ($records) SiteTree::prepopuplate_permission_cache('edit', $records->column('ID'));
if ($records) SiteTree::prepopulate_permission_cache('edit', $records->column('ID'));

// Filter to only those with canEdit permission
$filteredRecords = new DataObjectSet();
Expand Down

0 comments on commit 845e214

Please sign in to comment.