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:
@@ -271,7 +271,7 @@ class workspaceTools {
|
|||||||
*/
|
*/
|
||||||
public function upgradeTranslation($first = true) {
|
public function upgradeTranslation($first = true) {
|
||||||
$this->initPropel(true);
|
$this->initPropel(true);
|
||||||
require('classes/model/Language.php');
|
require_once('classes/model/Language.php');
|
||||||
G::LoadThirdParty('pear/json', 'class.json');
|
G::LoadThirdParty('pear/json', 'class.json');
|
||||||
foreach (System::listPoFiles() as $poFile) {
|
foreach (System::listPoFiles() as $poFile) {
|
||||||
$poName = basename($poFile);
|
$poName = basename($poFile);
|
||||||
|
|||||||
Reference in New Issue
Block a user