fixed: if instant alias setting is empty the ability to create an instant
alias is not showinf up
This commit is contained in:
parent
3a4c995766
commit
3fbef19559
4 changed files with 6 additions and 31 deletions
|
@ -5,7 +5,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
|||
..\..\LICENSE.txt = ..\..\LICENSE.txt
|
||||
..\..\Readme.htm = ..\..\Readme.htm
|
||||
..\..\ReleaseNotes.htm = ..\..\ReleaseNotes.htm
|
||||
..\Database\update_db.sql = ..\Database\update_db.sql
|
||||
VersionInfo.vb = VersionInfo.vb
|
||||
EndProjectSection
|
||||
EndProject
|
||||
|
|
|
@ -1,31 +1,3 @@
|
|||
// Copyright (c) 2012, Outercurve Foundation.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without modification,
|
||||
// are permitted provided that the following conditions are met:
|
||||
//
|
||||
// - Redistributions of source code must retain the above copyright notice, this
|
||||
// list of conditions and the following disclaimer.
|
||||
//
|
||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
||||
// this list of conditions and the following disclaimer in the documentation
|
||||
// and/or other materials provided with the distribution.
|
||||
//
|
||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
||||
// contributors may be used to endorse or promote products derived from this
|
||||
// software without specific prior written permission.
|
||||
//
|
||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
|
|
|
@ -108,8 +108,10 @@ namespace WebsitePanel.Portal
|
|||
}
|
||||
|
||||
// instant alias
|
||||
PackageSettings settings = ES.Services.Packages.GetPackageSettings(PanelSecurity.PackageId, PackageSettings.INSTANT_ALIAS);
|
||||
|
||||
bool instantAliasAllowed = !String.IsNullOrEmpty(domain.InstantAliasName);
|
||||
bool instantAliasExists = (domain.InstantAliasId > 0);
|
||||
bool instantAliasExists = (domain.InstantAliasId > 0) && (settings != null && !String.IsNullOrEmpty(settings["InstantAlias"]));
|
||||
if (instantAliasAllowed
|
||||
&& !domain.IsDomainPointer && !domain.IsInstantAlias)
|
||||
{
|
||||
|
|
|
@ -221,7 +221,9 @@
|
|||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="App_Browsers\CSSFriendlyAdapters.browser" />
|
||||
<Content Include="App_Data\ModulesData.config" />
|
||||
<Content Include="App_Data\ModulesData.config">
|
||||
<SubType>Designer</SubType>
|
||||
</Content>
|
||||
<Content Include="App_Data\SiteSettings.config" />
|
||||
<None Include="App_Data\SupportedThemes.config" />
|
||||
<None Include="App_Data\Countries.config" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue