Remove trailing slash from template theme name

This commit is contained in:
Francis Lachapelle
2014-09-11 16:11:26 -04:00
parent 820da58a5e
commit 884a64f350

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"];
}