using an action for output in OpenX plugin

This commit is contained in:
Evan Prodromou 2010-01-27 18:39:55 -05:00
parent 0373ab6fa4
commit 97a1ef14d2

View File

@ -151,16 +151,17 @@ class OpenXPlugin extends UAPPlugin
/**
* Show an ad using OpenX
*
* @param Action $action Action being shown
* @param integer $zone Zone to show
*
* @return void
*/
protected function showAd($zone)
protected function showAd($action, $zone)
{
global $_OpenXPlugin_Script;
$this->inlineScript(sprintf($_OpenXPlugin_Script, $this->adScript, $zone));
$action->inlineScript(sprintf($_OpenXPlugin_Script, $this->adScript, $zone));
return true;
}
}