瀏覽代碼

Added better default directories

tags/2.0.3
Teknikode 4 年之前
父節點
當前提交
341cc4db5e
共有 3 個檔案被更改,包括 5 行新增3 行删除
  1. 2
    1
      Teknik/Configuration/PodcastConfig.cs
  2. 2
    1
      Teknik/Configuration/UploadConfig.cs
  3. 1
    1
      Teknik/Views/Web.config

+ 2
- 1
Teknik/Configuration/PodcastConfig.cs 查看文件

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;

@@ -24,7 +25,7 @@ namespace Teknik.Configuration
Description = string.Empty;
PodcastsToLoad = 10;
CommentsToLoad = 10;
PodcastDirectory = string.Empty;
PodcastDirectory = Directory.GetCurrentDirectory();
}
}
}

+ 2
- 1
Teknik/Configuration/UploadConfig.cs 查看文件

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;

@@ -29,7 +30,7 @@ namespace Teknik.Configuration
public void SetDefaults()
{
MaxUploadSize = 100000000;
UploadDirectory = string.Empty;
UploadDirectory = Directory.GetCurrentDirectory();
FileExtension = "enc";
UrlLength = 5;
DeleteKeyLength = 24;

+ 1
- 1
Teknik/Views/Web.config 查看文件

@@ -18,7 +18,7 @@
<add namespace="System.Web.Optimization" />
<add namespace="System.Web.Routing" />
<add namespace="Teknik" />
<add namespace="DanTup.Web" /></namespaces>
</namespaces>
</pages>
</system.web.webPages.razor>


Loading…
取消
儲存