-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API Stop refering to "pages" when dealing with generic records #1867
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -379,7 +379,7 @@ public static function get_cms_classes($root = null, $recursive = true, $sort = | |
if (!$root) { | ||
$root = LeftAndMain::class; | ||
} | ||
$abstractClasses = [LeftAndMain::class, CMSMain::class]; | ||
$abstractClasses = [LeftAndMain::class]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change is needed so that |
||
$subClasses = array_values(ClassInfo::subclassesFor($root) ?? []); | ||
foreach ($subClasses as $className) { | ||
if ($recursive && $className != $root) { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like new hard coupling - but this class was always intended to be used with SiteTree - or at least has really only been used with it until now in core. The
SiteTree
use statement was even already there.The coupling will be removed in silverstripe/silverstripe-cms#2950