Skip to content

Commit

Permalink
Merge branch 'release-1.16.0' into hotfix-1.16.1
Browse files Browse the repository at this point in the history
  • Loading branch information
bradencohen committed Sep 19, 2023
2 parents 9b2556e + 377c858 commit e3cdfa2
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions RockWeb/Blocks/Mobile/MobilePageDetail.ascx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -423,14 +423,17 @@ private void BindZones()
/// <returns>System.String.</returns>
private string RemoveMobileCategoryPrefix( string category )
{
var text = category;
if ( category.IsNullOrWhiteSpace() )
{
return category;
}

if ( text.StartsWith( "Mobile >" ) )
if ( category.StartsWith( "Mobile >" ) )
{
text = category.Replace( "Mobile >", string.Empty ).Trim();
category = category.Replace( "Mobile >", string.Empty ).Trim();
}

return text;
return category;
}

/// <summary>
Expand Down

0 comments on commit e3cdfa2

Please sign in to comment.