Changeset 395


Ignore:
Timestamp:
Mar 17, 2010, 7:51:19 PM (14 years ago)
Author:
maron
Message:
  • Upraveno: WoWMe přesunuto do podsložky. * Přidáno: Patchované WoWcsCZ. * Opraveno: Při nenalezení exportu vyvolej vyjímku namíso ukončení pomocí die.
Location:
trunk
Files:
8 added
4 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/export.php

    r391 r395  
    2323  { 
    2424    $DbResult = $this->Database->query('SELECT * FROM `Export` WHERE `Id`='.$this->Id);
    25     if($DbResult->num_rows == 0) die('Export '.$this->Id.' neexistuje');
     25    if($DbResult->num_rows == 0) throw new Exception('Export '.$this->Id.' neexistuje');
    2626    $this->Export = $DbResult->fetch_assoc();
    2727   
  • trunk/export/process_task.php

    r391 r395  
    4040        {
    4141          $Export->ExportToDBC();
    42           echo('Komprimace...'."\n");
     42          echo('Komprese...'."\n");
    4343          exec('zip -r -j '.$Export->TempDir.'/CzWoW_DBC.zip '.$Export->TempDir.'dbc/');
    4444          echo('Hotovo'."\n");
Note: See TracChangeset for help on using the changeset viewer.