using an action for output in OpenX plugin
This commit is contained in:
parent
0373ab6fa4
commit
97a1ef14d2
|
@ -151,16 +151,17 @@ class OpenXPlugin extends UAPPlugin
|
||||||
/**
|
/**
|
||||||
* Show an ad using OpenX
|
* Show an ad using OpenX
|
||||||
*
|
*
|
||||||
|
* @param Action $action Action being shown
|
||||||
* @param integer $zone Zone to show
|
* @param integer $zone Zone to show
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
|
|
||||||
protected function showAd($zone)
|
protected function showAd($action, $zone)
|
||||||
{
|
{
|
||||||
global $_OpenXPlugin_Script;
|
global $_OpenXPlugin_Script;
|
||||||
|
|
||||||
$this->inlineScript(sprintf($_OpenXPlugin_Script, $this->adScript, $zone));
|
$action->inlineScript(sprintf($_OpenXPlugin_Script, $this->adScript, $zone));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user