diff --git a/backend.php b/backend.php
index 4d333cbce..88de4e3c0 100644
--- a/backend.php
+++ b/backend.php
@@ -524,6 +524,14 @@
$total = $line["total"];
$unread = $line["unread"];
+ $rtl_content = sql_bool_to_bool($line["rtl_content"]);
+
+ if ($rtl_content) {
+ $rtl_tag = "dir=\"RTL\"";
+ } else {
+ $rtl_tag = "";
+ }
+
$tmp_result = db_query($link,
"SELECT id,COUNT(unread) AS unread
FROM ttrss_feeds LEFT JOIN ttrss_user_entries
@@ -614,7 +622,7 @@
}
printFeedEntry($feed_id, $class, $feed, $unread,
- "icons/$feed_id.ico", $link);
+ "icons/$feed_id.ico", $link, $rtl_content);
++$lnum;
}
@@ -2849,6 +2857,10 @@
print " ";
+/* print " "; */
+
print "";
diff --git a/functions.php b/functions.php
index 988369c32..68c8eac76 100644
--- a/functions.php
+++ b/functions.php
@@ -685,7 +685,8 @@
return false;
}
- function printFeedEntry($feed_id, $class, $feed_title, $unread, $icon_file, $link) {
+ function printFeedEntry($feed_id, $class, $feed_title, $unread, $icon_file, $link,
+ $rtl_content = false) {
if (file_exists($icon_file) && filesize($icon_file) > 0) {
$feed_icon = "";
@@ -693,6 +694,12 @@
$feed_icon = "
";
}
+ if ($rtl_content) {
+ $rtl_tag = "dir=\"rtl\"";
+ } else {
+ $rtl_tag = "dir=\"ltr\"";
+ }
+
$feed = "$feed_title";
print "