fix tag display (caused by rtl checking)

This commit is contained in:
Andrew Dolgov 2006-03-27 07:03:47 +01:00
parent ab1486d5ae
commit 2e915ba998

View file

@ -871,6 +871,8 @@
type=\"text/css\" href=\"tt-rss_compact.css\"/>"; type=\"text/css\" href=\"tt-rss_compact.css\"/>";
} }
if (preg_match("/^-?[0-9][0-9]*$/", $feed) != false) {
$result = db_query($link, "SELECT rtl_content FROM ttrss_feeds $result = db_query($link, "SELECT rtl_content FROM ttrss_feeds
WHERE id = '$feed' AND owner_uid = " . $_SESSION["uid"]); WHERE id = '$feed' AND owner_uid = " . $_SESSION["uid"]);
@ -885,6 +887,10 @@
} else { } else {
$rtl_tag = ""; $rtl_tag = "";
} }
} else {
$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\">
<script type=\"text/javascript\" src=\"functions.js\"></script> <script type=\"text/javascript\" src=\"functions.js\"></script>