Code Duplication    Length = 2-11 lines in 2 locations

Sources/Subs-Package.php 2 locations

@@ 1201-1202 (lines=2) @@
1198
					if ((isset($_REQUEST['readme']) && $action->fetch('@lang') == $_REQUEST['readme']) || (isset($_REQUEST['license']) && $action->fetch('@lang') == $_REQUEST['license']) || (!isset($_REQUEST['readme']) && $action->fetch('@lang') == $language) || (!isset($_REQUEST['license']) && $action->fetch('@lang') == $language))
1199
					{
1200
						// In case the user put the blocks in the wrong order.
1201
						if (isset($context[$type]['selected']) && $context[$type]['selected'] == 'default')
1202
							$context[$type][] = 'default';
1203
1204
						$context[$type]['selected'] = $smcFunc['htmlspecialchars']($action->fetch('@lang'));
1205
					}
@@ 1214-1224 (lines=11) @@
1211
					}
1212
				}
1213
				// Fallback when we have no lang parameter.
1214
				else
1215
				{
1216
					// Already selected one for use?
1217
					if (isset($context[$type]['selected']))
1218
					{
1219
						$context[$type][] = 'default';
1220
						continue;
1221
					}
1222
					else
1223
						$context[$type]['selected'] = 'default';
1224
				}
1225
			}
1226
1227
			// @todo Make sure the file actually exists?  Might not work when testing?