Concrete 5.7 page_theme.php PSR issue
This doesn't work with Concrete 5.7.
The theme works, but C5 cannot find/use the page_theme.php file. When I name a theme directory using that convention, it appears that C5 is looking for application/themes/my_site20XX/page_theme.php (without the underscore before 20XX).
Presumably, this has something to do with that segment of the directory name starting with a number, but I didn't think that this was against the naming convention Concrete 5.7 uses. Am I doing something wrong, or is there a way to do this?
$chunks = preg_split('/(?=[A-Z])/', $segment);
This splits Application\Theme\MySite2015\PageTheme into chunks based on uppercase letters. Hence it's not seeing a split at "2015" so you end up with it looking for /application/themes/my_site2015/page_theme.php, which doesn't exist.
So...feature or bug? Of course, I vote bug. But I think it's a legitimate concern. I'm not super-familiar with all the PHP PSR stuff, but can you not start a segment with a number?
I would not have expected there to be a problem with my_site_20XX either.
As a quick fix, could you use my_site_v20XX?