1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-23 05:51:28 +00:00

remove $link

This commit is contained in:
Andrew Dolgov
2013-04-17 16:23:15 +04:00
parent aca75cb5cb
commit 6322ac79a0
80 changed files with 1624 additions and 1727 deletions

View File

@@ -1,10 +1,8 @@
<?php
class Embed_Original extends Plugin {
private $link;
private $host;
function init($host) {
$this->link = $host->get_link();
$this->host = $host;
$host->add_hook($host::HOOK_ARTICLE_BUTTON, $this);
@@ -36,9 +34,9 @@ class Embed_Original extends Plugin {
}
function getUrl() {
$id = db_escape_string($this->link, $_REQUEST['id']);
$id = db_escape_string( $_REQUEST['id']);
$result = db_query($this->link, "SELECT link
$result = db_query( "SELECT link
FROM ttrss_entries, ttrss_user_entries
WHERE id = '$id' AND ref_id = id AND owner_uid = " .$_SESSION['uid']);