aboutsummaryrefslogtreecommitdiff
path: root/app/Services
diff options
context:
space:
mode:
authorGravatar Alexandre Alapetite <alexandre@alapetite.fr> 2023-03-28 14:24:36 +0200
committerGravatar GitHub <noreply@github.com> 2023-03-28 14:24:36 +0200
commitab49ee6c0c6a969cca447b68500b8faf052f362e (patch)
tree8df65bf4e5d90ff8149bf1ae53ffad38558c3c64 /app/Services
parentac3dd96f48d2e95b5fd143ab0ca5606c36283c55 (diff)
Increase time limit import OPML (#5231)
Importing an OPML file can take a long time. While waiting for a better way to customize, let's give it more time, like other slow functions
Diffstat (limited to 'app/Services')
-rw-r--r--app/Services/ImportService.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/Services/ImportService.php b/app/Services/ImportService.php
index 55aa28679..6f6ca13ac 100644
--- a/app/Services/ImportService.php
+++ b/app/Services/ImportService.php
@@ -36,6 +36,7 @@ class FreshRSS_Import_Service {
* @param boolean $dry_run true to not create categories and feeds in database.
*/
public function importOpml(string $opml_file, $forced_category = null, $dry_run = false) {
+ @set_time_limit(300);
$this->lastStatus = true;
$opml_array = array();
try {