Skip to content
Permalink
Browse files

NEW Use Bootstrap alerts instead of legacy message classes for instal…

…l.php warning
  • Loading branch information
robbieaverill committed Feb 2, 2018
1 parent 1db01ec commit f582954aea6b9f644283f1424ab0aefc41a05892
Showing with 6 additions and 6 deletions.
  1. +6 −6 code/Model/SiteTree.php
@@ -1968,14 +1968,14 @@ public function getCMSFields()
}

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) {

0 comments on commit f582954

Please sign in to comment.
You can’t perform that action at this time.