Project

General

Profile

« Previous | Next » 

Revision 99

Added by stefan about 19 years ago

Implemented upgrade functionality in templates and languages. Fixed some bugs.

View differences:

install.php
55 55
// Setup the PclZip object
56 56
$archive = new PclZip($temp_file);
57 57
// Unzip the files to the temp unzip folder
58
$list = $archive->extract(PCLZIP_OPT_PATH, $temp_unzip, PCLZIP_OPT_REMOVE_ALL_PATH);
58
$list = $archive->extract(PCLZIP_OPT_PATH, $temp_unzip);
59 59
// Include the modules info file
60 60
require($temp_unzip.'info.php');
61 61
// Delete the temp unzip directory
......
80 80
			$admin->print_error($MESSAGE['GENERIC']['ALREADY_INSTALLED']);
81 81
		}
82 82
		$action="upgrade";
83
	} 
83
	}
84 84
}
85 85

  
86 86
// Check if module dir is writable
......
120 120
}
121 121

  
122 122
// Print success message
123
if ($action="install") {
123
if ($action=="install") {
124 124
	$admin->print_success($MESSAGE['GENERIC']['INSTALLED']);
125
} else if ($action="upgrade") {
125
} else if ($action=="upgrade") {
126 126
	$admin->print_success($MESSAGE['GENERIC']['UPGRADED']);
127 127
}	
128 128

  

Also available in: Unified diff