mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-21 11:17:28 +08:00
Some more work on the MT UI
- tenant database setup can be preconfigured - site setup UI reflects available settings (e.g. if database setup is preconfigured then don't show db options) - updated jQuery from 1.4.1 to 1.4.2 (finally) --HG-- branch : dev
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
namespace Orchard.Setup.Services {
|
||||
using Orchard.Environment.Configuration;
|
||||
|
||||
namespace Orchard.Setup.Services {
|
||||
public interface ISetupService : IDependency {
|
||||
ShellSettings Prime();
|
||||
void Setup(SetupContext context);
|
||||
}
|
||||
}
|
@@ -44,11 +44,17 @@ namespace Orchard.Setup.Services {
|
||||
|
||||
private Localizer T { get; set; }
|
||||
|
||||
public ShellSettings Prime() {
|
||||
return _shellSettings;
|
||||
}
|
||||
|
||||
public void Setup(SetupContext context) {
|
||||
var shellSettings = new ShellSettings(_shellSettings) {
|
||||
DataProvider = context.DatabaseProvider,
|
||||
DataConnectionString = context.DatabaseConnectionString,
|
||||
DataTablePrefix = context.DatabaseTablePrefix,
|
||||
var shellSettings = new ShellSettings(_shellSettings);
|
||||
|
||||
if (string.IsNullOrEmpty(shellSettings.DataProvider)) {
|
||||
shellSettings.DataProvider = context.DatabaseProvider;
|
||||
shellSettings.DataConnectionString = context.DatabaseConnectionString;
|
||||
shellSettings.DataTablePrefix = context.DatabaseTablePrefix;
|
||||
};
|
||||
|
||||
var shellDescriptor = new ShellDescriptor {
|
||||
|
Reference in New Issue
Block a user