芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/www/libraries/vendor/willdurand/negotiation/src/Negotiation/LanguageNegotiator.php
getBasePart(); $pb = $priority->getBasePart(); $as = $acceptLanguage->getSubPart(); $ps = $priority->getSubPart(); $baseEqual = !strcasecmp($ab, $pb); $subEqual = !strcasecmp($as, $ps); if (($ab == '*' || $baseEqual) && ($as === null || $subEqual)) { $score = 10 * $baseEqual + $subEqual; return new AcceptMatch($acceptLanguage->getQuality() * $priority->getQuality(), $score, $index); } return null; } }