Sfoglia il codice sorgente

Don't you DARE to make mistakes! we are no longer playing around!
Specially since the guy who like to review code doesn't make any mistakes EVER!

Signed-off-by: Suki <suki@missallsunday.com>

Suki 11 anni fa
parent
commit
2403af26ef
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      Sources/Themes.php

+ 2 - 2
Sources/Themes.php

@@ -1371,7 +1371,7 @@ function ThemeInstall()
 		package_flush_cache();
 
 		$theme_name = $_REQUEST['copy'];
-		$images_url = $themedir . '/' . basename($theme_dir) . '/images';
+		$images_url = $boardurl . '/Themes/' . basename($theme_dir) . '/images';
 		$theme_dir = realpath($theme_dir);
 
 		// Lets get some data for the new theme.
@@ -1476,7 +1476,7 @@ function ThemeInstall()
 		// Defaults.
 		$install_info = array(
 			'theme_url' => $boardurl . '/Themes/' . basename($theme_dir),
-			'images_url' => isset($images_url) ? $images_url : $themedir . '/' . basename($theme_dir) . '/images',
+			'images_url' => isset($images_url) ? $images_url : $boardurl . '/Themes/' . basename($theme_dir) . '/images',
 			'theme_dir' => $theme_dir,
 			'name' => $theme_name
 		);