EllisLab/CodeIgniter — pull request #853 by tomcode (2012-01-01 18:17:20+00:00)
Title: Fix for Hmvc lite subfolder default controller handling

When the URL would only contain the subfolder but not the controller
name, the used routine was wrong.

example URL: http://example.com/index.php/subfolder/

1. use of array_unshift instead of array_shift
2. since we're in a subfolder, the $default segments contain the directory as first segment