1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-24 02:31:29 +00:00

plugins: load dialogs via xhr instead of http

This commit is contained in:
Andrew Dolgov
2021-02-17 14:56:36 +03:00
parent 4632d6cf55
commit 2b2833bb4f
7 changed files with 49 additions and 55 deletions

View File

@@ -27,17 +27,17 @@ class Note extends Plugin {
}
function edit() {
$param = $_REQUEST['param'];
$id = clean($_REQUEST['id']);
$sth = $this->pdo->prepare("SELECT note FROM ttrss_user_entries WHERE
ref_id = ? AND owner_uid = ?");
$sth->execute([$param, $_SESSION['uid']]);
$sth->execute([$id, $_SESSION['uid']]);
if ($row = $sth->fetch()) {
$note = $row['note'];
print \Controls\hidden_tag("id", "$param");
print \Controls\hidden_tag("id", $id);
print \Controls\hidden_tag("op", "pluginhandler");
print \Controls\hidden_tag("method", "setNote");
print \Controls\hidden_tag("plugin", "note");