mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
NEW Use Bootstrap alerts instead of legacy message classes for install.php warning
This commit is contained in:
parent
1db01ecce6
commit
f582954aea
@ -1968,14 +1968,14 @@ class SiteTree extends DataObject implements PermissionProvider, i18nEntityProvi
|
||||
}
|
||||
|
||||
if (file_exists(BASE_PATH . '/install.php')) {
|
||||
$fields->addFieldToTab("Root.Main", new LiteralField(
|
||||
"InstallWarningHeader",
|
||||
"<p class=\"message warning\">" . _t(
|
||||
"SilverStripe\\CMS\\Model\\SiteTree.REMOVE_INSTALL_WARNING",
|
||||
$fields->addFieldToTab('Root.Main', LiteralField::create(
|
||||
'InstallWarningHeader',
|
||||
'<div class="alert alert-warning">' . _t(
|
||||
__CLASS__ . '.REMOVE_INSTALL_WARNING',
|
||||
"Warning: You should remove install.php from this SilverStripe install for security reasons."
|
||||
)
|
||||
. "</p>"
|
||||
), "Title");
|
||||
. '</div>'
|
||||
), 'Title');
|
||||
}
|
||||
|
||||
if (self::$runCMSFieldsExtensions) {
|
||||
|
Loading…
Reference in New Issue
Block a user