Changeset 789 for trunk/Modules
- Timestamp:
- Feb 10, 2014, 4:16:56 PM (11 years ago)
- Location:
- trunk/Modules
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Translation/Progress.php
r743 r789 70 70 71 71 if(array_key_exists('Version', $_GET)) $_SESSION['StatVersion'] = $_GET['Version']; 72 if(!array_key_exists('StatVersion', $_SESSION)) $_SESSION['StatVersion'] = $this->System->Config['Web']['GameVersion']; 72 if(!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 } 73 80 74 81 if(!isset($_SESSION['language'])) -
trunk/Modules/User/User.php
r765 r789 159 159 function Load() 160 160 { 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); 162 165 if($DbResult->num_rows > 0) 163 166 { … … 173 176 $this->Info = $User['Info']; 174 177 $this->PreferredVersion = $User['PreferredVersion']; 178 $this->PreferredVersionGame = $User['PreferredVersionGame']; 175 179 } else $this->SetAnonymous(); 176 180 }
Note:
See TracChangeset
for help on using the changeset viewer.