porting 7.6-rc1 into 8

This commit is contained in:
Stephan
2017-05-12 14:49:44 +02:00
parent ade6c2f057
commit 8561d85f7a
1148 changed files with 41983 additions and 17045 deletions

View File

@@ -37,7 +37,6 @@ namespace Umbraco.Web.UI.Controls
// fixme inject somehow
Logger = Current.Logger;
ProfilingLogger = Current.ProfilingLogger;
DatabaseFactory = Current.DatabaseFactory;
Services = Current.Services;
}
@@ -86,11 +85,6 @@ namespace Umbraco.Web.UI.Controls
/// </summary>
public ServiceContext Services { get; }
/// <summary>
/// Gets the database context.
/// </summary>
public IUmbracoDatabaseFactory DatabaseFactory { get; }
/// <summary>
/// Gets an instance of ClientTools for access to the pages client API.
/// </summary>
@@ -107,6 +101,6 @@ namespace Umbraco.Web.UI.Controls
/// Gets a Url helper.
/// </summary>
/// <remarks>This URL helper is created without any route data and an empty request context.</remarks>
public UrlHelper Url => _url ?? (_url = new UrlHelper(new RequestContext(new HttpContextWrapper(Context), new RouteData())));
public UrlHelper Url => _url ?? (_url = new UrlHelper(Context.Request.RequestContext));
}
}