summaryrefslogtreecommitdiff
path: root/plugins/mailto
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2013-04-17 16:23:15 +0400
committerAndrew Dolgov <[email protected]>2013-04-17 16:48:41 +0400
commit6322ac79a020ab584d412d782d62b2ee77d7c6cf (patch)
treeb2e64a140a3bc9d9ce649ee67f8a687b6511d9f4 /plugins/mailto
parentaca75cb5cb323535099c7aef46a78ea3cec082f2 (diff)
remove $link
Diffstat (limited to 'plugins/mailto')
-rw-r--r--plugins/mailto/init.php7
1 files changed, 2 insertions, 5 deletions
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 @@
<?php
class MailTo extends Plugin {
-
- private $link;
private $host;
function about() {
@@ -11,7 +9,6 @@ class MailTo extends Plugin {
}
function init($host) {
- $this->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"]);