Ver código fonte

! Re-enabled EmailTemplates in the edit languages admin panel page and sorted the templates by name

emanuele 13 anos atrás
pai
commit
2109a5e012
1 arquivos alterados com 1 adições e 4 exclusões
  1. 1 4
      Sources/ManageLanguages.php

+ 1 - 4
Sources/ManageLanguages.php

@@ -833,10 +833,6 @@ function ModifyLanguage()
 			if (preg_match('~^([A-Za-z]+)\.' . $context['lang_id'] . '\.php$~', $entry, $matches) == 0)
 				continue;
 
-			// @todo Temp!
-			if ($matches[1] == 'EmailTemplates')
-				continue;
-
 			if (!isset($context['possible_files'][$theme]))
 				$context['possible_files'][$theme] = array(
 					'id' => $theme,
@@ -851,6 +847,7 @@ function ModifyLanguage()
 			);
 		}
 		$dir->close();
+		usort($context['possible_files'][$theme]['files'], create_function('$val1, $val2', 'return strcmp($val1[\'name\'], $val2[\'name\']);'));
 	}
 
 	// We no longer wish to speak this language.