Fix wrong uses of DI::l10n() in Core\Update
- Fix typos in version number in translated messages
This commit is contained in:
		
					parent
					
						
							
								0668b2dfd5
							
						
					
				
			
			
				commit
				
					
						9a9b43bd6c
					
				
			
		
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -63,7 +63,7 @@ class Update | ||||||
| 
 | 
 | ||||||
| 		// We don't support upgrading from very old versions anymore
 | 		// We don't support upgrading from very old versions anymore
 | ||||||
| 		if ($build < NEW_TABLE_STRUCTURE_VERSION) { | 		if ($build < NEW_TABLE_STRUCTURE_VERSION) { | ||||||
| 			$error = DI::l10n('Updates from version %s are not supported. Please update at least to version 2021,01 and wait until the postupdate finished version 1383.', $build); | 			$error = DI::l10n()->t('Updates from version %s are not supported. Please update at least to version 2021.01 and wait until the postupdate finished version 1383.', $build); | ||||||
| 			if (DI::mode()->getExecutor() == Mode::INDEX) { | 			if (DI::mode()->getExecutor() == Mode::INDEX) { | ||||||
| 				die($error); | 				die($error); | ||||||
| 			} else { | 			} else { | ||||||
|  | @ -74,7 +74,7 @@ class Update | ||||||
| 		// The postupdate has to completed version 1281 for the new post views to take over
 | 		// The postupdate has to completed version 1281 for the new post views to take over
 | ||||||
| 		$postupdate = DI::config()->get("system", "post_update_version"); | 		$postupdate = DI::config()->get("system", "post_update_version"); | ||||||
| 		if ($postupdate < NEW_TABLE_STRUCTURE_VERSION) { | 		if ($postupdate < NEW_TABLE_STRUCTURE_VERSION) { | ||||||
| 			$error = DI::l10n('Updates from postupdate version %s are not supported. Please update at least to version 2021,01 and wait until the postupdate finished version 1383.', $postupdate); | 			$error = DI::l10n()->t('Updates from postupdate version %s are not supported. Please update at least to version 2021.01 and wait until the postupdate finished version 1383.', $postupdate); | ||||||
| 			if (DI::mode()->getExecutor() == Mode::INDEX) { | 			if (DI::mode()->getExecutor() == Mode::INDEX) { | ||||||
| 				die($error); | 				die($error); | ||||||
| 			} else { | 			} else { | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue