remove deprecated LOG_ constants
This commit is contained in:
parent
7aeaa1b039
commit
6971ca08b2
|
@ -718,7 +718,7 @@ class Feeds extends Handler_Protected {
|
|||
<fieldset>
|
||||
<label>
|
||||
<?= \Controls\select_hash("xdebug", $xdebug,
|
||||
[Debug::$LOG_VERBOSE => "LOG_VERBOSE", Debug::$LOG_EXTENDED => "LOG_EXTENDED"]);
|
||||
[Debug::LOG_VERBOSE => "LOG_VERBOSE", Debug::LOG_EXTENDED => "LOG_EXTENDED"]);
|
||||
?></label>
|
||||
</fieldset>
|
||||
|
||||
|
@ -2134,7 +2134,7 @@ class Feeds extends Handler_Protected {
|
|||
$owner_uid = $row["owner_uid"];
|
||||
|
||||
if (Config::get(Config::FORCE_ARTICLE_PURGE) != 0) {
|
||||
Debug::log("purge_feed: FORCE_ARTICLE_PURGE is set, overriding interval to " . Config::get(Config::FORCE_ARTICLE_PURGE), Debug::$LOG_VERBOSE);
|
||||
Debug::log("purge_feed: FORCE_ARTICLE_PURGE is set, overriding interval to " . Config::get(Config::FORCE_ARTICLE_PURGE), Debug::LOG_VERBOSE);
|
||||
$purge_unread = true;
|
||||
$purge_interval = Config::get(Config::FORCE_ARTICLE_PURGE);
|
||||
} else {
|
||||
|
@ -2143,10 +2143,10 @@ class Feeds extends Handler_Protected {
|
|||
|
||||
$purge_interval = (int) $purge_interval;
|
||||
|
||||
Debug::log("purge_feed: interval $purge_interval days for feed $feed_id, owner: $owner_uid, purge unread: $purge_unread", Debug::$LOG_VERBOSE);
|
||||
Debug::log("purge_feed: interval $purge_interval days for feed $feed_id, owner: $owner_uid, purge unread: $purge_unread", Debug::LOG_VERBOSE);
|
||||
|
||||
if ($purge_interval <= 0) {
|
||||
Debug::log("purge_feed: purging disabled for this feed, nothing to do.", Debug::$LOG_VERBOSE);
|
||||
Debug::log("purge_feed: purging disabled for this feed, nothing to do.", Debug::LOG_VERBOSE);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
@ -2179,10 +2179,10 @@ class Feeds extends Handler_Protected {
|
|||
|
||||
$rows_deleted = $sth->rowCount();
|
||||
|
||||
Debug::log("purge_feed: deleted $rows_deleted articles.", Debug::$LOG_VERBOSE);
|
||||
Debug::log("purge_feed: deleted $rows_deleted articles.", Debug::LOG_VERBOSE);
|
||||
|
||||
} else {
|
||||
Debug::log("purge_feed: owner of $feed_id not found", Debug::$LOG_VERBOSE);
|
||||
Debug::log("purge_feed: owner of $feed_id not found", Debug::LOG_VERBOSE);
|
||||
}
|
||||
|
||||
return $rows_deleted;
|
||||
|
|
Loading…
Reference in New Issue