Changeset 580


Ignore:
Timestamp:
Sep 11, 2013, 11:38:24 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: Creation of subdirectory during addon generation.
Location:
trunk
Files:
2 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;
  • trunk/includes/Version.php

    r579 r580  
    11<?php
    22
    3 $Revision = 579; // Subversion revision
     3$Revision = 580; // Subversion revision
    44$DatabaseRevision = 574; // Database structure revision
    55$ReleaseTime = '2013-09-11';
Note: See TracChangeset for help on using the changeset viewer.