aboutsummaryrefslogtreecommitdiff
path: root/plugins/af_psql_trgm
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/af_psql_trgm')
-rw-r--r--plugins/af_psql_trgm/init.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/af_psql_trgm/init.php b/plugins/af_psql_trgm/init.php
index dbc99cfe4..20e3981ce 100644
--- a/plugins/af_psql_trgm/init.php
+++ b/plugins/af_psql_trgm/init.php
@@ -98,7 +98,7 @@ class Af_Psql_Trgm extends Plugin {
print "</div>";
- print "<div style='text-align : right' class='text-muted'>" . smart_date_time(strtotime($line["updated"])) . "</div>";
+ print "<div style='text-align : right' class='text-muted'>" . TimeHelper::smart_date_time(strtotime($line["updated"])) . "</div>";
print "</li>";
}
@@ -123,7 +123,7 @@ class Af_Psql_Trgm extends Plugin {
function hook_prefs_tab($args) {
if ($args != "prefFeeds") return;
- print "<div dojoType=\"dijit.layout.AccordionPane\"
+ print "<div dojoType=\"dijit.layout.AccordionPane\"
title=\"<i class='material-icons'>extension</i> ".__('Mark similar articles as read')."\">";
if (DB_TYPE != "pgsql") {
@@ -228,7 +228,7 @@ class Af_Psql_Trgm extends Plugin {
if (!array($enabled_feeds)) $enabled_feeds = array();
$key = array_search($feed_id, $enabled_feeds);
- $checked = $key !== FALSE ? "checked" : "";
+ $checked = $key !== false ? "checked" : "";
print "<fieldset>";
@@ -248,11 +248,11 @@ class Af_Psql_Trgm extends Plugin {
$key = array_search($feed_id, $enabled_feeds);
if ($enable) {
- if ($key === FALSE) {
+ if ($key === false) {
array_push($enabled_feeds, $feed_id);
}
} else {
- if ($key !== FALSE) {
+ if ($key !== false) {
unset($enabled_feeds[$key]);
}
}
@@ -272,7 +272,7 @@ class Af_Psql_Trgm extends Plugin {
if (!$enable_globally) {
$enabled_feeds = $this->host->get($this, "enabled_feeds");
$key = array_search($article["feed"]["id"], $enabled_feeds);
- if ($key === FALSE) return $article;
+ if ($key === false) return $article;
}
$similarity = (float) $this->host->get($this, "similarity");