Skip to content

Commit

Permalink
Temporary switch back to R7.ImageHandler for DNN 8 portals GH-135
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-yagodin committed Dec 7, 2020
1 parent 6e7f6e6 commit be5fa89
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions R7.News/Models/NewsEntryExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,11 @@ public static string GetImageUrl (this INewsEntry newsEntry, int width)
var image = newsEntry.GetImage ();
if (image != null) {
return Globals.AddHTTP (PortalSettings.Current.PortalAlias.HTTPAlias)
+ "/dnnimagehandler.ashx"
+ "?mode=securefile"
+ "&fileid=" + image.FileId
+ "&filter=resize"
+ "&w=" + width
+ "/imagehandler.ashx"
//+ "?mode=securefile"
+ "?fileid=" + image.FileId
//+ "&filter=resize"
+ "&width=" + width
// this helps external services to understand mimetype
+ "&ext=." + image.Extension;
}
Expand Down

0 comments on commit be5fa89

Please sign in to comment.