Browse Source

Few missing globals

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

+ 1 - 1
Sources/Subs-Themes.php

@@ -121,7 +121,7 @@ function get_all_themes()
 function get_theme_info($path)
 {
 	global $sourcedir, $forum_version, $txt, $scripturl, $context;
-	global $explicit_images, $dirtemp;
+	global $explicit_images;
 
 	if (empty($path))
 		return false;

+ 2 - 2
Sources/Themes.php

@@ -1284,7 +1284,7 @@ function ThemeInstall()
 
 function InstallFile()
 {
-	global $themedir, $themeurl, $context, $dirtemp;
+	global $themedir, $themeurl, $context;
 
 	// Set a temp dir for dumping all required files on it.
 	$dirtemp = $themedir .'/temp';
@@ -1463,7 +1463,7 @@ function InstallCopy()
 
 function InstallDir()
 {
-	global $themedir;
+	global $themedir, $themeurl, $context;
 
 	// Cannot use the theme dir as a theme dir.
 	if (!isset($_REQUEST['theme_dir']) || empty($_REQUEST['theme_dir']) || rtrim(realpath($_REQUEST['theme_dir']), '/\\') == realpath($themedir))