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:
@@ -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"];
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user