diff --git a/src/Umbraco.Web/umbraco.presentation/umbraco/uQuery/uQuery-Dictionary.cs b/src/Umbraco.Web/umbraco.presentation/umbraco/uQuery/uQuery-Dictionary.cs
index 797b1c0804..298fb983ba 100644
--- a/src/Umbraco.Web/umbraco.presentation/umbraco/uQuery/uQuery-Dictionary.cs
+++ b/src/Umbraco.Web/umbraco.presentation/umbraco/uQuery/uQuery-Dictionary.cs
@@ -3,43 +3,48 @@ using umbraco.cms.businesslogic;
namespace umbraco
{
- ///
- /// Static helper methods, previously this class was UmbracoHelper
- ///
- public static partial class uQuery
- {
- ///
- /// Gets a dictionary item if it exists. Otherwise returns the fallback string.
- ///
- /// The dictionary key.
- /// The fallback.
- ///
- /// A dictionary string or the fallback string
- ///
- public static string GetDictionaryItem(string key, string fallback)
- {
- var item = library.GetDictionaryItem(key);
- return string.IsNullOrEmpty(item) ? fallback : item;
- }
+ ///
+ /// Static helper methods, previously this class was UmbracoHelper
+ ///
+ public static partial class uQuery
+ {
+ ///
+ /// Gets a dictionary item if it exists. Otherwise returns the fallback string.
+ ///
+ /// The dictionary key.
+ /// The fallback.
+ ///
+ /// A dictionary string or the fallback string
+ ///
+ public static string GetDictionaryItem(string key, string fallback)
+ {
+ if (Dictionary.DictionaryItem.hasKey(key))
+ {
+ var item = new Dictionary.DictionaryItem(key);
+ return item.Value();
+ }
- ///
- /// Gets the dictionary item for a specified language. Otherwise returns the fallback string.
- ///
- /// The dictionary key.
- /// The fallback.
- /// The language id.
- ///
- /// Returns the value of a dictionary item from a language id, or the fallback string.
- ///
- public static string GetDictionaryItem(string key, string fallback, int languageId)
- {
- if (Dictionary.DictionaryItem.hasKey(key))
- {
- var item = new Dictionary.DictionaryItem(key);
- return item.Value(languageId);
- }
+ return fallback;
+ }
- return fallback;
- }
- }
+ ///
+ /// Gets the dictionary item for a specified language. Otherwise returns the fallback string.
+ ///
+ /// The dictionary key.
+ /// The fallback.
+ /// The language id.
+ ///
+ /// Returns the value of a dictionary item from a language id, or the fallback string.
+ ///
+ public static string GetDictionaryItem(string key, string fallback, int languageId)
+ {
+ if (Dictionary.DictionaryItem.hasKey(key))
+ {
+ var item = new Dictionary.DictionaryItem(key);
+ return item.Value(languageId);
+ }
+
+ return fallback;
+ }
+ }
}
\ No newline at end of file