1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 05:45:56 +00:00

main classes: remove sql_bool_to_bool() kludge

This commit is contained in:
Andrew Dolgov
2017-12-03 09:35:59 +03:00
parent 8ff3cbb32e
commit 187abfe732
7 changed files with 30 additions and 38 deletions

View File

@@ -8,6 +8,8 @@ class Article extends Handler_Protected {
}
function redirect() {
$id = $_REQUEST['id'];
$sth = $this->pdo->prepare("SELECT link FROM ttrss_entries, ttrss_user_entries
WHERE id = ? AND id = ref_id AND owner_uid = ?
LIMIT 1");
@@ -601,7 +603,7 @@ class Article extends Handler_Protected {
unset($line["tag_cache"]);
$line["content"] = sanitize($line["content"],
sql_bool_to_bool($line['hide_images']),
$line['hide_images'],
$owner_uid, $line["site_url"], false, $line["id"]);
foreach (PluginHost::getInstance()->get_hooks(PluginHost::HOOK_RENDER_ARTICLE) as $p) {
@@ -754,9 +756,9 @@ class Article extends Handler_Protected {
if (!$zoom_mode) {
$rv['content'] .= Article::format_article_enclosures($id,
sql_bool_to_bool($line["always_display_enclosures"]),
$line["always_display_enclosures"],
$line["content"],
sql_bool_to_bool($line["hide_images"]));
$line["hide_images"]);
}
$rv['content'] .= "</div>";