Skip to content

Commit

Permalink
Added second parameter to Fuel_pages::get method to allow for initial…
Browse files Browse the repository at this point in the history
…ization parameters
  • Loading branch information
David McReynolds committed Oct 21, 2014
1 parent 6c80c05 commit 772ba40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fuel/modules/fuel/libraries/Fuel_pages.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,10 @@ public function set_active(&$page)
*
* @access public
* @param string The page to set as active
* @param array An array of initializtion parameters
* @return object
*/
public function get($location)
public function get($location, $init = array())
{
$init['location'] = $location;
$page = $this->create($init, FALSE);
Expand Down

0 comments on commit 772ba40

Please sign in to comment.