Changeset 789 for trunk


Ignore:
Timestamp:
Feb 10, 2014, 4:16:56 PM (11 years ago)
Author:
maron
Message:
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Translation/Progress.php

    r743 r789  
    7070
    7171if(array_key_exists('Version', $_GET)) $_SESSION['StatVersion'] = $_GET['Version'];
    72 if(!array_key_exists('StatVersion', $_SESSION)) $_SESSION['StatVersion'] = $this->System->Config['Web']['GameVersion'];
     72if(!array_key_exists('StatVersion', $_SESSION))
     73{
     74  if($this->System->User->Licence(LICENCE_USER))
     75        {
     76    $_SESSION['StatVersion'] = $this->System->User->PreferredVersionGame;
     77  } else
     78    $_SESSION['StatVersion'] = $this->System->Config['Web']['GameVersion'];
     79}
    7380
    7481if(!isset($_SESSION['language']))
  • trunk/Modules/User/User.php

    r765 r789  
    159159  function Load()
    160160  {
    161     $DbResult = $this->Database->query('SELECT * FROM `User` WHERE `ID` = '.$this->Id);
     161    $DbResult = $this->Database->query('SELECT `User`.`PreferredVersion`,`User`.`ID`,`User`.`Team`,`User`.`Redirecting`,`User`.`Email`,`User`.`Info`,'.
     162    '`User`.`Language`,`User`.`Name`,`User`.`GM`,`ClientVersion`.`Version` AS `PreferredVersionGame` FROM `User` '.
     163                'LEFT JOIN `ClientVersion` ON `ClientVersion`.`Id` = `User`.`PreferredVersion` '.
     164    'WHERE `User`.`ID` = '.$this->Id);
    162165    if($DbResult->num_rows > 0)
    163166    {
     
    173176      $this->Info = $User['Info'];
    174177      $this->PreferredVersion = $User['PreferredVersion'];
     178      $this->PreferredVersionGame = $User['PreferredVersionGame'];
    175179    } else $this->SetAnonymous();
    176180  }
  • trunk/includes/Version.php

    r788 r789  
    66// and system will need database update.
    77
    8 $Revision = 788; // Subversion revision
     8$Revision = 789; // Subversion revision
    99$DatabaseRevision = 787; // Database structure revision
    1010$ReleaseTime = '2014-02-09';
Note: See TracChangeset for help on using the changeset viewer.