BUG 6962 Upgrade fails with more then one workspace

Change require to require_once to avoid problems reimporting
the Language class when upgrading.
This commit is contained in:
Alexandre Rosenfeld
2011-05-25 09:07:20 -04:00
parent 61999339e0
commit 03f3eefa9c

View File

@@ -271,7 +271,7 @@ class workspaceTools {
*/
public function upgradeTranslation($first = true) {
$this->initPropel(true);
require('classes/model/Language.php');
require_once('classes/model/Language.php');
G::LoadThirdParty('pear/json', 'class.json');
foreach (System::listPoFiles() as $poFile) {
$poName = basename($poFile);