Init CurrentCore
This commit is contained in:
@@ -153,7 +153,7 @@ namespace Umbraco.Core.Runtime
|
||||
composers.Compose();
|
||||
|
||||
// create the factory
|
||||
_factory = Current.Factory = composition.CreateFactory();
|
||||
_factory = Current.Factory = CurrentCore.Factory = composition.CreateFactory();
|
||||
|
||||
// create & initialize the components
|
||||
_components = _factory.GetInstance<ComponentCollection>();
|
||||
@@ -178,7 +178,7 @@ namespace Umbraco.Core.Runtime
|
||||
{
|
||||
try
|
||||
{
|
||||
_factory = Current.Factory = composition?.CreateFactory();
|
||||
_factory = Current.Factory = CurrentCore.Factory = composition?.CreateFactory();
|
||||
}
|
||||
catch { /* yea */ }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user