Files
Umbraco-CMS/umbraco/presentation/UmbracoRequest.cs
slace 8f6415abee DO NOT DOWNLOAD. DOWNLOAD LATEST STABLE FROM THE RELEASE TAB
No these aren't changes to make the demos work at CG09. Move along

[TFS Changeset #55237]
2009-06-21 19:12:55 +00:00

29 lines
804 B
C#

using System;
using System.Web;
using umbraco.presentation.LiveEditing;
using umbraco.BasePages;
using umbraco.cms.businesslogic.web;
namespace umbraco.presentation
{
public class UmbracoRequest : HttpRequestWrapper
{
public UmbracoRequest(HttpRequest request) : base(request)
{
}
/// <summary>
/// Gets a value indicating whether the request has debugging enabled
/// </summary>
/// <value><c>true</c> if this instance is debug; otherwise, <c>false</c>.</value>
public bool IsDebug
{
get
{
return GlobalSettings.DebugMode && (!string.IsNullOrEmpty(this["umbdebugshowtrace"]) || !string.IsNullOrEmpty(this["umbdebug"]));
}
}
}
}