From 6322ac79a020ab584d412d782d62b2ee77d7c6cf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 17 Apr 2013 16:23:15 +0400 Subject: remove $link --- plugins/mailto/init.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/mailto/init.php') diff --git a/plugins/mailto/init.php b/plugins/mailto/init.php index 6c7478b68..81b2758b8 100644 --- a/plugins/mailto/init.php +++ b/plugins/mailto/init.php @@ -1,7 +1,5 @@ link = $host->get_link(); $this->host = $host; $host->add_hook($host::HOOK_ARTICLE_BUTTON, $this); @@ -30,7 +27,7 @@ class MailTo extends Plugin { function emailArticle() { - $param = db_escape_string($this->link, $_REQUEST['param']); + $param = db_escape_string( $_REQUEST['param']); require_once "lib/MiniTemplator.class.php"; @@ -44,7 +41,7 @@ class MailTo extends Plugin { $tpl->setVariable('TTRSS_HOST', $_SERVER["HTTP_HOST"], true); - $result = db_query($this->link, "SELECT link, content, title + $result = db_query( "SELECT link, content, title FROM ttrss_user_entries, ttrss_entries WHERE id = ref_id AND id IN ($param) AND owner_uid = " . $_SESSION["uid"]); -- cgit v1.2.3-54-g00ecf