Parcourir la source

Merge pull request #375 from Antes/fixes

Fixes #373 & #374
Oldiesmann il y a 11 ans
Parent
commit
f2fa44598f
2 fichiers modifiés avec 10 ajouts et 7 suppressions
  1. 9 6
      Sources/Who.php
  2. 1 1
      Themes/default/languages/index.english.php

+ 9 - 6
Sources/Who.php

@@ -527,12 +527,15 @@ function Credits($in_admin = false)
 	// Don't blink. Don't even blink. Blink and you're dead.
 	loadLanguage('Who');
 
-	$context[$context['admin_menu_name']]['tab_data'] = array(
-		'title' => $txt['support_credits_title'],
-		'help' => '',
-		'description' => '',
-	);
-
+	if($in_admin)
+	{
+		$context[$context['admin_menu_name']]['tab_data'] = array(
+			'title' => $txt['support_credits_title'],
+			'help' => '',
+			'description' => '',
+		);
+	}
+	
 	$context['credits'] = array(
 		array(
 			'pretext' => $txt['credits_intro'],

+ 1 - 1
Themes/default/languages/index.english.php

@@ -8,7 +8,7 @@ global $forum_copyright, $forum_version, $webmaster_email, $scripturl, $context,
 //   - http://www.php.net/function.pspell-new
 //   - http://www.php.net/function.setlocale
 // Again, SPELLING SHOULD BE '' 99% OF THE TIME!!  Please read this!
-$txt['lang_locale'] = '';
+$txt['lang_locale'] = 'en_US';
 $txt['lang_dictionary'] = 'en';
 $txt['lang_spelling'] = 'american';