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']; $display_resharer = (bool)$request['display_resharer'];
$stay_local = (bool)$request['stay_local']; $stay_local = (bool)$request['stay_local'];
$show_page_drop = (bool)$request['show_page_drop']; $show_page_drop = (bool)$request['show_page_drop'];
$preview_mode = (bool)$request['preview_mode']; $preview_mode = (int)$request['preview_mode'];
$browser_update = (bool)$request['browser_update']; $browser_update = (int)$request['browser_update'];
if ($browser_update != -1) { if ($browser_update != -1) {
$browser_update = $browser_update * 1000; $browser_update = $browser_update * 1000;
if ($browser_update < 10000) { if ($browser_update < 10000) {