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

normalize some mismatching hook function definitions to match base Plugin class

This commit is contained in:
Andrew Dolgov
2021-11-14 11:11:49 +03:00
parent 81a10f69bc
commit 0a2dcacbcf
7 changed files with 33 additions and 16 deletions

View File

@@ -18,7 +18,7 @@ class Af_Youtube_Embed extends Plugin {
"youtu.be"]);
}
function hook_render_enclosure($entry, $hide_images) {
function hook_render_enclosure($entry, $id, $rv) {
$url = $entry["content_url"];

View File

@@ -29,7 +29,7 @@ class Auth_Remote extends Auth_Base {
return "";
}
function authenticate($login, $password) {
function authenticate($login, $password, $service = '') {
$try_login = "";
foreach (["REMOTE_USER", "HTTP_REMOTE_USER", "REDIRECT_REMOTE_USER", "PHP_AUTH_USER"] as $hdr) {

View File

@@ -97,7 +97,7 @@ class Cache_Starred_Images extends Plugin {
}
}
function hook_enclosure_entry($enc, $article_id) {
function hook_enclosure_entry($enc, $article_id, $rv) {
$local_filename = $article_id . "-" . sha1($enc["content_url"]);
if ($this->cache->exists($local_filename)) {

View File

@@ -11,7 +11,7 @@ class No_Iframes extends Plugin {
$host->add_hook($host::HOOK_SANITIZE, $this);
}
function hook_sanitize($doc, $site_url, $allowed_elements, $disallowed_attributes) {
function hook_sanitize($doc, $site_url, $allowed_elements, $disallowed_attributes, $article_id) {
$xpath = new DOMXpath($doc);
$entries = $xpath->query('//iframe');