Skip to content

Commit

Permalink
compatability update with a change to illuminate
Browse files Browse the repository at this point in the history
  • Loading branch information
robclancy-test committed May 7, 2013
1 parent a75632e commit 8bc37f0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/Robbo/Presenter/View/Environment.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,14 @@ public function make($view, $data = array(), $mergeData = array())
* @param mixed $value
* @return void
*/
public function share($key, $value)
public function share($key, $value = null)
{
return parent::share($key, $this->makePresentable($value));
if ( ! is_array($key))
{
return parent::share($key, $this->makePresentable($value));
}

return parent::share($this->makePresentable($key));
}

/**
Expand Down

0 comments on commit 8bc37f0

Please sign in to comment.