X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=labels%2Flabel-edit-layout.pl;h=e814e3b795023d409760c0f5d8310716735447cc;hb=63820d3973dae7514556172665a46c0584aaefc8;hp=5a45d5cfe0a739c50433b232214f3af9ffbfcc68;hpb=16f1fffdd1f5d1c97db0bf664f83496864b7e24d;p=koha.git 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) = @_;