Changeset 268


Ignore:
Timestamp:
Aug 5, 2009, 2:19:23 PM (15 years ago)
Author:
maron
Message:

Nová verze patche, lepší načítání dostupných verzí sql

Location:
trunk
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/index.php

    r265 r268  
    9595          $result = '[';
    9696          foreach($dirs as $dir) {
    97             $result .= "'".$dir."',";
     97                if ($TranslationTree[1]['LastVersion'] >= GetBuildNumber($dir))
     98              $result .= "'".$dir."',";
    9899      }
    99           $result = substr($result,0,strlen($result)-1);
     100          if ($result <> '[') $result = substr($result,0,strlen($result)-1);
    100101          $result .= "]";
    101102        break;
    102103    case 'DBC':
    103       $sql = 'SELECT Version FROM wow_client_version WHERE DBCColumns_GameTips <> "" AND DBCColumns_Spell <> "" ';
     104      $sql = 'SELECT Version FROM wow_client_version WHERE DBCColumns_GameTips <> "" AND DBCColumns_Spell <> "" ORDER BY BuildNumber DESC';
    104105      $ID = $Database->SQLCommand($sql);
    105106          $result = '[';
Note: See TracChangeset for help on using the changeset viewer.