* For now only import layouts with exact the same version strings

* Fixed password reset feature: before any other action is taken a confirmation e-mail will be sent
This commit is contained in:
Tobi Schäfer 2008-04-22 14:57:18 +00:00
parent 4a59353b6f
commit 91def0b843
5 changed files with 63 additions and 23 deletions

View file

@ -171,7 +171,7 @@ Layout.prototype.import_action = function() {
(new helma.Zip(zip)).extractAll(temp);
zip.remove();
var data = Xml.read(new helma.File(temp, "data.xml"));
if (!data.version || data.version < Root.VERSION) {
if (!data.version || data.version !== Root.VERSION) {
throw Error("Incompatible layout version");
}
// Backup the current layout if necessary