Project

General

Profile

« Previous | Next » 

Revision 1738

Added by Dietmar about 12 years ago

! remove folder structure in zip file for backup droplets

View differences:

branches/2.8.x/CHANGELOG
13 13

  
14 14

  
15 15

  
16
05 Sep-2012 Build 1738 Dietmar Woellbrink (Luisehahne)
17
! remove folder structure in zip file for backup droplets
16 18
05 Sep-2012 Build 1737 Dietmar Woellbrink (Luisehahne)
17 19
# fixed sql statement groups_added in settings
18 20
! set stored passwords in $session to empty string
branches/2.8.x/wb/admin/interface/version.php
51 51

  
52 52
// check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
53 53
if(!defined('VERSION')) define('VERSION', '2.8.3');
54
if(!defined('REVISION')) define('REVISION', '1737');
54
if(!defined('REVISION')) define('REVISION', '1738');
55 55
if(!defined('SP')) define('SP', '');
branches/2.8.x/wb/modules/droplets/backup_droplets.php
72 72

  
73 73
	$query_droplets = $database->query($sql);
74 74
	while($droplet = $query_droplets->fetchRow()) {
75
		echo 'Saving: /temp/droplets/'.$droplet["name"].'.php';
75
		echo 'Saving: '.$droplet["name"].'.php';
76 76
		$sFile = $droplet["name"].'.php';
77 77
		if($fh = fopen(WB_PATH.$temp_dir.$sFile, 'w'))
78 78
		{
......
93 93
require_once(WB_PATH.'/include/pclzip/pclzip.lib.php');
94 94
$archive = new PclZip(WB_PATH.$temp_file);
95 95

  
96
$file_list = $archive->create($sFilesToZip , PCLZIP_OPT_ADD_PATH, WB_PATH.$temp_dir );
96
$file_list = $archive->create($sFilesToZip , PCLZIP_OPT_REMOVE_ALL_PATH );
97 97
if ($file_list == 0){
98 98
	echo "Packaging error: '.$archive->errorInfo(true).'";
99 99
	die("Error : ".$archive->errorInfo(true));

Also available in: Unified diff