A little cleanup in the SetupController

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-02-15 16:01:40 -08:00
parent f61d831f45
commit 617753c518

View File

@@ -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");