Code Duplication    Length = 6-6 lines in 2 locations

lib/ar/core/loader/http.php 1 location

@@ 80-85 (lines=6) @@
77
						$nls->accepted[$match[1]]=$match[2];
78
					}
79
				}
80
				if ($otherq !== false) {
81
					$otherlangs=array_diff(array_keys($nls->available), $otherlangs);
82
					foreach ($otherlangs as $lang) {
83
						$nls->accepted[$lang]=$otherq;
84
					}
85
				}
86
				arsort($nls->accepted);
87
			}
88
		}

lib/includes/loader.web.php 1 location

@@ 809-814 (lines=6) @@
806
						$ARCurrent->acceptlang[$reg[1]]=$reg[2];
807
					}
808
				}
809
				if ($otherq !== false) {
810
					$otherlangs=array_diff(array_keys($AR->nls->list), $otherlangs);
811
					foreach ($otherlangs as $lang) {
812
						$ARCurrent->acceptlang[$lang]=$otherq;
813
					}
814
				}
815
				arsort($ARCurrent->acceptlang);
816
			} else {
817
				// valid language