fix tag display (caused by rtl checking)
This commit is contained in:
parent
ab1486d5ae
commit
2e915ba998
1 changed files with 16 additions and 10 deletions
26
backend.php
26
backend.php
|
@ -871,19 +871,25 @@
|
||||||
type=\"text/css\" href=\"tt-rss_compact.css\"/>";
|
type=\"text/css\" href=\"tt-rss_compact.css\"/>";
|
||||||
}
|
}
|
||||||
|
|
||||||
$result = db_query($link, "SELECT rtl_content FROM ttrss_feeds
|
if (preg_match("/^-?[0-9][0-9]*$/", $feed) != false) {
|
||||||
WHERE id = '$feed' AND owner_uid = " . $_SESSION["uid"]);
|
|
||||||
|
$result = db_query($link, "SELECT rtl_content FROM ttrss_feeds
|
||||||
|
WHERE id = '$feed' AND owner_uid = " . $_SESSION["uid"]);
|
||||||
|
|
||||||
if (db_num_rows($result) == 1) {
|
if (db_num_rows($result) == 1) {
|
||||||
$rtl_content = sql_bool_to_bool(db_fetch_result($result, 0, "rtl_content"));
|
$rtl_content = sql_bool_to_bool(db_fetch_result($result, 0, "rtl_content"));
|
||||||
} else {
|
} else {
|
||||||
$rtl_content = false;
|
$rtl_content = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($rtl_content) {
|
if ($rtl_content) {
|
||||||
$rtl_tag = "dir=\"RTL\"";
|
$rtl_tag = "dir=\"RTL\"";
|
||||||
|
} else {
|
||||||
|
$rtl_tag = "";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$rtl_tag = "";
|
$rtl_tag = "";
|
||||||
|
$rtl_content = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
|
print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">
|
||||||
|
|
Loading…
Reference in a new issue