Browse Source

Don't forget to use global vars

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

+ 3 - 2
Sources/Themes.php

@@ -190,10 +190,11 @@ function ThemeList()
 		checkSession();
 		validateToken('admin-tl');
 
-		$themes = get_all_themes(false);
+		// Calling the almighty power of global vars!
+		get_all_themes(false);
 
 		$setValues = array();
-		foreach ($themes as $id => $theme)
+		foreach ($context['themes'] as $id => $theme)
 		{
 			if (file_exists($_POST['reset_dir'] . '/' . basename($theme['theme_dir'])))
 			{