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