summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-11-10 21:06:42 +0300
committerAndrew Dolgov <[email protected]>2021-11-10 21:06:42 +0300
commitf9e574701b89270b2be1606119a9d4aed46b6113 (patch)
tree26755227f747bc199378ddb1febe36250293220a
parentaa0de81680f2558c1ce38a456ad0a5beb2934240 (diff)
phpstan 1.0 cleanup
-rw-r--r--init.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/init.php b/init.php
index 93c3e28..a77ddff 100644
--- a/init.php
+++ b/init.php
@@ -1,6 +1,5 @@
<?php
class UI_Gravatar extends Plugin {
- private $host;
private $gravatar_hash = "";
function about() {
@@ -12,16 +11,12 @@ class UI_Gravatar extends Plugin {
}
function init($host) {
- $this->host = $host;
-
$sth = $this->pdo->prepare("SELECT email FROM ttrss_users WHERE id = ?");
$sth->execute([($_SESSION['uid'] ?? 0)]);
if ($row = $sth->fetch()) {
$this->gravatar_hash = md5(trim($row['email']));
}
-
- //$host->add_hook($host::HOOK_PREFS_TAB, $this);
}
function get_js() {