mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fix incorrect condition
--HG-- branch : 1.x
This commit is contained in:
@@ -29,9 +29,11 @@ namespace Orchard.Core.Settings.Commands {
|
|||||||
[OrchardSwitches("BaseUrl")]
|
[OrchardSwitches("BaseUrl")]
|
||||||
public string SetBaseUrl() {
|
public string SetBaseUrl() {
|
||||||
// Don't do anything if set and not forcing
|
// Don't do anything if set and not forcing
|
||||||
if (Force == false && string.IsNullOrEmpty(_siteService.GetSiteSettings().BaseUrl)) {
|
if (!string.IsNullOrEmpty(_siteService.GetSiteSettings().BaseUrl)) {
|
||||||
Context.Output.WriteLine(T("'BaseUrl' site setting is already set. Use the 'Force' flag to override."));
|
if (!Force) {
|
||||||
return null;
|
Context.Output.WriteLine(T("'BaseUrl' site setting is already set. Use the 'Force' flag to override."));
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve request URL if BaseUrl not provided as a switch value
|
// Retrieve request URL if BaseUrl not provided as a switch value
|
||||||
|
|||||||
Reference in New Issue
Block a user