EllisLab/CodeIgniter — pull request #2981 by vlakoff (2014-03-31 18:54:08+00:00)
Title: Work on determination of "base_url" config item

* A little refactoring.
* Remove the basename only at the end, to avoid edge cases.