Skip to content
Permalink
Browse files

Tentative fix for ignoring old .txt lang files

See #1393.
  • Loading branch information...
Bloke committed Feb 25, 2019
1 parent d10564f commit 4708e56bc48e8442a81548b62da1910f37b54a50
Showing with 2 additions and 2 deletions.
  1. +2 −2 textpattern/vendors/Textpattern/L10n/Lang.php
@@ -135,7 +135,7 @@ public function installed()
* @return array Available language filenames
*/
public function files($extensions = array('txt', 'textpack', 'ini'))
public function files($extensions = array('ini', 'textpack', 'txt'))
{
if (!is_dir($this->langDirectory) || !is_readable($this->langDirectory)) {
trigger_error('Lang directory is not accessible: '.$this->langDirectory, E_USER_WARNING);
@@ -285,7 +285,7 @@ public function available($flags = TEXTPATTERN_LANG_AVAILABLE, $force = 0)
foreach ($this->files as $file) {
$meta = $this->fetchMeta($file);
if ($meta) {
if ($meta && !isset($available_lang[$meta['filename']])) {
$name = $meta['filename'];
if (array_key_exists($name, $currently_lang)) {

0 comments on commit 4708e56

Please sign in to comment.
You can’t perform that action at this time.