aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/mono/files/autofac.patch')
-rw-r--r--dev-lang/mono/files/autofac.patch24
1 files changed, 0 insertions, 24 deletions
diff --git a/dev-lang/mono/files/autofac.patch b/dev-lang/mono/files/autofac.patch
deleted file mode 100644
index 1983c1d..0000000
--- a/dev-lang/mono/files/autofac.patch
+++ /dev/null
@@ -1,24 +0,0 @@
---- a/mcs/class/System.Web/System.Web.Hosting/HostingEnvironment.cs
-+++ b/mcs/class/System.Web/System.Web.Hosting/HostingEnvironment.cs
-@@ -156,9 +156,18 @@
-
- HttpContext context = HttpContext.Current;
- HttpRequest req = context == null ? null : context.Request;
-- if (req == null)
-- return null;
--
-+ if (req == null) // ADDED for Orchard
-+ {
-+ var pp = HostingEnvironment.ApplicationPhysicalPath;
-+ String vp=virtualPath;
-+ if (vp.IndexOf("~/") == 0)
-+ {
-+ vp = pp + virtualPath.Substring(2);
-+ }
-+ // TODO: if not "~/" ???? then what?
-+ return vp;
-+ } // END added for Orchard
-+ else
- return req.MapPath (virtualPath);
- }
-