diff options
author | Thierry Vignaud <tvignaud@mandriva.org> | 2006-03-02 13:04:02 +0000 |
---|---|---|
committer | Thierry Vignaud <tvignaud@mandriva.org> | 2006-03-02 13:04:02 +0000 |
commit | 134c1a9372c4a568862449e9a74f249c9d68a694 (patch) | |
tree | 2c0de7b4908815604d450647129058b333bba254 /mdkonline | |
parent | 299c4e03ff73c82263f2600fe4c16beda4f63c82 (diff) | |
download | mgaonline-134c1a9372c4a568862449e9a74f249c9d68a694.tar mgaonline-134c1a9372c4a568862449e9a74f249c9d68a694.tar.gz mgaonline-134c1a9372c4a568862449e9a74f249c9d68a694.tar.bz2 mgaonline-134c1a9372c4a568862449e9a74f249c9d68a694.tar.xz mgaonline-134c1a9372c4a568862449e9a74f249c9d68a694.zip |
handle both old an new wizard API
Diffstat (limited to 'mdkonline')
-rwxr-xr-x | mdkonline | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -90,7 +90,7 @@ sub send_conf_via_soap { $reg_host; } -my $wiz = wizards->new( +my $wiz = { name => N("Mandriva Online"), pages => { @@ -207,7 +207,7 @@ my $wiz = wizards->new( next => 0, } } - }); + }; if (!$ia && $login && $password && $boxname) { $is_success = mdkonline::create_authenticate_account('authenticate', $login, $password); @@ -221,5 +221,5 @@ if (!$ia && $login && $password && $boxname) { output_p($logfile, N("Cannot connect to Mandriva Online website: wrong login/password or router/firewall bad settings")); } } else { - $wiz->safe_process($in); + mdkonline::get_release <= 2006.0 ? wizards->new->safe_process($wiz, $in) : wizards->new($wiz)->safe_process($in); } |