Payment introduced, minor rewrites
[shipsimu.git] / inc / language.php
index 3f7c3859cbc2e97cf2785b8a36c3d056c33ba129..b9250e59738f4b3b1921532b1facca6b7694ffcd 100644 (file)
@@ -22,7 +22,7 @@
  */
 try {
        $lang = LanguageSystem::createLanguageSystem(sprintf("%s%s",
-               PATH,
+               $cfg->readConfig('base_path'),
                FrameworkConfiguration::getInstance()->readConfig('lang_base_path')
        ));
 } catch (LanguagePathIsEmptyException $e) {
@@ -43,5 +43,8 @@ try {
        ));
 }
 
+// Is the app variable there and valid?
+if (is_object($app)) $app->setLanguageInstance($lang);
+
 // [EOF]
 ?>