mirror of
https://github.com/FreshRSS/FreshRSS.git
synced 2026-04-29 02:34:05 -04:00
Test if set_time_limit exists (#5675)
* Fix @set_time_limit as @-operator after PHP8 no longer suppresses disabled functions * preserve @ decorator * Fix whitespace --------- Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
This commit is contained in:
@@ -169,7 +169,9 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController {
|
||||
Minz_Request::forward($url_redirect, true);
|
||||
}
|
||||
|
||||
@set_time_limit(300);
|
||||
if (function_exists('set_time_limit')) {
|
||||
@set_time_limit(300);
|
||||
}
|
||||
|
||||
$databaseDAO = FreshRSS_Factory::createDatabaseDAO();
|
||||
$databaseDAO->optimize();
|
||||
@@ -188,7 +190,9 @@ class FreshRSS_entry_Controller extends FreshRSS_ActionController {
|
||||
* @todo should be in feedController
|
||||
*/
|
||||
public function purgeAction(): void {
|
||||
@set_time_limit(300);
|
||||
if (function_exists('set_time_limit')) {
|
||||
@set_time_limit(300);
|
||||
}
|
||||
|
||||
$feedDAO = FreshRSS_Factory::createFeedDao();
|
||||
$feeds = $feedDAO->listFeeds();
|
||||
|
||||
Reference in New Issue
Block a user