Remove trailing slash from template theme name
parent
16cd231ce3
commit
bb9e8c0348
|
@ -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"];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue