Merge pull request #13651 from annando/picture-upload

Fix the preview mode setting
This commit is contained in:
Hypolite Petovan 2023-11-18 11:26:29 -05:00 committed by GitHub
commit dcd47c391c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,8 +108,8 @@ class Display extends BaseSettings
$display_resharer = (bool)$request['display_resharer'];
$stay_local = (bool)$request['stay_local'];
$show_page_drop = (bool)$request['show_page_drop'];
$preview_mode = (bool)$request['preview_mode'];
$browser_update = (bool)$request['browser_update'];
$preview_mode = (int)$request['preview_mode'];
$browser_update = (int)$request['browser_update'];
if ($browser_update != -1) {
$browser_update = $browser_update * 1000;
if ($browser_update < 10000) {