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:
ErikPorter
2009-12-03 22:49:56 +00:00
parent 7b8aa47039
commit 807facdb91

View File

@@ -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 : "");
}
}
}