Skip to content

Commit d2685d3

Browse files
authored
Merge pull request dokuwiki#4381 from dokuwiki/bot/autofix
🤖 Automatic code style fixes
2 parents 9520a43 + 811d6ef commit d2685d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plugins/extension/Installer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public function downloadArchive($url)
293293

294294
// large downloads may take a while on slow connections, so we try to extend the timeout to 4 minutes
295295
// 4 minutes was chosen, because HTTP servers and proxies often have a 5 minute timeout
296-
if (php_sapi_name() === 'cli' || @set_time_limit(60 * 4)) {
296+
if (PHP_SAPI === 'cli' || @set_time_limit(60 * 4)) {
297297
$http->timeout = 60 * 4 - 5; // nearly 4 minutes
298298
} else {
299299
$http->timeout = 25; // max. 25 sec (a bit less than default execution time)

0 commit comments

Comments
 (0)