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
1 changed files with 4 additions and 3 deletions

View File

@ -151,16 +151,17 @@ class OpenXPlugin extends UAPPlugin
/** /**
* Show an ad using OpenX * Show an ad using OpenX
* *
* @param integer $zone Zone to show * @param Action $action Action being shown
* @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;
} }
} }