From 25e0fd1151f84df1ca21121cf5026f4492d683ac Mon Sep 17 00:00:00 2001 From: starfighter83 Date: Wed, 23 Jun 2010 12:26:46 +0000 Subject: [PATCH] Fixes issue with package created and vir dir support changes [TFS Changeset #70930] --- umbraco/cms/businesslogic/Packager/PackageInstance/utill.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/umbraco/cms/businesslogic/Packager/PackageInstance/utill.cs b/umbraco/cms/businesslogic/Packager/PackageInstance/utill.cs index edc95c162e..91fa74d063 100644 --- a/umbraco/cms/businesslogic/Packager/PackageInstance/utill.cs +++ b/umbraco/cms/businesslogic/Packager/PackageInstance/utill.cs @@ -134,7 +134,7 @@ namespace umbraco.cms.businesslogic.packager { if (appendFile) { if (!string.IsNullOrEmpty(mcr.Xslt)) - AppendFileToManifest("/xslt/" + mcr.Xslt, packageDirectory, doc); + AppendFileToManifest(SystemDirectories.Xslt + mcr.Xslt, packageDirectory, doc); if (!string.IsNullOrEmpty(mcr.Type)) AppendFileToManifest(mcr.Type, packageDirectory, doc); @@ -151,6 +151,10 @@ namespace umbraco.cms.businesslogic.packager { /// The package directory. /// The doc. public static void AppendFileToManifest(string path, string packageDirectory, XmlDocument doc) { + + if (!path.StartsWith("~/") && !path.StartsWith("/")) + path = "~/" + path; + string serverPath = IOHelper.MapPath(path); if (System.IO.File.Exists(serverPath)) {