aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Daemon/Queue.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2023-02-12 14:13:59 +0000
committerMario <mario@mariovavti.com>2023-02-12 14:13:59 +0000
commit2c459fefceb5208bba91a3acd64644fb65c78274 (patch)
tree1b09df3285cbcd07350791348ea4063fb1d715c3 /Zotlabs/Daemon/Queue.php
parenta1eb39872ba5017be218d48f319addf3d40ff05d (diff)
downloadvolse-hubzilla-2c459fefceb5208bba91a3acd64644fb65c78274.tar.gz
volse-hubzilla-2c459fefceb5208bba91a3acd64644fb65c78274.tar.bz2
volse-hubzilla-2c459fefceb5208bba91a3acd64644fb65c78274.zip
remove deprecated functions
Diffstat (limited to 'Zotlabs/Daemon/Queue.php')
-rw-r--r--Zotlabs/Daemon/Queue.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Daemon/Queue.php b/Zotlabs/Daemon/Queue.php
index 30f474a5c..6f7f8abac 100644
--- a/Zotlabs/Daemon/Queue.php
+++ b/Zotlabs/Daemon/Queue.php
@@ -22,7 +22,7 @@ class Queue {
if ($oldqItems) {
foreach ($oldqItems as $qItem) {
$h = parse_url($qItem['outq_posturl']);
- $site_url = $h['scheme'] . '://' . $h['host'] . (($h['port']) ? ':' . $h['port'] : '');
+ $site_url = $h['scheme'] . '://' . $h['host'] . ((!empty($h['port'])) ? ':' . $h['port'] : '');
q("update site set site_dead = 1 where site_dead = 0 and site_url = '%s' and site_update < %s - INTERVAL %s",
dbesc($site_url),
db_utcnow(),
@@ -44,7 +44,7 @@ class Queue {
dbesc($queue_id)
);
logger('queue deliver: ' . $qItems[0]['outq_hash'] . ' to ' . $qItems[0]['outq_posturl'], LOGGER_DEBUG);
- LibQueue\Queue::deliver($qItems[0]);
+ LibQueue::deliver($qItems[0]);
}
else {
$qItems = q("SELECT * FROM outq WHERE outq_delivered = 0 and outq_scheduled < %s ",