X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=labels%2Flabel-edit-layout.pl;h=e814e3b795023d409760c0f5d8310716735447cc;hb=8524994eda7a780738d556dd7ea462e2ac9403a1;hp=5a45d5cfe0a739c50433b232214f3af9ffbfcc68;hpb=5c2def51587c4b2636b5f066306b8bd5dc0e7a7a;p=koha_fer diff --git a/labels/label-edit-layout.pl b/labels/label-edit-layout.pl index 5a45d5cfe0..e814e3b795 100755 --- a/labels/label-edit-layout.pl +++ b/labels/label-edit-layout.pl @@ -26,8 +26,8 @@ use POSIX; use C4::Auth qw(get_template_and_user); use C4::Output qw(output_html_with_http_headers); -use C4::Creators 1.000000; -use C4::Labels 1.000000; +use C4::Creators; +use C4::Labels; my $cgi = new CGI; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( @@ -41,10 +41,10 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); -my $op = $cgi->param('op') || $ARGV[0] || ''; -my $layout_id = $cgi->param('layout_id') || $cgi->param('element_id') || $ARGV[1] || ''; +my $op = $cgi->param('op') || ''; +my $layout_id = $cgi->param('layout_id') || $cgi->param('element_id') || ''; my $layout_choice = $cgi->param('layout_choice') || ''; -my $layout = ''; +our $layout = ''; sub _set_selected { my ($type_list, $object, $data_type) = @_;