joomla/joomla-platform — pull request #1194 by mbabker (2012-05-09 18:04:21+00:00)
Title: Use JPATH_THEMES constant to set themes directory in JApplicationWeb::render()

The JPATH_THEMES constant is set in the CMS, unit tests, and in some of the example apps I've seen to define the path where themes (templates) are located. Instead of checking for a hard-coded themes folder under JPATH_BASE, this allows the themes directory to be set to this constant (which, for example, allows the CMS to continue using the "templates" directory if so desired when the applications are refactored) and retains the current fallback of `__DIR__ . '/themes'`