Remove trailing slash from template theme name

pull/91/head
Francis Lachapelle 2014-09-11 16:11:26 -04:00
parent 16cd231ce3
commit bb9e8c0348
1 changed files with 5 additions and 0 deletions

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