[BUG] Battle reports in the language of the attacking side?

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • [BUG] Battle reports in the language of the attacking side?

      Hello :)

      I noticed that the battle reports are in the language of the player that attacks me, not mine. How can this be changed?
    • PHP Source Code: class.MissionFunctions.php

      1. function getLanguage($language = NULL, $userID = NULL)
      2. {
      3. if(is_null($language) && !is_null($userID))
      4. {
      5. $sql = 'SELECT lang FROM %%USERS%% WHERE id = :userId;';
      6. $language = Database::get()->selectSingle($sql, array(
      7. ':userId' => $this->_fleet['fleet_owner']
      8. ), 'lang');
      9. }
      10. $LNG = new Language($language);
      11. $LNG->includeData(array('L18N', 'FLEET', 'TECH', 'CUSTOM'));
      12. return $LNG;
      13. }
      Display All
      to

      PHP Source Code: class.MissionFunctions.php

      1. function getLanguage($language = NULL, $userID = NULL)
      2. {
      3. if(is_null($language) && !is_null($userID))
      4. {
      5. $sql = 'SELECT lang FROM %%USERS%% WHERE id = :userId;';
      6. $language = Database::get()->selectSingle($sql, array(
      7. ':userId' => $userID
      8. ), 'lang');
      9. }
      10. $LNG = new Language($language);
      11. $LNG->includeData(array('L18N', 'FLEET', 'TECH', 'CUSTOM'));
      12. return $LNG;
      13. }
      Display All
    • Kaizoku wrote:

      PHP Source Code: class.MissionFunctions.php

      1. function getLanguage($language = NULL, $userID = NULL)
      2. {
      3. if(is_null($language) && !is_null($userID))
      4. {
      5. $sql = 'SELECT lang FROM %%USERS%% WHERE id = :userId;';
      6. $language = Database::get()->selectSingle($sql, array(
      7. ':userId' => $this->_fleet['fleet_owner']
      8. ), 'lang');
      9. }
      10. $LNG = new Language($language);
      11. $LNG->includeData(array('L18N', 'FLEET', 'TECH', 'CUSTOM'));
      12. return $LNG;
      13. }
      Display All
      to

      PHP Source Code: class.MissionFunctions.php

      1. function getLanguage($language = NULL, $userID = NULL)
      2. {
      3. if(is_null($language) && !is_null($userID))
      4. {
      5. $sql = 'SELECT lang FROM %%USERS%% WHERE id = :userId;';
      6. $language = Database::get()->selectSingle($sql, array(
      7. ':userId' => $userID
      8. ), 'lang');
      9. }
      10. $LNG = new Language($language);
      11. $LNG->includeData(array('L18N', 'FLEET', 'TECH', 'CUSTOM'));
      12. return $LNG;
      13. }
      Display All
      reliable as always! thank you, I'll test it and let you know :)