mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-11-28 17:32:44 +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")]
|
||||
public string SetBaseUrl() {
|
||||
// Don't do anything if set and not forcing
|
||||
if (Force == false && string.IsNullOrEmpty(_siteService.GetSiteSettings().BaseUrl)) {
|
||||
Context.Output.WriteLine(T("'BaseUrl' site setting is already set. Use the 'Force' flag to override."));
|
||||
return null;
|
||||
if (!string.IsNullOrEmpty(_siteService.GetSiteSettings().BaseUrl)) {
|
||||
if (!Force) {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user