@@ -10,7 +10,7 @@ NOTES:
|
||||
* Compression/Combination/Minification is not enabled unless debug="false" is specified on the 'compiliation' element in the web.config
|
||||
* A new version will invalidate both client and server cache and create new persisted files
|
||||
-->
|
||||
<clientDependency version="34">
|
||||
<clientDependency version="35">
|
||||
|
||||
<fileRegistration defaultProvider="LoaderControlProvider" fileDependencyExtensions=".js,.css">
|
||||
<providers>
|
||||
|
||||
@@ -95,11 +95,21 @@ namespace umbraco.cms.businesslogic.member
|
||||
/// </summary>
|
||||
/// <param name="Alias">The alias of the MemberType</param>
|
||||
/// <returns>The MemberType with the given Alias</returns>
|
||||
public static new MemberType GetByAlias(string Alias)
|
||||
{
|
||||
return new MemberType(SqlHelper.ExecuteScalar<int>("SELECT nodeid from cmsContentType where alias = @alias",
|
||||
SqlHelper.CreateParameter("@alias", Alias)));
|
||||
}
|
||||
public new static MemberType GetByAlias(string Alias)
|
||||
{
|
||||
try
|
||||
{
|
||||
return
|
||||
new MemberType(
|
||||
SqlHelper.ExecuteScalar<int>(@"SELECT nodeid from cmsContentType INNER JOIN umbracoNode on cmsContentType.nodeId = umbracoNode.id WHERE nodeObjectType=@nodeObjectType AND alias=@alias",
|
||||
SqlHelper.CreateParameter("@nodeObjectType", MemberType._objectType),
|
||||
SqlHelper.CreateParameter("@alias", Alias)));
|
||||
}
|
||||
catch
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -120,8 +120,9 @@ namespace umbraco.cms.businesslogic.web
|
||||
{
|
||||
return
|
||||
new DocumentType(
|
||||
SqlHelper.ExecuteScalar<int>("SELECT nodeid from cmsContentType where alias = @alias",
|
||||
SqlHelper.CreateParameter("@alias", Alias)));
|
||||
SqlHelper.ExecuteScalar<int>(@"SELECT nodeid from cmsContentType INNER JOIN umbracoNode on cmsContentType.nodeId = umbracoNode.id WHERE nodeObjectType=@nodeObjectType AND alias=@alias",
|
||||
SqlHelper.CreateParameter("@nodeObjectType", DocumentType._objectType),
|
||||
SqlHelper.CreateParameter("@alias", Alias)));
|
||||
}
|
||||
catch
|
||||
{
|
||||
|
||||
@@ -10,7 +10,7 @@ NOTES:
|
||||
* Compression/Combination/Minification is not enabled unless debug="false" is specified on the 'compiliation' element in the web.config
|
||||
* A new version will invalidate both client and server cache and create new persisted files
|
||||
-->
|
||||
<clientDependency version="34">
|
||||
<clientDependency version="35">
|
||||
|
||||
<fileRegistration defaultProvider="LoaderControlProvider" fileDependencyExtensions=".js,.css">
|
||||
<providers>
|
||||
|
||||
Reference in New Issue
Block a user