return -1;
}
- if (ast_language_is_prefix) { /* new layout */
+ if (ast_language_is_prefix && !is_absolute_path(filename)) { /* new layout */
if (lang) {
snprintf(buf, buflen, "%s/%s", lang, filename);
} else {
return -1;
}
- if (is_absolute_path(filename)) {
- ast_copy_string(buf, filename, buflen);
- return ast_filehelper(buf, NULL, fmt, ACTION_EXISTS);
- }
-
/* We try languages in the following order:
* preflang (may include dialect)
* lang (preflang without dialect - if any)