MINOR Warning about install.php existing for root site tree node as well (SiteConfig form) (from r110440)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@112841 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2010-10-19 01:31:07 +00:00
parent a1044749b0
commit 9d72145ee1

View File

@ -94,6 +94,13 @@ class SiteConfig extends DataObject implements PermissionProvider {
$fields->makeFieldReadonly($titleField); $fields->makeFieldReadonly($titleField);
} }
if(file_exists(BASE_PATH . '/install.php')) {
$fields->addFieldToTab("Root.Main", new LiteralField("InstallWarningHeader",
"<p class=\"message warning\">" . _t("SiteTree.REMOVE_INSTALL_WARNING",
"Warning: You should remove install.php from this SilverStripe install for security reasons.")
. "</p>"), "Title");
}
$this->extend('updateCMSFields', $fields); $this->extend('updateCMSFields', $fields);
return $fields; return $fields;