mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-24 14:29:28 +00:00
Remove trailing slash from template theme name
This commit is contained in:
@@ -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"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user