From 2e93f5f3e892dfb6afe8f0b73ea547604b4e2014 Mon Sep 17 00:00:00 2001
From: GanstaZ <33817937+GanstaZ@users.noreply.github.com>
Date: Mon, 23 Oct 2023 21:47:10 +0300
Subject: [PATCH] [ticket/17202] Include bidi.css to print only in RTL
 languages

PHPBB3-17202
---
 phpBB/styles/prosilver/template/viewtopic_print.html | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/phpBB/styles/prosilver/template/viewtopic_print.html b/phpBB/styles/prosilver/template/viewtopic_print.html
index 658062f9fd..eb056480d9 100644
--- a/phpBB/styles/prosilver/template/viewtopic_print.html
+++ b/phpBB/styles/prosilver/template/viewtopic_print.html
@@ -8,7 +8,9 @@
 <title>{SITENAME} &bull; {PAGE_TITLE}</title>
 
 <link href="{T_THEME_PATH}/print.css" rel="stylesheet">
-<link href="{T_THEME_PATH}/bidi.css" rel="stylesheet">
+{% if S_CONTENT_DIRECTION eq 'rtl' %}
+	<link href="{T_THEME_PATH}/bidi.css" rel="stylesheet">
+{% endif %}
 <!-- EVENT viewtopic_print_head_append -->
 </head>
 <body id="phpbb" class="{S_CONTENT_DIRECTION}">