Shorten export zip names

This commit is contained in:
Tom Needham 2012-03-17 17:45:39 +00:00
parent bc085c3ff4
commit 77f6872ea4
1 changed files with 2 additions and 2 deletions

View File

@ -126,7 +126,7 @@ class OC_Migrate{
*/ */
static public function createSysExportFile( $exporttype='instance', $path=null ){ static public function createSysExportFile( $exporttype='instance', $path=null ){
// Calculate zip name // Calculate zip name
$zipname = "owncloud_export_" . date("y-m-d_H-i-s") . ".zip"; $zipname = "oc_export_" . date("y-m-d_H-i-s") . ".zip";
// Get the data dir // Get the data dir
$datadir = OC_Config::getValue( 'datadirectory' ); $datadir = OC_Config::getValue( 'datadirectory' );
// Calculate destination // Calculate destination
@ -293,7 +293,7 @@ class OC_Migrate{
$user = OC_User::getUser(); $user = OC_User::getUser();
$userdatadir = OC_Config::getValue( 'datadirectory' ) . '/' . $user . '/'; $userdatadir = OC_Config::getValue( 'datadirectory' ) . '/' . $user . '/';
// Calculate zip name // Calculate zip name
$zipname = "owncloud_userexport_" . $user . '_' . date("y-m-d_H-i-s") . ".zip"; $zipname = "oc_userexport_" . $user . '_' . date("y-m-d_H-i-s") . ".zip";
// Calculate destination // Calculate destination
if( !is_null( $path ) ){ if( !is_null( $path ) ){
// Path given // Path given