Ignore:
Timestamp:
Apr 13, 2010, 10:18:46 AM (15 years ago)
Author:
george
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/export/export.php

    r446 r456  
    315315    $this->LoadFilters();
    316316
     317    if(!file_exists($this->TempDir.'lua/')) mkdir($this->TempDir.'lua/', 0777, true);
    317318    $DbResult = $this->Database->query('SELECT `Group`.* FROM `ExportGroup` JOIN `Group` ON `Group`.`Id` = `ExportGroup`.`Group` WHERE `ExportGroup`.`Export`='.$this->Id.' AND `Group`.`LuaFileName` != ""');
    318319    while($Group = $DbResult->fetch_assoc())
     
    322323      $File->OpenFile('../source/'.$this->ClientVersion['Version'].'/lua/'.$Group['LuaFileName'].'.lua');
    323324      $File2 = new FileStream();
    324       if(!file_exists($this->TempDir.'lua/')) mkdir($this->TempDir.'lua/', 0777, true);
    325325      $File2->CreateFile($this->TempDir.'lua/'.$Group['LuaFileName'].'.lua');
    326326     
     
    332332      while(!$File->EOF())
    333333      {
    334         $Line = $File->ReadLine();
     334        $Line = $File->ReadString();
    335335        if(strpos($Line, '=') !== false)
    336336        {
     
    357357          if($Value['Comment'] != '') $NewLine .= ' -- '.$Value['Comment'];
    358358          $NewLine .= "\n";
    359           $File2->WriteLine($NewLine);
    360         } else $File2->WriteLine($Line."");
     359          $File2->WriteString($NewLine);
     360        } else $File2->WriteString($Line."");
    361361      }
    362362      echo('Hotovo <br/>');
Note: See TracChangeset for help on using the changeset viewer.