From e668e11170111454d42405e427e3a125833cde06 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 13 Jun 2024 14:46:40 +1200 Subject: [PATCH] API Remove references to non-existent installation tool (#166) --- code/SiteConfig.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/code/SiteConfig.php b/code/SiteConfig.php index 39fe4dcb3..29c310b27 100644 --- a/code/SiteConfig.php +++ b/code/SiteConfig.php @@ -277,20 +277,6 @@ public function getCMSFields() } } - if (file_exists(BASE_PATH . '/install.php')) { - $fields->addFieldToTab( - 'Root.Main', - LiteralField::create( - 'InstallWarningHeader', - '
' . _t( - 'SilverStripe\\CMS\\Model\\SiteTree.REMOVE_INSTALL_WARNING', - 'Warning: You should remove install.php from this SilverStripe install for security reasons.' - ) . '
' - ), - 'Title' - ); - } - $tabMain->setTitle(_t(self::class . '.TABMAIN', "Main")); $tabAccess->setTitle(_t(self::class . '.TABACCESS', "Access")); $this->extend('updateCMSFields', $fields);