This patch will implement a one-way transliterator (Latin->Cyrillic), per community consensus.
Bug: T268033
Change-Id: I6f3e7efe3630e9960584dca3a5ee55cb92ea722c
Co-Authored-By: Deni <deni@deni.dk>
Co-Authored-By: Winston Sung <winston21.sung@gmail.com>
for LanguageConverter
"Static default variant" language code won't always be the same of
"language code with converter" when there's one of the variant form
specified as the "default variant language" instead of "mixed-form".
We would like to specify "sh-latn" instead of "mixed-script sh" as the
static default variant language for ShConverter.
The function "getMainCode" was not renamed for compatibility.
Bug: T268033
Change-Id: Ibd0fadf9ba1f740cf4aed06e11138549c9d6dc9f
Skin::getSearchPageTitle and Skin::setSearchPageTitle are deprecated
since 1.38 and hence are removed.
Bug: T320351
Change-Id: I312ba7e170883c0b45c71b42f29eea2b7f842273
We define an anonymous function just to immediately call it.
Why not run the code directly?
Follow-up to:
* I8f1ed821cf1d8a4ef5b073e788386920dc337e0c (BacklinkCache)
* Ibcb37affa9ba1c891bc62964a3dd34b67214cfa1 (PageSelectQueryBuilder)
* Ibb1c58016e3956a46bfaf1a9f51f265114bb9ace (UserQueryBuilder)
Change-Id: I5a7827623c93ce524761ba501a6c6c75d17d6aae
I believe this was missed in change Idfc16a5033 (commit d5b44e46fd) – if
we want extensions to define subclasses, we also need the constructor to
be public, otherwise those subclasses can’t call the parent constructor
without technically violating the stable interface policy.
Logically, the constructor should probably be protected; however, it
can’t be PHP-protected (since newSelectQueryBuilder() has to access it),
and we don’t really seem to use the PHPdoc @protected tag in MediaWiki
(see code search [1]), so let’s just mention in prose that it’s for
subclasses only.
[1]: https://codesearch.wmcloud.org/search/?q=%40protected&files=\.php%24
Bug: T311866
Change-Id: Ic9307d55ffd690e311bd0ffed94ac6a1e587a030
The sql contains the namespace twice, which is not useful:
WHERE rc_namespace = ? AND (rc_namespace = ?) AND rc_title = '?' )
Change-Id: Ia0d50ad70dc4962b888b8baac8fc11be2ba537bb
Per discussion with Subbu and Bartosz, this is unused and dubious.
The client side feature that needs this ability was never implemented,
it has been sitting around since 2013.
Bug: T73161
Bug: T51904
Change-Id: I81dd90189d267b2799b63c972d7d8cf5f431d7b0
I missed these in change I72713a7a11 (commit 8287e2814d), my bad.
I’m not sure if @deprecated is usually expected to apply to overriding
methods, but at least my IDE wasn’t showing calls to these methods in
“strikethrough” style, so let’s deprecate them explicitly.
Change-Id: Ic9ced6e2d4ab32791d5157d06325706664eecc47
All callers available in codesearch pass in a $path (and for all callers
except getFileUrl()’s own test, that path is 'api.php'); omitting the
path hasn’t worked correctly for almost ten years (see change
I5ed7e169c9, commit 779df10df7).
Change-Id: I50819efb66fd72f2b5a1cd83d5cdd3a148742299