From 0d0f04bf29744cf713d1e9f92a1b64466fd67dcd Mon Sep 17 00:00:00 2001 From: Franck Allimant Date: Wed, 18 Jun 2014 19:34:43 +0200 Subject: [PATCH] Added getConfiguredShopUrl() to access url_site variable --- core/lib/Thelia/Model/ConfigQuery.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/lib/Thelia/Model/ConfigQuery.php b/core/lib/Thelia/Model/ConfigQuery.php index 31c56e229..cc9f82f48 100644 --- a/core/lib/Thelia/Model/ConfigQuery.php +++ b/core/lib/Thelia/Model/ConfigQuery.php @@ -73,6 +73,12 @@ class ConfigQuery extends BaseConfigQuery return true; } + + public static function getConfiguredShopUrl() + { + return ConfigQuery::read("url_site", ''); + } + public static function getDefaultLangWhenNoTranslationAvailable() { return ConfigQuery::read("default_lang_without_translation", 1);