Skip to content

Commit

Permalink
Fixed getResourcesPath function
Browse files Browse the repository at this point in the history
  • Loading branch information
GrahamCampbell committed Mar 21, 2014
1 parent 0fd7e9e commit cd0726a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Whoops/Handler/PrettyPageHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -442,8 +442,8 @@ public function getResourcesPath()
{
$allPaths = $this->getResourcePaths();

// Compat: return only the first path
return reset($allPaths) ?: null;
// Compat: return only the first path added
return end($allPaths) ?: null;
}

/**
Expand Down

0 comments on commit cd0726a

Please sign in to comment.