summaryrefslogtreecommitdiff
path: root/opml.php
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 /opml.php
parentaca75cb5cb323535099c7aef46a78ea3cec082f2 (diff)
remove $link
Diffstat (limited to 'opml.php')
-rw-r--r--opml.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/opml.php b/opml.php
index 709cfd4cc..c8fbf1c39 100644
--- a/opml.php
+++ b/opml.php
@@ -12,21 +12,21 @@
$link = db_connect(DB_HOST, DB_USER, DB_PASS, DB_NAME);
- if (!init_plugins($link)) return;
+ if (!init_plugins()) return;
$op = $_REQUEST['op'];
if ($op == "publish"){
- $key = db_escape_string($link, $_REQUEST["key"]);
+ $key = db_escape_string( $_REQUEST["key"]);
- $result = db_query($link, "SELECT owner_uid
+ $result = db_query( "SELECT owner_uid
FROM ttrss_access_keys WHERE
access_key = '$key' AND feed_id = 'OPML:Publish'");
if (db_num_rows($result) == 1) {
$owner_uid = db_fetch_result($result, 0, "owner_uid");
- $opml = new Opml($link, $_REQUEST);
+ $opml = new Opml( $_REQUEST);
$opml->opml_export("", $owner_uid, true, false);
} else {
@@ -34,6 +34,6 @@
}
}
- db_close($link);
+ db_close();
?>