Merge branch 'master' into tax

This commit is contained in:
Etienne Roudeix
2013-09-10 12:29:08 +02:00
171 changed files with 17862 additions and 196 deletions

View File

@@ -13,6 +13,17 @@ class Currency extends BaseCurrency {
use \Thelia\Model\Tools\PositionManagementTrait;
public static function getDefaultCurrency()
{
$currency = CurrencyQuery::create()->findOneByByDefault(1);
if (null === $currency) {
throw new \RuntimeException("No default currency is defined. Please define one.");
}
return $currency;
}
/**
* {@inheritDoc}
*/