Changeset 543 for trunk


Ignore:
Timestamp:
Jun 17, 2013, 11:19:05 AM (12 years ago)
Author:
chronos
Message:
  • Opraveno: Přidán index u názvu uživatele.
  • Upraveno: Optimalizace načítání sloupců verze klienta v seznamu překladů.
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/TranslationList.php

    r540 r543  
    199199    '(SELECT `User`.`Name` FROM `User` WHERE `User`.`ID` = `T`.`User`) AS `UserName`, '.
    200200    '(SELECT `User`.`Id` FROM `User` WHERE `User`.`ID` = `T`.`User`) AS `UserId`, '.
    201     '(SELECT `Language`.`Name` FROM `Language` WHERE `Language`.`ID` = `T`.`Language`) AS `LanguageName` '.
     201    '(SELECT `Language`.`Name` FROM `Language` WHERE `Language`.`ID` = `T`.`Language`) AS `LanguageName`, '.
     202    '(SELECT `ClientVersion`.`Version` FROM `ClientVersion` WHERE `ClientVersion`.`BuildNumber` = `T`.`VersionStart`) AS `VersionStartText`, '.
     203    '(SELECT `ClientVersion`.`Version` FROM `ClientVersion` WHERE `ClientVersion`.`BuildNumber` = `T`.`VersionEnd`) AS `VersionEndText` '.
    202204    'FROM `'.$Table.'` AS `T` WHERE 1 '.$Filter['SQL'];
    203205 
     
    226228    $Output .= '<tr><td><a href="form.php?group='.$Filter['Group'].'&amp;ID='.$Line['ID'].'">'.$Line['ID'].'</a></td><td>'.$Line['Entry'].'</td>'.
    227229      '<td>'.htmlspecialchars($Line[$TranslationTree[$Filter['Group']]['Items'][0]['Column']]).'</td>'.
    228       '<td>'.GetVersionWOW($Line['VersionStart']).'-'.GetVersionWOW($Line['VersionEnd']).'</td>'.
     230      '<td>'.$Line['VersionStartText'].'-'.$Line['VersionEndText'].'</td>'.
    229231      '<td>'.$Line['LanguageName'].'</td>'.
    230232      '<td><a href="user.php?user='.$Line['UserId'].'">'.$Line['UserName'].'</a></td>';
  • trunk/admin/UpdateTrace.php

    r539 r543  
    25622562}
    25632563
     2564function UpdateTo543($Manager)
     2565{
     2566  $Manager->Execute('ALTER TABLE `Group` ADD INDEX ( `Name` )');
     2567}
     2568
    25642569$Updates = array(
    25652570        498 => array('Revision' => 506, 'Function' => 'UpdateTo506'),
     
    25682573        524 => array('Revision' => 537, 'Function' => 'UpdateTo537'),
    25692574        537 => array('Revision' => 539, 'Function' => 'UpdateTo539'),
     2575        539 => array('Revision' => 543, 'Function' => 'UpdateTo543'),
    25702576);
    25712577
  • trunk/img_level.php

    r540 r543  
    116116      if($Group['TablePrefix'] != '')
    117117      {
    118         $Count = '(SELECT COUNT(*) FROM `'.$Group['TablePrefix'].'` WHERE (`Complete` = 1) AND (`Language` <> '.$Config['OriginalLanguage'].') AND (`User`='.$LineUser['ID'].'))';
     118        $Count = '(SELECT COUNT(*) FROM `'.$Group['TablePrefix'].'` WHERE (`Complete` = 1) AND (`Language` <> '.
     119          $Config['OriginalLanguage'].') AND (`User`='.$LineUser['ID'].'))';
    119120        $TranslatedCount .= 'COALESCE('.$Count.', 0) + ';
    120121      }
     
    128129
    129130  // Main code for translation teams
    130   $DbResult = $System->Database->query('SELECT `ID`, `Name`, (SELECT AVG(`XP`) FROM `User` WHERE `Team` = `Team`.`Id`) AS `Average` FROM `Team` WHERE `ID` IN (SELECT `Team` FROM `User` WHERE `NeedUpdate` = 1)');
     131  $DbResult = $System->Database->query('SELECT `ID`, `Name`, (SELECT AVG(`XP`) FROM `User` WHERE `Team` = `Team`.`Id`) AS `Average` '.
     132    'FROM `Team` WHERE `ID` IN (SELECT `Team` FROM `User` WHERE `NeedUpdate` = 1)');
    131133  while($LineTeam = $DbResult->fetch_array())
    132134  {
  • trunk/includes/Version.php

    r542 r543  
    11<?php
    22
    3 $Revision = 542; // Subversion revision
    4 $DatabaseRevision = 539; // Database structure revision
     3$Revision = 543; // Subversion revision
     4$DatabaseRevision = 543; // Database structure revision
    55$ReleaseTime = '2013-06-17';
    66
Note: See TracChangeset for help on using the changeset viewer.