]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Fix parameter order which was preventing max_dl parameter to work properly
authorArthurHoaro <arthur@hoa.ro>
Tue, 1 May 2018 14:40:08 +0000 (16:40 +0200)
committerArthurHoaro <arthur@hoa.ro>
Tue, 1 May 2018 14:40:08 +0000 (16:40 +0200)
index.php

index dbc2bb3b2f37336f06de4c9d1287c15bd059dad0..2fe3f8215f659683cf96ed1e403089a1775aad62 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1376,8 +1376,8 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager,
                 // The callback will fill $charset and $title with data from the downloaded page.
                 get_http_response(
                     $url,
-                    $conf->get('general.download_max_size', 4194304),
                     $conf->get('general.download_timeout', 30),
+                    $conf->get('general.download_max_size', 4194304),
                     get_curl_download_callback($charset, $title)
                 );
                 if (! empty($title) && strtolower($charset) != 'utf-8') {