summaryrefslogtreecommitdiff
path: root/plugins/instances/init.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-04-27 00:24:29 +0300
committerAndrew Dolgov <[email protected]>2017-04-27 00:24:29 +0300
commit7f4a24f8681f35d25077524692ba2236583cb732 (patch)
tree41dcc1cc2d3859ad1d8d1fd60b6138c9b520454a /plugins/instances/init.php
parent891df346377be014bbad14c229421d92cfd332ea (diff)
parentc2744831cd319fb967a83dc643bdb8b25f6c0b02 (diff)
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'plugins/instances/init.php')
-rw-r--r--plugins/instances/init.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/plugins/instances/init.php b/plugins/instances/init.php
index 643475dca..7b65d6d4a 100644
--- a/plugins/instances/init.php
+++ b/plugins/instances/init.php
@@ -25,6 +25,9 @@ class Instances extends Plugin implements IHandler {
$host->add_hook($host::HOOK_UPDATE_TASK, $this);
}
+ /**
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ */
function hook_update_task($args) {
_debug("Get linked feeds...");
$this->get_linked_feeds();
@@ -134,6 +137,9 @@ class Instances extends Plugin implements IHandler {
return file_get_contents(dirname(__FILE__) . "/instances.js");
}
+ /**
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ */
function hook_prefs_tabs($args) {
if ($_SESSION["access_level"] >= 10 || SINGLE_USER_MODE) {
?><div id="instanceConfigTab" dojoType="dijit.layout.ContentPane"
@@ -148,6 +154,9 @@ class Instances extends Plugin implements IHandler {
return array_search($method, $csrf_ignored) !== false;
}
+ /**
+ * @SuppressWarnings(PHPMD.UnusedFormalParameter)
+ */
function before($method) {
if ($_SESSION["uid"]) {
if ($_SESSION["access_level"] < 10) {
@@ -171,7 +180,7 @@ class Instances extends Plugin implements IHandler {
}
function add() {
- $id = db_escape_string($_REQUEST["id"]);
+ //$id = db_escape_string($_REQUEST["id"]);
$access_url = db_escape_string($_REQUEST["access_url"]);
$access_key = db_escape_string($_REQUEST["access_key"]);
@@ -449,4 +458,3 @@ class Instances extends Plugin implements IHandler {
}
}
-?>