1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 17:25:57 +00:00

Changes to add a new hook: HOOK_QUERY_HEADLINES. An example is provided.

This commit is contained in:
justauser
2013-06-27 11:18:23 -04:00
parent b584460302
commit 891e36f57e
8 changed files with 101 additions and 25 deletions

View File

@@ -71,7 +71,6 @@
"hu_HU" => "Magyar (Hungarian)",
"it_IT" => "Italiano",
"ja_JP" => "日本語 (Japanese)",
"ko_KR" => "한국어 (Korean)",
"lv_LV" => "Latviešu",
"nb_NO" => "Norwegian bokmål",
"nl_NL" => "Dutch",
@@ -1059,7 +1058,7 @@
$date_qpart = "date_entered < DATE_SUB(NOW(), INTERVAL 1 WEEK) ";
}
break;
case "2week":
case "2weeks":
if (DB_TYPE == "pgsql") {
$date_qpart = "date_entered < NOW() - INTERVAL '2 week' ";
} else {
@@ -2579,7 +2578,7 @@
}
}
$content_query_part = "content as content_preview, cached_content, ";
$content_query_part = "content, content AS content_preview, cached_content, ";
if (is_numeric($feed)) {
@@ -2750,13 +2749,10 @@
if ($site_url) {
if ($entry->hasAttribute('href')) {
if ($entry->hasAttribute('href'))
$entry->setAttribute('href',
rewrite_relative_url($site_url, $entry->getAttribute('href')));
$entry->setAttribute('rel', 'noreferrer');
}
if ($entry->hasAttribute('src')) {
$src = rewrite_relative_url($site_url, $entry->getAttribute('src'));