summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
Diffstat (limited to 'classes')
-rwxr-xr-xclasses/article.php4
-rw-r--r--classes/backend.php2
-rwxr-xr-xclasses/feeds.php4
-rwxr-xr-xclasses/pluginhost.php4
-rw-r--r--classes/pref/prefs.php2
-rwxr-xr-xclasses/rssutils.php2
-rw-r--r--classes/templator.php2
7 files changed, 10 insertions, 10 deletions
diff --git a/classes/article.php b/classes/article.php
index b189c663b..c94b69615 100755
--- a/classes/article.php
+++ b/classes/article.php
@@ -54,7 +54,7 @@ class Article extends Handler_Protected {
if (!$title) $title = $url;
if (!$title && !$url) return false;
- if (filter_var($url, FILTER_VALIDATE_URL) === FALSE) return false;
+ if (filter_var($url, FILTER_VALIDATE_URL) === false) return false;
$pdo = Db::pdo();
@@ -757,7 +757,7 @@ class Article extends Handler_Protected {
if (!$article_image)
foreach ($enclosures as $enc) {
- if (strpos($enc["content_type"], "image/") !== FALSE) {
+ if (strpos($enc["content_type"], "image/") !== false) {
$article_image = $enc["content_url"];
break;
}
diff --git a/classes/backend.php b/classes/backend.php
index dad40a269..27abfbf5f 100644
--- a/classes/backend.php
+++ b/classes/backend.php
@@ -42,7 +42,7 @@ class Backend extends Handler_Protected {
if (is_array($omap[$action])) {
foreach ($omap[$action] as $sequence) {
- if (strpos($sequence, "|") !== FALSE) {
+ if (strpos($sequence, "|") !== false) {
$sequence = substr($sequence,
strpos($sequence, "|")+1,
strlen($sequence));
diff --git a/classes/feeds.php b/classes/feeds.php
index 9c04ba137..4714e4c9a 100755
--- a/classes/feeds.php
+++ b/classes/feeds.php
@@ -210,7 +210,7 @@ class Feeds extends Handler_Protected {
$feed_title = $qfh_ret[1];
$feed_site_url = $qfh_ret[2];
$last_error = $qfh_ret[3];
- $last_updated = strpos($qfh_ret[4], '1970-') === FALSE ?
+ $last_updated = strpos($qfh_ret[4], '1970-') === false ?
make_local_datetime($qfh_ret[4], false) : __("Never");
$highlight_words = $qfh_ret[5];
$reply['first_id'] = $qfh_ret[6];
@@ -1142,7 +1142,7 @@ class Feeds extends Handler_Protected {
return array("code" => 5, "message" => $fetch_last_error);
}
- if (mb_strpos($fetch_last_content_type, "html") !== FALSE && Feeds::is_html($contents)) {
+ if (mb_strpos($fetch_last_content_type, "html") !== false && Feeds::is_html($contents)) {
$feedUrls = Feeds::get_feeds_from_html($url, $contents);
if (count($feedUrls) == 0) {
diff --git a/classes/pluginhost.php b/classes/pluginhost.php
index c6c036783..acccea5db 100755
--- a/classes/pluginhost.php
+++ b/classes/pluginhost.php
@@ -155,7 +155,7 @@ class PluginHost {
foreach (array_keys($this->hooks[$type]) as $prio) {
$key = array_search($sender, $this->hooks[$type][$prio]);
- if ($key !== FALSE) {
+ if ($key !== false) {
unset($this->hooks[$type][$prio][$key]);
}
}
@@ -218,7 +218,7 @@ class PluginHost {
if (file_exists($vendor_dir)) {
spl_autoload_register(function($class) use ($vendor_dir) {
- if (strpos($class, '\\') !== FALSE) {
+ if (strpos($class, '\\') !== false) {
list ($namespace, $class_name) = explode('\\', $class, 2);
if ($namespace && $class_name) {
diff --git a/classes/pref/prefs.php b/classes/pref/prefs.php
index 7b458fad7..25aac9964 100644
--- a/classes/pref/prefs.php
+++ b/classes/pref/prefs.php
@@ -866,7 +866,7 @@ class Pref_Prefs extends Handler_Protected {
PluginHost::getInstance()->get_hooks(PluginHost::HOOK_FETCH_FEED));
$feed_handlers = array_filter($feed_handlers, function($plugin) use ($feed_handler_whitelist) {
- return in_array(get_class($plugin), $feed_handler_whitelist) === FALSE; });
+ return in_array(get_class($plugin), $feed_handler_whitelist) === false; });
if (count($feed_handlers) > 0) {
print_error(
diff --git a/classes/rssutils.php b/classes/rssutils.php
index 78825c46d..a0acd986e 100755
--- a/classes/rssutils.php
+++ b/classes/rssutils.php
@@ -148,7 +148,7 @@ class RSSUtils {
if ($tline = $usth->fetch()) {
Debug::log(" => " . $tline["last_updated"] . ", " . $tline["id"] . " " . $tline["owner_uid"]);
- if (array_search($tline["owner_uid"], $batch_owners) === FALSE)
+ if (array_search($tline["owner_uid"], $batch_owners) === false)
array_push($batch_owners, $tline["owner_uid"]);
$fstarted = microtime(true);
diff --git a/classes/templator.php b/classes/templator.php
index 3d270f837..b682f8b82 100644
--- a/classes/templator.php
+++ b/classes/templator.php
@@ -5,7 +5,7 @@ class Templator extends MiniTemplator {
/* this reads tt-rss template from templates.local/ or templates/ if only base filename is given */
function readTemplateFromFile ($fileName) {
- if (strpos($fileName, "/") === FALSE) {
+ if (strpos($fileName, "/") === false) {
$fileName = basename($fileName);