shutterstock/basecoat — pull request #7 by STHayden (2013-02-24 03:36:55+00:00)
Title: Fixing $url_path

the old line of code was looking at $_SERVER['PHP_SELF'] which only returns the /index.php file in the web directory and so dirname only returns / and thus only strips all slashes from the $this->requested_url

this change simply takes the $this->requested_url and spits out the PHP_URL_PATH