Skip to content

Commit

Permalink
+ Domain registration and expiration warnings
Browse files Browse the repository at this point in the history
Fix domain validation check

Close gh-808

Signed-off-by: Nicholas K. Dionysopoulos <nicholas@akeeba.com>
  • Loading branch information
nikosdion committed Sep 16, 2024
1 parent 14a4fac commit 64e3acc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions src/Model/Site.php
Original file line number Diff line number Diff line change
Expand Up @@ -1329,7 +1329,7 @@ public function getDomainValidityStatus(): int

try
{
$created = empty($created) ? null : new DateTime($created);
$created = empty($created) ? null : new DateTime('@' . $created);
}
catch (\Throwable)
{
Expand All @@ -1338,7 +1338,7 @@ public function getDomainValidityStatus(): int

try
{
$expires = empty($expires) ? null : new DateTime($expires);
$expires = empty($expires) ? null : new DateTime('@' . $expires);
}
catch (\Throwable)
{
Expand Down
8 changes: 0 additions & 8 deletions src/Task/DomainExpiration.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,14 +166,6 @@ private function getSiteIDs(int $limitStart, int $limit, bool $force, mixed $fil
{
$db = $this->getContainer()->db;

/**
* SELECT `id`
* FROM #__sites
* WHERE
* JSON_EXTRACT(config, '$.ssl.validTo') IS NOT NULL
* AND
* DATE_SUB(JSON_EXTRACT(config, '$.ssl.validTo'), INTERVAL CAST(IFNULL(JSON_EXTRACT(config, '$.config.ssl.warning'), 7) AS UNSIGNED) DAY) <= NOW()
*/
$query = $db->getQuery(true)
->select($db->quoteName('id'))
->from($db->quoteName('#__sites'))
Expand Down

0 comments on commit 64e3acc

Please sign in to comment.