[Mono-dev] PATCH ThemeDirectoryCompiler.GetCompiledType fix

Andrew Skiba andrews at mainsoft.com
Mon Apr 10 10:06:53 EDT 2006


Hi Chris,

Please review the attached patch for the method in subj. If no one
objects, I will commit.

Index: ThemeDirectoryCompiler.cs
===================================================================
--- ThemeDirectoryCompiler.cs	(revision 59261)
+++ ThemeDirectoryCompiler.cs	(working copy)
@@ -44,7 +44,7 @@
 		public static Type GetCompiledType (string virtualPath,
HttpContext context)
 		{
 			/* XXX map the virtual path to a physical path
*/
-			string physicalPath = virtualPath;
+			string physicalPath = context.Request.MapPath
(virtualPath);
 			string[] skin_files = Directory.GetFiles
(physicalPath, "*.skin");
 
 			PageThemeParser ptp = new PageThemeParser
(virtualPath, context);



More information about the Mono-devel-list mailing list