Browse Source

Fix ridiculously long line of code

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

+ 3 - 2
Sources/Subs-Themes.php

@@ -417,8 +417,9 @@ function theme_install($to_install = array())
 		);
 
 	// Update the known and enable Theme's settings.
-	updateSettings(array('knownThemes' => strtr($modSettings['knownThemes'] . ',' . $id_theme, array(',,' => ','))));
-	updateSettings(array('enableThemes' => strtr($modSettings['enableThemes'] . ',' . $id_theme, array(',,' => ','))));
+	$known = strtr($modSettings['knownThemes'] . ',' . $id_theme, array(',,' => ','));
+	$enable = strtr($modSettings['enableThemes'] . ',' . $id_theme, array(',,' => ','));
+	updateSettings(array('knownThemes' => $enable, 'enableThemes' => $known));
 
 	return $id_theme;
 }