mirror of
https://github.com/friendica/friendica
synced 2025-04-20 17:10:10 +00:00
Merge pull request #12479 from MrPetovan/bug/deprecated
Fix several Deprecated notices
This commit is contained in:
commit
c9f92f41fb
5 changed files with 14 additions and 9 deletions
|
@ -388,10 +388,6 @@ class Site extends BaseAdmin
|
|||
/* Banner */
|
||||
$banner = DI::config()->get('system', 'banner');
|
||||
|
||||
if ($banner == false) {
|
||||
$banner = '<a href="https://friendi.ca"><img id="logo-img" width="32" height="32" src="images/friendica.svg" alt="logo" /></a><span id="logo-text"><a href="https://friendi.ca">Friendica</a></span>';
|
||||
}
|
||||
|
||||
$email_banner = DI::config()->get('system', 'email_banner');
|
||||
|
||||
if ($email_banner == false) {
|
||||
|
|
|
@ -59,9 +59,9 @@ class Display extends DisplayModule
|
|||
$parentUriId = $item['parent-uri-id'];
|
||||
|
||||
if (empty($force)) {
|
||||
$browserUpdate = $this->pConfig->get($profileUid, 'system', 'update_interval');
|
||||
if (!empty($browserUpdate)) {
|
||||
$updateDate = date(DateTimeFormat::MYSQL, time() - (intval($browserUpdate) / 500));
|
||||
$browserUpdate = intval($this->pConfig->get($profileUid, 'system', 'update_interval') ?? 40000);
|
||||
if ($browserUpdate >= 1000) {
|
||||
$updateDate = date(DateTimeFormat::MYSQL, time() - ($browserUpdate * 2 / 1000));
|
||||
if (!Post::exists([
|
||||
"`parent-uri-id` = ? AND `uid` IN (?, ?) AND `received` > ?",
|
||||
$parentUriId, 0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue