Merge branch 'master' into 0.9.x

This commit is contained in:
Brion Vibber 2010-10-29 11:22:35 -07:00
commit 693fecc44a
1 changed files with 18 additions and 0 deletions

View File

@ -95,6 +95,24 @@ abstract class UAPPlugin extends Plugin
$action->elementEnd('div');
}
// XXX: Hack to force ads to show on single-notice pages
if (!is_null($this->rectangle) &&
$action->trimmed('action') == 'shownotice') {
$action->elementStart('div', array('id' => 'aside_primary',
'class' => 'aside'));
if (Event::handle('StartShowSections', array($action))) {
$action->showSections();
Event::handle('EndShowSections', array($action));
}
$action->elementEnd('div');
return false;
}
return true;
}