Changeset 543 for trunk/img_level.php


Ignore:
Timestamp:
Jun 17, 2013, 11:19:05 AM (11 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ů.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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  {
Note: See TracChangeset for help on using the changeset viewer.