Skip to content

Commit 1a0a411

Browse files
committed
Changed GetPath() to static
Not only is `GetPath()` stateless—and, thus, will be faster if it is static—but it was actually being _called_ as a static method _already_ by `FilePath.ascx` (the only known consumer of it). It's unclear why this changed, or how it ever worked. Regardless, this fixes the issue.
1 parent 4238d50 commit 1a0a411

3 files changed

Lines changed: 6 additions & 14 deletions

File tree

Ignia.Topics.Web/Editor/FilePath.cs

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,7 @@ namespace Ignia.Topics.Web.Editor {
1515
/// Provides a strongly-typed class associated with the FilePath.ascx Attribute Type control and logic associated with
1616
/// building a configured file path from values passed to the constructor.
1717
/// </summary>
18-
public class FilePath {
19-
20-
/*==========================================================================================================================
21-
| CONSTRUCTOR
22-
\-------------------------------------------------------------------------------------------------------------------------*/
23-
/// <summary>
24-
/// Initializes a new instance of the <see cref="FilePath"/> class.
25-
/// </summary>
26-
public FilePath() { }
18+
public static class FilePath {
2719

2820
/*==========================================================================================================================
2921
| METHOD: GET PATH
@@ -37,7 +29,7 @@ public FilePath() { }
3729
/// <param name="includeLeafTopic">Boolean indicator as to whether to include the endpoint/leaf topic in the path.</param>
3830
/// <param name="truncatePathAtTopic">The assembled topic keys at which to end the path string.</param>
3931
/// <returns>A constructed file path.</returns>
40-
public string GetPath(
32+
public static string GetPath(
4133
Topic topic,
4234
string attributeKey,
4335
bool includeLeafTopic = true,

Ignia.Topics.Web/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
[assembly: AssemblyTrademark("")]
2222
[assembly: AssemblyCulture("")]
2323
[assembly: ComVisible(false)]
24-
[assembly: AssemblyVersion("3.5.1754.0")]
25-
[assembly: AssemblyFileVersion("3.5.1778.0")]
24+
[assembly: AssemblyVersion("3.5.1755.0")]
25+
[assembly: AssemblyFileVersion("3.5.1779.0")]
2626
[assembly: CLSCompliant(true)]
2727
[assembly: Guid("c98f7b48-a085-4394-b820-c244f23868ce")]

Ignia.Topics/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
[assembly: AssemblyTrademark("")]
2323
[assembly: AssemblyCulture("")]
2424
[assembly: ComVisible(false)]
25-
[assembly: AssemblyVersion("3.5.1757.0")]
26-
[assembly: AssemblyFileVersion("3.5.1789.0")]
25+
[assembly: AssemblyVersion("3.5.1758.0")]
26+
[assembly: AssemblyFileVersion("3.5.1790.0")]
2727
[assembly: InternalsVisibleTo("Ignia.Topics.Tests")]
2828
[assembly: CLSCompliant(true)]
2929
[assembly: GuidAttribute("3CA9F6CB-B45A-4E74-AAA4-0C87CAA2704F")]

0 commit comments

Comments
 (0)