* 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:
parent
4a59353b6f
commit
91def0b843
5 changed files with 63 additions and 23 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue