Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Umbraco.Web.Common/Controllers/RenderController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public override async Task OnActionExecutionAsync(ActionExecutingContext context
/// </remarks>
protected override IActionResult CurrentTemplate<T>(T model)
{
if (EnsurePhsyicalViewExists(UmbracoRouteValues.TemplateName) == false)
if (EnsurePhysicalViewExists(UmbracoRouteValues.TemplateName) == false)
{
// no physical template file was found
return new PublishedContentNotFoundResult(UmbracoContext);
Expand Down
11 changes: 9 additions & 2 deletions src/Umbraco.Web.Common/Controllers/UmbracoPageController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ protected virtual IPublishedContent? CurrentPage
/// </exception>
protected virtual IActionResult CurrentTemplate<T>(T model)
{
if (EnsurePhsyicalViewExists(UmbracoRouteValues.TemplateName) == false)
if (EnsurePhysicalViewExists(UmbracoRouteValues.TemplateName) == false)
{
throw new InvalidOperationException("No physical template file was found for template " +
UmbracoRouteValues.TemplateName);
Expand All @@ -92,7 +92,14 @@ protected virtual IActionResult CurrentTemplate<T>(T model)
/// Ensures that a physical view file exists on disk.
/// </summary>
/// <param name="template">The view name.</param>
protected bool EnsurePhsyicalViewExists(string? template)
[Obsolete("Please use the correctly spelt EnsurePhsyicalViewExists method. Scheduled for removal in Umbraco 18.")]
protected bool EnsurePhsyicalViewExists(string? template) => EnsurePhysicalViewExists(template);

/// <summary>
/// Ensures that a physical view file exists on disk.
/// </summary>
/// <param name="template">The view name.</param>
protected bool EnsurePhysicalViewExists(string? template)
{
if (string.IsNullOrWhiteSpace(template))
{
Expand Down
Loading