forkcms/forkcms — pull request #598 by siesqo (2013-11-06 09:31:05+00:00)
Title: Set locale with force in BackendModel::getURLForBlock()

## Problem

When having a website in 'nl', 'fr' and 'de', but when 'de' is not yet activated to be shown in the frontend.
The BackendModel::getURLForBlock() triggers an error while using the following in your edit.php action
```
$url = BackendModel::getURLForBlock($this->URL->getModule(), 'detail');
```

## Solution

We use the build in "force to set locale" setting and the problem is solved.
In ```BackendModel::getURLForBlock()```, we replaced
```
FrontendLanguage::setLocale($language);
```
by
```
FrontendLanguage::setLocale($language, true);
```