diff options
Diffstat (limited to '')
-rw-r--r-- | include/derivative_params.inc.php | 4 | ||||
-rw-r--r-- | include/page_tail.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/include/derivative_params.inc.php b/include/derivative_params.inc.php index dc19d1df7..b0090cafa 100644 --- a/include/derivative_params.inc.php +++ b/include/derivative_params.inc.php @@ -209,11 +209,11 @@ final class SizingParams if ($ratio_w > $ratio_h) { $scale_size[0] = $this->ideal_size[0]; - $scale_size[1] = floor($scale_size[1] / $ratio_w); + $scale_size[1] = floor(1e-6 + $scale_size[1] / $ratio_w); } else { - $scale_size[0] = floor($scale_size[0] / $ratio_h); + $scale_size[0] = floor(1e-6 + $scale_size[0] / $ratio_h); $scale_size[1] = $this->ideal_size[1]; } } diff --git a/include/page_tail.php b/include/page_tail.php index 14c6391fb..a24176da5 100644 --- a/include/page_tail.php +++ b/include/page_tail.php @@ -66,7 +66,7 @@ if ($conf['show_gt']) $template->assign('debug', $debug_vars ); //------------------------------------------------------------- mobile version -if (get_device() != 'desktop') +if ( !empty($conf['mobile_theme']) && get_device() != 'desktop') { $template->assign('TOGGLE_MOBILE_THEME_URL', add_url_params( |