summaryrefslogtreecommitdiffstats
path: root/mdkonline
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2006-03-02 13:04:02 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2006-03-02 13:04:02 +0000
commit134c1a9372c4a568862449e9a74f249c9d68a694 (patch)
tree2c0de7b4908815604d450647129058b333bba254 /mdkonline
parent299c4e03ff73c82263f2600fe4c16beda4f63c82 (diff)
downloadmgaonline-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-xmdkonline6
1 files changed, 3 insertions, 3 deletions
diff --git a/mdkonline b/mdkonline
index 7d8aaf9b..e2f8ffed 100755
--- a/mdkonline
+++ b/mdkonline
@@ -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);
}