Skip to content

Commit 52a3e72

Browse files
committed
API Move some code to framework to be reusable
Some of this code needs to be usable on classes other than SiteTree with the CMSMain refactoring.
1 parent 6c48657 commit 52a3e72

9 files changed

+97
-502
lines changed

code/Controllers/CMSMain.php

+2
Original file line numberDiff line numberDiff line change
@@ -1064,6 +1064,8 @@ public function Breadcrumbs($unlinked = false)
10641064
if ($page = SiteTree::get()->byID($parentID)) {
10651065
$this->buildListViewBreadcrumb($items, $page);
10661066
}
1067+
// At this stage we also know the parent ID is the "current" ID for this view
1068+
$this->setCurrentPageID($parentID);
10671069
}
10681070
}
10691071

code/Model/RedirectorPage.php

-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@
2121
*/
2222
class RedirectorPage extends Page
2323
{
24-
/**
25-
* @deprecated 5.4.0 use class_description instead.
26-
*/
27-
private static $description = 'Redirects requests to another location';
28-
2924
private static string $class_description = 'Redirects requests to another location';
3025

3126
private static $icon_class = 'font-icon-p-redirect';

0 commit comments

Comments
 (0)