X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fcommon.pl;h=47de5b0446a22c7476809b370436f3dbee6d769b;hb=2f23933db5d24e9da91fd079a1d0c362dad344f7;hp=7c8b1e5f14384fe1637d60c7a0180a995e2f1e21;hpb=41a039692bf1d655df629fd833fd6d6d428eb29b;p=kivitendo-erp.git diff --git a/bin/mozilla/common.pl b/bin/mozilla/common.pl index 7c8b1e5f1..47de5b044 100644 --- a/bin/mozilla/common.pl +++ b/bin/mozilla/common.pl @@ -10,37 +10,8 @@ ###################################################################### use SL::Form; -use YAML; - use SL::Common; - -sub save_form { - $lxdebug->enter_sub(); - - my $old_form = YAML::Dump($form); - $old_form =~ s|!|!!|g; - $old_form =~ s|\n|!n|g; - $old_form =~ s|\r|!r|g; - - $lxdebug->leave_sub(); - - return $old_form; -} - -sub restore_form { - $lxdebug->enter_sub(); - - my ($old_form, $no_delete) = @_; - - map({ delete($form->{$_}); } keys(%{$form})) unless ($no_delete); - $old_form =~ s|!r|\r|g; - $old_form =~ s|!n|\n|g; - $old_form =~ s|!!|!|g; - my $new_form = YAML::Load($old_form); - map({ $form->{$_} = $new_form->{$_}; } keys(%{$new_form})); - - $lxdebug->leave_sub(); -} +use SL::MoreCommon; sub build_std_url { $lxdebug->enter_sub();