Remove trailing slash from template theme name

This commit is contained in:
Francis Lachapelle 2014-09-11 16:11:26 -04:00
parent 16cd231ce3
commit bb9e8c0348

View file

@ -46,6 +46,11 @@
if ([theme length] > 0)
{
if ([theme hasSuffix: @"/"])
{
// Remove trailing slash
theme = [theme substringToIndex: [theme length] - 1];
}
[languages addObject: [NSString stringWithFormat: @"theme_%@", theme]];
[self setObject: theme forKey: @"theme"];
}