WORK IN PROGRESS, GET THE STABLE SOURCE FROM THE DOWNLOADS TAB
Virtual Directory support, DLR compatible script engine [TFS Changeset #63625]
This commit is contained in:
@@ -3,6 +3,7 @@ using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Web;
|
||||
using umbraco.editorControls.imagecropper;
|
||||
using umbraco.IO;
|
||||
|
||||
namespace umbraco.editorControls.imagecropper
|
||||
{
|
||||
@@ -20,7 +21,7 @@ namespace umbraco.editorControls.imagecropper
|
||||
public ImageInfo(string relativePath)
|
||||
{
|
||||
RelativePath = relativePath;
|
||||
Path = HttpContext.Current.Server.MapPath(relativePath);
|
||||
Path = IOHelper.MapPath(relativePath);
|
||||
if (File.Exists(Path))
|
||||
{
|
||||
string fileName = Path.Substring(Path.LastIndexOf('\\') + 1);
|
||||
|
||||
Reference in New Issue
Block a user