argh! no more extension methods that depend on singletons

This commit is contained in:
Shannon
2016-06-01 13:24:12 +02:00
parent f5f7cf8d63
commit 1c82d8ac4e

View File

@@ -875,7 +875,7 @@ namespace Umbraco.Core.Services
var c = stack.Peek();
IMedia[] cc;
if (c.Level == level)
while ((cc = c.Children().ToArray()).Length > 0)
while ((cc = c.Children(this).ToArray()).Length > 0)
{
foreach (var ci in cc)
stack.Push(ci);