$ext = (string) $extOther;
}
- // Is language support enabled?
- if ($this->isLanguageSupportEnabled()) {
- // Construct the FQFN for the template by honoring the current language
- $fqfn = sprintf('%s%s%s%s/%s/%s%s',
- $this->getConfigInstance()->getConfigEntry('base_path'),
- $this->getTemplateBasePath(),
- $this->getGenericBasePath(),
- $this->getLanguageInstance()->getLanguageCode(),
- $this->getTemplateType(),
- (string) $template,
- $ext
- );
- } else {
- // Construct the FQFN for the template without language
- $fqfn = sprintf('%s%s%s%s/%s%s',
- $this->getConfigInstance()->getConfigEntry('base_path'),
- $this->getTemplateBasePath(),
- $this->getGenericBasePath(),
- $this->getTemplateType(),
- (string) $template,
- $ext
- );
- }
+ /*
+ * Construct the FQFN for the template without language as language is
+ * now entirely done by php_intl. These old thing with language-based
+ * template paths comes from an older time.
+ */
+ $fqfn = sprintf('%s%s%s%s/%s%s',
+ $this->getConfigInstance()->getConfigEntry('base_path'),
+ $this->getTemplateBasePath(),
+ $this->getGenericBasePath(),
+ $this->getTemplateType(),
+ (string) $template,
+ $ext
+ );
// First try this
try {