Commit ca74d39c authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1468144 - fixing issues with gallery and locale"

parents 8c88e64b 96e86d13
......@@ -43,6 +43,7 @@ class PluginBlocktypeGallery extends PluginBlocktype {
$style = isset($configdata['style']) ? intval($configdata['style']) : 2;
$copyright = null; // Needed to set Panoramio copyright later...
$width = !empty($configdata['width']) ? $configdata['width'] : 75;
$width = floor($width);
switch ($style) {
case 0: // thumbnails
$template = 'thumbnails';
......@@ -376,7 +377,7 @@ class PluginBlocktypeGallery extends PluginBlocktype {
$ratiowidth = $ratiowidth < 16 ? 16 : $ratiowidth;
$ratioheight = $ratioheight < 16 ? 16 : $ratioheight;
$topoffset = (($configwidth - $ratioheight) / 2);
$topoffset = floor(($configwidth - $ratioheight) / 2);
$src .= '&size=' . $ratiowidth . 'x' . $ratioheight;
$height = $ratioheight;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment