Skip to content

Commit 6d3f407

Browse files
ZeegaanNikolaj Geisle
andauthored
Changed behavior to match v8 (#11431)
Co-authored-by: Nikolaj Geisle <[email protected]>
1 parent c585f77 commit 6d3f407

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Umbraco.Core/Extensions/PublishedModelFactoryExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Umbraco.Extensions
1212
public static class PublishedModelFactoryExtensions
1313
{
1414
/// <summary>
15-
/// Returns true if the current <see cref="IPublishedModelFactory"/> is an implementation of <see cref="ILivePublishedModelFactory2"/> and is enabled
15+
/// Returns true if the current <see cref="IPublishedModelFactory"/> is an implementation of <see cref="IAutoPublishedModelFactory"/> and is enabled
1616
/// </summary>
1717
public static bool IsLiveFactoryEnabled(this IPublishedModelFactory factory)
1818
{
@@ -21,8 +21,8 @@ public static bool IsLiveFactoryEnabled(this IPublishedModelFactory factory)
2121
return liveFactory.Enabled;
2222
}
2323

24-
// if it's not ILivePublishedModelFactory we can't determine if it's enabled or not so return true
25-
return true;
24+
// if it's not ILivePublishedModelFactory we know we're not using a live factory
25+
return false;
2626
}
2727

2828
/// <summary>

0 commit comments

Comments
 (0)