mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Using LeftAndMain->BaseCSSClasses() instead of ViewableData->CSSClasses() to avoid conflicts with customized controller objects (e.g. ModelAdmin_RecordController->edit())
This commit is contained in:
parent
2e9ea1d129
commit
1dc9457048
@ -1206,6 +1206,17 @@ class LeftAndMain extends Controller {
|
||||
return MCE_ROOT;
|
||||
}
|
||||
|
||||
/**
|
||||
* Same as {@link ViewableData->CSSClasses()}, but with a changed name
|
||||
* to avoid problems when using {@link ViewableData->customise()}
|
||||
* (which always returns "ArrayData" from the $original object).
|
||||
*
|
||||
* @return String
|
||||
*/
|
||||
function BaseCSSClasses() {
|
||||
return $this->CSSClasses();
|
||||
}
|
||||
|
||||
function IsPreviewExpanded() {
|
||||
return ($this->request->getVar('cms-preview-expanded'));
|
||||
}
|
||||
|
@ -7,7 +7,7 @@
|
||||
<title>$Title</title>
|
||||
</head>
|
||||
|
||||
<body class="loading cms $CSSClasses">
|
||||
<body class="loading cms $BaseCSSClasses">
|
||||
|
||||
<% include CMSLoadingScreen %>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user