Parcourir la source

! regards_team for new topic notifications is in the language of the member notified [Topic 474124]

emanuele il y a 12 ans
Parent
commit
8ec6e358c9
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 3 1
      Sources/Post.php

+ 3 - 1
Sources/Post.php

@@ -2602,7 +2602,7 @@ function notifyMembersBoard(&$topicData)
 				continue;
 		}
 
-		$langloaded = loadLanguage('EmailTemplates', empty($rowmember['lngfile']) || empty($modSettings['userLanguage']) ? $language : $rowmember['lngfile'], false);
+		$langloaded = loadLanguage('index', empty($rowmember['lngfile']) || empty($modSettings['userLanguage']) ? $language : $rowmember['lngfile'], false);
 
 		// Now loop through all the notifications to send for this board.
 		if (empty($boards[$rowmember['id_board']]))
@@ -2650,6 +2650,8 @@ function notifyMembersBoard(&$topicData)
 	}
 	$smcFunc['db_free_result']($members);
 
+	loadLanguage('index', $user_info['language']);
+
 	// Sent!
 	$smcFunc['db_query']('', '
 		UPDATE {db_prefix}log_notify