Permalink
Browse files

Fixing the call to the component.build data format hook, where some n…

…ice arguments were not passed.
  • Loading branch information...
1 parent fe76f35 commit 92d1c5a83aba570b32728b09bb9645f305d17cac @zyxist zyxist committed Nov 14, 2010
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/Opt/Instruction/Component.php
View
2 lib/Opt/Instruction/Component.php
@@ -246,6 +246,8 @@ public function processComponent(Opt_Xml_Element $node)
// Generate the initialization code
$format->assign('className', $this->_compiler->component($node->getXmlName()));
+ $format->assign('tagName', $node->getXmlName());
+ $format->assign('attributes', $vars);
$mainCode = $format->get('component:build').$format->get('component:init');
if($params['datasource'] !== null)

0 comments on commit 92d1c5a

Please sign in to comment.