small fix for base image
This commit is contained in:
parent
4ed005b063
commit
46c67cc0ab
|
@ -27,6 +27,7 @@ class AdBannersController < ApplicationController
|
||||||
"target" => target
|
"target" => target
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
base_image = adbanner.base_image.nil? ? 1 : adbanner.base_image
|
||||||
{
|
{
|
||||||
"extras" => {
|
"extras" => {
|
||||||
"ad_fx" => adbanner.ad_fx,
|
"ad_fx" => adbanner.ad_fx,
|
||||||
|
@ -34,7 +35,7 @@ class AdBannersController < ApplicationController
|
||||||
"title" => adbanner.title,
|
"title" => adbanner.title,
|
||||||
"banner-height" => adbanner.height,
|
"banner-height" => adbanner.height,
|
||||||
"banner-width" => adbanner.width,
|
"banner-width" => adbanner.width,
|
||||||
"base_image" => (adbanner.base_image - 1),
|
"base_image" => (base_image - 1),
|
||||||
"timeout" => (adbanner.timeout * 1000),
|
"timeout" => (adbanner.timeout * 1000),
|
||||||
"more" => "More"
|
"more" => "More"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue