Code Duplication    Length = 8-8 lines in 2 locations

other/upgrade.php 1 location

@@ 1483-1490 (lines=8) @@
1480
	);
1481
1482
	$js_files = array();
1483
	while ($row = $smcFunc['db_fetch_assoc']($request))
1484
	{
1485
		$js_files[$row['id_file']] = array(
1486
			'filename' => $row['filename'],
1487
			'path' => $row['path'],
1488
			'parameters' => sprintf($row['parameters'], $language, urlencode($modSettings['time_format']), urlencode($forum_version)),
1489
		);
1490
	}
1491
	$smcFunc['db_free_result']($request);
1492
1493
	// We're gonna need fetch_web_data() to pull this off.

Sources/ScheduledTasks.php 1 location

@@ 1215-1222 (lines=8) @@
1212
1213
	$js_files = array();
1214
1215
	while ($row = $smcFunc['db_fetch_assoc']($request))
1216
	{
1217
		$js_files[$row['id_file']] = array(
1218
			'filename' => $row['filename'],
1219
			'path' => $row['path'],
1220
			'parameters' => sprintf($row['parameters'], $language, urlencode($modSettings['time_format']), urlencode($forum_version)),
1221
		);
1222
	}
1223
1224
	$smcFunc['db_free_result']($request);
1225