Browse Source

! Code cleanliness and a safety check just in case.

Signed-off-by: Peter Spicer <[email protected]>
Peter Spicer 10 years ago
parent
commit
a80c197d8f
2 changed files with 2 additions and 2 deletions
  1. 2 1
      Sources/Load.php
  2. 0 1
      Sources/Subs.php

+ 2 - 1
Sources/Load.php

@@ -2396,8 +2396,9 @@ function getLanguages($use_cache = true, $favor_utf8 = true)
 		// Default language directories to try.
 		$language_directories = array(
 			$settings['default_theme_dir'] . '/languages',
-			$settings['actual_theme_dir'] . '/languages',
 		);
+		if (!empty($settings['actual_theme_dir']) && $settings['actual_theme_dir'] != $settings['default_theme_dir'])
+			$language_directories[] = $settings['actual_theme_dir'] . '/languages';
 
 		// We possibly have a base theme directory.
 		if (!empty($settings['base_theme_dir']))

+ 0 - 1
Sources/Subs.php

@@ -3224,7 +3224,6 @@ function template_footer()
 
 	foreach (array_reverse($context['template_layers']) as $layer)
 		loadSubTemplate($layer . '_below', true);
-
 }
 
 /**