mageplus/mageplus — pull request #39 by LeeSaferite (2012-05-23 05:14:14+00:00)
Title: Fixing URL generation for admin and in APIs

In the admin area (and in api.php) the URL generator was forcing the
usage of index.php even if the use of rewrites was enabled. This
resulted in URLs for admin always starting with /index.php/admin/ and
looking ugly.

I removed the check for being in the admin area and re-ordered the two
remaining checks (installed, rewrites enabled) to optimize their order.