Shorten export zip names
This commit is contained in:
parent
bc085c3ff4
commit
77f6872ea4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue