Kaynağa Gözat

Merge pull request #784 from MissAllSunday/salvaged_board_name

Fixes #779
Arantor 11 yıl önce
ebeveyn
işleme
7a7d1e6f3a
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      Sources/RepairBoards.php

+ 2 - 2
Sources/RepairBoards.php

@@ -615,7 +615,7 @@ function loadForumTests()
 					AND t.id_topic BETWEEN {STEP_LOW} AND {STEP_HIGH}
 				GROUP BY t.id_board',
 			'fix_processing' => create_function('$row', '
-				global $smcFunc, $salvageCatID;
+				global $smcFunc, $salvageCatID, $txt;
 				createSalvageArea();
 
 				$row[\'my_num_topics\'] = (int) $row[\'my_num_topics\'];
@@ -624,7 +624,7 @@ function loadForumTests()
 				$smcFunc[\'db_insert\'](\'\',
 					\'{db_prefix}boards\',
 					array(\'id_cat\' => \'int\', \'name\' => \'string\', \'description\' => \'string\', \'num_topics\' => \'int\', \'num_posts\' => \'int\', \'member_groups\' => \'string\'),
-					array($salvageCatID, \'Salvaged board\', \'\', $row[\'my_num_topics\'], $row[\'my_num_posts\'], \'1\'),
+					array($salvageCatID, $txt[\'salvaged_board_name\'], $txt[\'salvaged_board_description\'], $row[\'my_num_topics\'], $row[\'my_num_posts\'], \'1\'),
 					array(\'id_board\')
 				);
 				$newBoardID = $smcFunc[\'db_insert_id\'](\'{db_prefix}boards\', \'id_board\');