joomla/joomla-platform — pull request #1509 by dongilbert (2012-09-01 04:06:55+00:00)
Title: fix JViewLegacy::getName model name discovery

The current regex implementation for model name auto-discovery in the JViewLegacy prevents a developer from the use of the substr of "view" without consequences. Hence the reason for the custom error created just for that case. (see line 466 of the diff: https://github.com/dongilbert/joomla-platform/pull/new/jviewgetname#L0L466). This pull request fixes that.

This is how I tested - https://gist.github.com/3563618