Browse Source

Should have moved these too.

Signed-off-by: Suki <[email protected]>
Suki 11 years ago
parent
commit
417e1ac2c4
1 changed files with 2 additions and 4 deletions
  1. 2 4
      Sources/Subs-Themes.php

+ 2 - 4
Sources/Subs-Themes.php

@@ -296,10 +296,6 @@ function theme_install($to_install = array())
 		if (!empty($to_update) && !empty($to_update['version']))
 			switch (compareVersions($context['to_install']['version'], $to_update['version']))
 			{
-				case 0: // This is exactly the same theme.
-				case -1: // The one being installed is older than the one already installed.
-					fatal_lang_error('package_get_error_theme_no_new_version', false, array($context['to_install']['version'], $to_update['version']));
-					break;
 				case 1: // Got a newer version, update the old entry.
 					$smcFunc['db_query']('', '
 						UPDATE {db_prefix}themes
@@ -319,6 +315,8 @@ function theme_install($to_install = array())
 
 					return $context['to_install'];
 					break; // Just for reference.
+				case 0: // This is exactly the same theme.
+				case -1: // The one being installed is older than the one already installed.
 				default: // Any other possible result.
 					fatal_lang_error('package_get_error_theme_no_new_version', false, array($context['to_install']['version'], $to_update['version']));
 			}