mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
A little cleanup in the SetupController
--HG-- branch : dev
This commit is contained in:
@@ -37,7 +37,7 @@ namespace Orchard.Setup.Controllers {
|
||||
|
||||
public ActionResult Index(SetupViewModel model) {
|
||||
string message = "";
|
||||
if (!CanWriteTo(out message)) {
|
||||
if (!CanWriteToAppDataFolder(out message)) {
|
||||
_notifier.Error(
|
||||
T(
|
||||
"Hey, it looks like I can't write to the App_Data folder in the root of this application and that's where I need to save some of the information you're about to enter.\r\n\r\nPlease give me (the machine account this application is running under) write access to App_Data so I can get this app all set up for you.\r\n\r\nThanks!\r\n\r\n----\r\n{0}",
|
||||
@@ -133,7 +133,7 @@ namespace Orchard.Setup.Controllers {
|
||||
}
|
||||
}
|
||||
|
||||
bool CanWriteTo(out string message) {
|
||||
bool CanWriteToAppDataFolder(out string message) {
|
||||
try {
|
||||
_appDataFolder.CreateFile("_systemcheck.txt", "Communicator check one two one two");
|
||||
_appDataFolder.DeleteFile("_systemcheck.txt");
|
||||
|
Reference in New Issue
Block a user