mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-27 16:54:06 +00:00
We are shaking up trunk tonight! allow data dir to be specified (issue #6967 reported by tzafrir)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20330 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
4
image.c
4
image.c
@@ -103,9 +103,9 @@ static void make_filename(char *buf, int len, char *filename, const char *prefla
|
||||
snprintf(buf, len, "%s.%s", filename, ext);
|
||||
} else {
|
||||
if (!ast_strlen_zero(preflang))
|
||||
snprintf(buf, len, "%s/%s/%s-%s.%s", ast_config_AST_VAR_DIR, "images", filename, preflang, ext);
|
||||
snprintf(buf, len, "%s/%s/%s-%s.%s", ast_config_AST_DATA_DIR, "images", filename, preflang, ext);
|
||||
else
|
||||
snprintf(buf, len, "%s/%s/%s.%s", ast_config_AST_VAR_DIR, "images", filename, ext);
|
||||
snprintf(buf, len, "%s/%s/%s.%s", ast_config_AST_DATA_DIR, "images", filename, ext);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user