Remove trailing slash from template theme name

This commit is contained in:
Francis Lachapelle 2014-09-11 16:11:26 -04:00
parent 57f7b38d09
commit 954a85240a

View file

@ -48,6 +48,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"];
}