mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Added the missing file from my last checkin.
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4043119
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using System;
|
||||
|
||||
namespace Orchard.Blogs.Extensions {
|
||||
public static class UriExtensions {
|
||||
public static string ToRootString(this Uri uri) {
|
||||
return string.Format("{0}://{1}{2}", uri.Scheme, uri.Host, uri.Port != 80 ? ":" + uri.Port : "");
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user