Dotclear

Changeset 3034:cb83195ec930


Ignore:
Timestamp:
07/03/15 14:28:49 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

Add date and blog-id in exported zip filename of media folder, fixes #1664

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • admin/media.php

    r2889 r3034  
    122122          $zip->addDirectory($core->media->root.'/'.$d,'',true); 
    123123 
    124           header('Content-Disposition: attachment;filename='.($d ? $d : 'media').'.zip'); 
     124          header('Content-Disposition: attachment;filename='.date('Y-m-d').'-'.$core->blog->id.'-'.($d ? $d : 'media').'.zip'); 
    125125          header('Content-Type: application/x-zip'); 
    126126          $zip->write(); 
  • plugins/maintenance/inc/tasks/class.dc.maintenance.zipmedia.php

    r2044 r3034  
    4444 
    4545          // Send zip 
    46           header('Content-Disposition: attachment;filename=media.zip'); 
     46          header('Content-Disposition: attachment;filename='.date('Y-m-d').'-'.$this->core->blog->id.'-'.'media.zip'); 
    4747          header('Content-Type: application/x-zip'); 
    4848          $zip->write(); 
Note: See TracChangeset for help on using the changeset viewer.

Sites map