Remove trailing slash from template theme name
This commit is contained in:
parent
57f7b38d09
commit
954a85240a
|
@ -48,6 +48,11 @@
|
||||||
|
|
||||||
if ([theme length] > 0)
|
if ([theme length] > 0)
|
||||||
{
|
{
|
||||||
|
if ([theme hasSuffix: @"/"])
|
||||||
|
{
|
||||||
|
// Remove trailing slash
|
||||||
|
theme = [theme substringToIndex: [theme length] - 1];
|
||||||
|
}
|
||||||
[languages addObject: [NSString stringWithFormat: @"theme_%@", theme]];
|
[languages addObject: [NSString stringWithFormat: @"theme_%@", theme]];
|
||||||
[self setObject: theme forKey: @"theme"];
|
[self setObject: theme forKey: @"theme"];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue