diff --git a/cgi/org.pl b/cgi/org.pl index f7a5205fccc39..d29ea391374fa 100644 --- a/cgi/org.pl +++ b/cgi/org.pl @@ -391,11 +391,6 @@ $template_data_ref->{orgid} = $orgid; $template_data_ref->{type} = $type; -my $full_width = 1; -if ($action ne 'display') { - $full_width = 0; -} - my $title = lang($type . '_org_title'); $log->debug("org form - template data", {template_data_ref => $template_data_ref}) if $log->is_debug(); @@ -413,5 +408,4 @@ $request_ref->{title} = $title; $request_ref->{content_ref} = \$html; -$request_ref->{full_width} = $full_width; display_page($request_ref); diff --git a/cgi/product_image.pl b/cgi/product_image.pl index 65f9bf1543ced..7d026553f0520 100644 --- a/cgi/product_image.pl +++ b/cgi/product_image.pl @@ -175,7 +175,6 @@ $request_ref->{title} = $alt; $request_ref->{content_ref} = \$html; -$request_ref->{full_width} = 0; display_page($request_ref); exit(0); diff --git a/cgi/search.pl b/cgi/search.pl index 7a9987b389085..3d3294167add9 100755 --- a/cgi/search.pl +++ b/cgi/search.pl @@ -715,7 +715,6 @@ if ($map_title ne '') { $request_ref->{title} = $map_title . " - " . lang("search_map"); } - $request_ref->{full_width} = 1; ${$request_ref->{content_ref}} .= < @@ -755,7 +754,6 @@ if ($graph_ref->{graph_title} ne '') { $request_ref->{title} = $graph_ref->{graph_title} . " - " . lang("search_graph"); } - $request_ref->{full_width} = 1; ${$request_ref->{content_ref}} .= < diff --git a/cgi/spellcheck_test.pl b/cgi/spellcheck_test.pl index afc4518fe79a1..5d4b729346173 100644 --- a/cgi/spellcheck_test.pl +++ b/cgi/spellcheck_test.pl @@ -113,15 +113,9 @@ $template_data_ref->{action_display} = $action; $template_data_ref->{text} = $text; -my $full_width = 1; -if ($action ne 'display') { - $full_width = 0; -} - process_template('web/pages/spellcheck/spellcheck_test.tt.html', $template_data_ref, \$html) or $html = ''; $html .= "

" . $tt->error() . "

"; $request_ref->{title} = "Spellcheck test"; $request_ref->{content_ref} = \$html; -$request_ref->{full_width} = $full_width; display_page($request_ref); diff --git a/cgi/test_ingredients_analysis.pl b/cgi/test_ingredients_analysis.pl index a66730987ab1e..638287c0750e4 100755 --- a/cgi/test_ingredients_analysis.pl +++ b/cgi/test_ingredients_analysis.pl @@ -86,15 +86,9 @@ $template_data_ref->{json} = $json; } -my $full_width = 1; -if ($action ne 'display') { - $full_width = 0; -} - process_template('web/pages/test_ingredients/test_ingredients_analysis.tt.html', $template_data_ref, \$html) or $html = ''; $request_ref->{title} = "Ingredients analysis test"; $request_ref->{content_ref} = \$html; -$request_ref->{full_width} = $full_width; display_page($request_ref); diff --git a/cgi/user.pl b/cgi/user.pl index 390638ed774f1..51b6c03039b99 100644 --- a/cgi/user.pl +++ b/cgi/user.pl @@ -393,11 +393,6 @@ $template_data_ref->{userid} = $userid; $template_data_ref->{type} = $type; -my $full_width = 1; -if ($action ne 'display') { - $full_width = 0; -} - if (($type eq "edit_owner") and ($action eq "process")) { $log->info("redirecting to / after changing owner", {}) if $log->is_info(); @@ -417,6 +412,5 @@ $request_ref->{title} = lang($type . '_user_' . $action); $request_ref->{content_ref} = \$html; - $request_ref->{full_width} = $full_width; display_page($request_ref); } diff --git a/lib/ProductOpener/Display.pm b/lib/ProductOpener/Display.pm index b02827f78aad2..51eae3ff59381 100644 --- a/lib/ProductOpener/Display.pm +++ b/lib/ProductOpener/Display.pm @@ -1401,10 +1401,6 @@ sub display_text ($request_ref) { $request_ref->{canon_url} = "/$textid"; } - if ($textid ne 'index') { - $request_ref->{full_width} = 1; - } - display_page($request_ref); exit(); } @@ -2440,9 +2436,6 @@ HEADER } - # datatables clears both - $request_ref->{full_width} = 1; - $log->debug("end", {}) if $log->is_debug(); return $html; @@ -2746,9 +2739,6 @@ HEADER } - # datatables clears both - $request_ref->{full_width} = 1; - $log->debug("end", {}) if $log->is_debug(); process_template('web/common/includes/display_list_of_tags_translate.tt.html', @@ -4490,7 +4480,6 @@ JS $request_ref->{content_ref} = \$html; $request_ref->{page_type} = "products"; - $request_ref->{page_type} = "full_width"; display_page($request_ref); @@ -7128,11 +7117,6 @@ sub display_page ($request_ref) { } } - my $main_margin_right = "margin-right:301px;"; - if ((defined $request_ref->{full_width}) and ($request_ref->{full_width} == 1)) { - $main_margin_right = ''; - } - my $og_type = 'food'; if (defined $request_ref->{og_type}) { $og_type = $request_ref->{og_type};