Merge pull request #13651 from annando/picture-upload
Fix the preview mode setting
This commit is contained in:
commit
dcd47c391c
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue