Changeset 580 for trunk/Modules/Export


Ignore:
Timestamp:
Sep 11, 2013, 11:38:24 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: Creation of subdirectory during addon generation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Export/CreateAddon.php

    r564 r580  
    104104    $CreatedFileList = array();
    105105    $CreatedFileListCount = array();
     106   
     107    if(!file_exists($this->TempDir.'CzWoW/')) mkdir($this->TempDir.'CzWoW/', 0777, true);
    106108 
    107109    $DbResult = $this->Database->query('SELECT `Group`.* FROM `ExportGroup` JOIN `Group` ON `Group`.`Id` = `ExportGroup`.`Group` WHERE `ExportGroup`.`Export`='.$this->Id.' AND `Group`.`TablePrefix` != ""');
     
    125127   
    126128        $CreatedFileList[] = $Column['AddonFileName'].'_'.$FileIndex;
    127         $FileName = $this->TempDir.'CzWoW/'.$Column['AddonFileName'].'_'.$FileIndex.'.lua';
    128         if(!file_exists($this->TempDir.'CzWoW/')) mkdir($this->TempDir.'CzWoW/', 0777, true);
     129        $FileName = $this->TempDir.'CzWoW/'.$Column['AddonFileName'].'_'.$FileIndex.'.lua';       
    129130        $Output .= $Column['AddonFileName'].': ';
    130131        $i = 0;
Note: See TracChangeset for help on using the changeset viewer.