joomla/joomla-platform — pull request #1471 by mbabker (2012-08-19 01:05:52+00:00)
Title: Add name.min.ext file format to debug check

Improving on JHtml::includeRelativeFiles() debug mode checks, I've added the possibility for files supplied in the format name.min.ext (jQuery files use this format for example) to be loaded in an uncompressed format in debug mode by stripping the .min portion of the filename out instead of appending -uncompressed.

Sample use case: In some code (https://github.com/mbabker/Podcast-Manager/blob/master/plg_content_podcastmanager/player.php#L283), I currently manually check for JDEBUG and change the filename as appropriate. With this patch, the conditional around JDEBUG is no longer necessary in my code.