Add MDTlLoader, loading of currencies via MDAllowedValueSets
phpcs-errors:226 phpunit-status:successful
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -1,4 +1,5 @@
 | 
			
		||||
/csv
 | 
			
		||||
/cache
 | 
			
		||||
/composer.lock
 | 
			
		||||
/translation-importer
 | 
			
		||||
/values/langfiles
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								.gitmodules
									
									
									
									
										vendored
									
									
								
							@@ -10,3 +10,6 @@
 | 
			
		||||
[submodule "classes/MDAllowedValueSets"]
 | 
			
		||||
	path = classes/MDAllowedValueSets
 | 
			
		||||
	url = /var/www/vhosts/museum-digital.de/git-base/MDAllowedValueSets
 | 
			
		||||
[submodule "classes/MDTlLoader"]
 | 
			
		||||
	path = classes/MDTlLoader
 | 
			
		||||
	url = /var/www/vhosts/museum-digital.de/git-base/MDTlLoader/
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1
									
								
								classes/MDTlLoader
									
									
									
									
									
										Submodule
									
								
							
							
								
								
								
								
								
							
						
						
									
										1
									
								
								classes/MDTlLoader
									
									
									
									
									
										Submodule
									
								
							 Submodule classes/MDTlLoader added at e812aa8726
									
								
							@@ -12,6 +12,8 @@ declare(strict_types = 1);
 | 
			
		||||
require __DIR__ . "/../mdAvailableLicenses/licenses.php";
 | 
			
		||||
require __DIR__ . "/../translation-importer/$lang/csvxml-overview.php";
 | 
			
		||||
 | 
			
		||||
$tlLoader = new MDTlLoader("available_fields", $lang);
 | 
			
		||||
 | 
			
		||||
foreach (array_diff(scandir(__DIR__ . "/langfiles/$lang/"), ['.', '..']) as $fileName) {
 | 
			
		||||
    if (in_array($fileName, ['start.php', 'start2.php'])) continue;
 | 
			
		||||
    include __DIR__ . "/langfiles/{$lang}/{$fileName}";
 | 
			
		||||
@@ -21,6 +23,8 @@ require __DIR__ . "/commonservices/$lang/search_all_fields.php";
 | 
			
		||||
require __DIR__ . "/commonservices/units.php";
 | 
			
		||||
require __DIR__ . "/langfiles/$lang/eventtype_name.php";
 | 
			
		||||
 | 
			
		||||
$currencies = MDCurrenciesSet::getSortedList($tlLoader);
 | 
			
		||||
 | 
			
		||||
if (empty($fieldNoMultiplicator) or !is_numeric($fieldNoMultiplicator)) {
 | 
			
		||||
    $fieldNoMultiplicator = 1;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user