X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2FLanguage.php;h=2038baca98c2122dce52c9e4fbcb46a9ebc3111c;hb=09519accc36cddcb364ef467cea22e10b62a7c1b;hp=dc87bc894e46b0576f072cc691645fcfcd8f03a9;hpb=cba23cc37e55caded76d2a4c6b6125db4f92e63e;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/Language.php b/languages/Language.php index dc87bc894e..2038baca98 100644 --- a/languages/Language.php +++ b/languages/Language.php @@ -63,6 +63,7 @@ class FakeConverter { function markNoConversion( $text, $noParse = false ) { return $text; } function convertCategoryKey( $key ) { return $key; } function convertLinkToAllVariants( $text ) { return $this->autoConvertToAllVariants( $text ); } + /** @deprecated since 1.22 is no longer used */ function armourMath( $text ) { return $text; } function validateVariant( $variant = null ) { return $variant === $this->mLang->getCode() ? $variant : null; } function translate( $text, $variant ) { return $text; } @@ -3324,11 +3325,13 @@ class Language { $length -= $eLength; $string = substr( $string, 0, $length ); // xyz... $string = $this->removeBadCharLast( $string ); + $string = rtrim( $string ); $string = $string . $ellipsis; } else { $length += $eLength; $string = substr( $string, $length ); // ...xyz $string = $this->removeBadCharFirst( $string ); + $string = ltrim( $string ); $string = $ellipsis . $string; } } @@ -3811,6 +3814,7 @@ class Language { * * @param $text string * @return string + * @deprecated since 1.22 is no longer used */ public function armourMath( $text ) { return $this->mConverter->armourMath( $text ); @@ -4478,7 +4482,7 @@ class Language { $nlink = htmlspecialchars( $next ); } else { $nlink = $this->numLink( $title, $offset + $limit, $limit, - $query, $next, 'prevn-title', 'mw-nextlink' ); + $query, $next, 'nextn-title', 'mw-nextlink' ); } # Make links to set number of items per page