Changed behavior to match v8 (#11431)

Co-authored-by: Nikolaj Geisle <niko737@edu.ucl.dk>
This commit is contained in:
Nikolaj Geisle
2021-10-21 09:53:28 +02:00
committed by GitHub
parent c585f77533
commit 6d3f407dac

View File

@@ -12,7 +12,7 @@ namespace Umbraco.Extensions
public static class PublishedModelFactoryExtensions
{
/// <summary>
/// Returns true if the current <see cref="IPublishedModelFactory"/> is an implementation of <see cref="ILivePublishedModelFactory2"/> and is enabled
/// Returns true if the current <see cref="IPublishedModelFactory"/> is an implementation of <see cref="IAutoPublishedModelFactory"/> and is enabled
/// </summary>
public static bool IsLiveFactoryEnabled(this IPublishedModelFactory factory)
{
@@ -21,8 +21,8 @@ namespace Umbraco.Extensions
return liveFactory.Enabled;
}
// if it's not ILivePublishedModelFactory we can't determine if it's enabled or not so return true
return true;
// if it's not ILivePublishedModelFactory we know we're not using a live factory
return false;
}
/// <summary>