Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

SS3 compatibility changes for unit tests #2

Merged
merged 1 commit into from Dec 3, 2012
Jump to file or symbol
Failed to load files and symbols.
+3 −2
Split
View
@@ -58,7 +58,7 @@ public function fieldLabels() {
/**
* @return string
*/
- public function getSitemap(DataObjectSet $set = null) {
+ public function getSitemap(ArrayList $set = null) {
if(!$set) $set = $this->getRootPages();
if($set && count($set)) {
@@ -96,7 +96,8 @@ public function getRootPages() {
sprintf('"ParentID" = %d AND "ShowInMenus" = 1', $this->ParentPageID)
);
case 'Selected':
- return $this->PagesToShow($showInMenus);
+ //return $this->PagesToShow($showInMenus);
+ return $this->PagesToShow();
default:
return DataObject::get('SiteTree', '"ParentID" = 0 AND "ShowInMenus" = 1');
}