Skip to content

Commit

Permalink
hook fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBock committed Mar 2, 2017
1 parent 062c679 commit 3f49b04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions classes/grid_box.php
Expand Up @@ -127,7 +127,7 @@ public function build($editmode) {
public function render($editmode) {
$found=FALSE;
$this->classes[] = "grid-box-".$this->type();
$this->storage->fireHook(Hook::WILL_RENDER_BOX,array("box" => $this, 'editmode'=>$editmode));
$this->storage->fireHook(Hook::WILL_RENDER_BOX, (object)array("box" => $this, 'editmode'=>$editmode));
ob_start();
$typechecks=array();
$class=get_class($this);
Expand Down Expand Up @@ -158,7 +158,7 @@ public function render($editmode) {
}

$output=ob_get_clean();
$this->storage->fireHook(Hook::DID_RENDER_BOX,array("box" => $this, 'editmode'=>$editmode));
$this->storage->fireHook(Hook::DID_RENDER_BOX, (object)array("box" => $this, 'editmode'=>$editmode));
return $output;
}

Expand Down
2 changes: 1 addition & 1 deletion classes/grid_slot.php
Expand Up @@ -57,7 +57,7 @@ public function render($editmode, $container)
}
$output=ob_get_clean();

$this->storage->fireHook(Hook::DIDL_RENDER_SLOT, (object) array( "container"=>$container, "slot" => $this, 'editmode'=>$editmode) );
$this->storage->fireHook(Hook::DID_RENDER_SLOT, (object) array( "container"=>$container, "slot" => $this, 'editmode'=>$editmode) );

return $output;
}
Expand Down

0 comments on commit 3f49b04

Please sign in to comment.