aboutsummaryrefslogtreecommitdiffstats
path: root/includes/specialpage/PageQueryPage.php
Commit message (Collapse)AuthorAgeFilesLines
* Inject LanguageConverterFactory into special pagesUmherirrender2020-11-251-0/+29
| | | | | | | | | | | The function SpecialPage::getLanguageConverter does not use service injection and it seems not useful to inject the factory into every special page when not used on each special page or used from code directly in the SpecialPage class. Bug: T259960 Depends-On: I550f2db0c652193755ad4ad04cececad00be72ea Change-Id: I11e5d67b7051c159b8d32bf056a0e24aa3b526ae
* Improve doc about object to be stdClass in QueryPage::formatResultUmherirrender2020-11-151-1/+1
| | | | Change-Id: Ib1fadd74f2f3223ea8a9343d1524533f00b991df
* Merge "Replace "@stable for subclassing" with "@stable to extend""jenkins-bot2020-07-131-1/+1
|\
| * Replace "@stable for subclassing" with "@stable to extend"daniel2020-07-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | For compliance with the new version of the table interface policy (T255803). This patch was created by an automated search & replace operation on the includes/ directory. Bug: T257789 Change-Id: Ie32c1b11b3d16ddfc0c83a757327d449ff80b2e4
* | Replace "@stable for overriding" with "@stable to override"daniel2020-07-131-2/+2
|/ | | | | | | | | | | For compliance with the new version of the table interface policy (T255803). This patch was created by an automated search & replace operation on the includes/ directory. Bug: T257789 Change-Id: I5ffbb91882ecce2019ab644839eab5e8fb8a1c5f
* Mark special page base classes as stable for subclassingdaniel2020-07-101-0/+5
| | | | | Bug: T247862 Change-Id: I44d9dddd99c0106a30058cd80377a65f9b1694a9
* Introduce shortcut to LanguageConverter for all SpecialPage hierarchyTranslation updater bot2020-02-171-4/+2
| | | | | Bug: T243306 Change-Id: I28713f2eb425f37f42d8b1c8475521357dfadd40
* languages: Introduce LanguageConverterFactoryPeter Ovchyn2020-02-031-3/+3
| | | | | | | | | | | | | | | | | | | Done: * Replace LanguageConverter::newConverter by LanguageConverterFactory::getLanguageConverter * Remove LanguageConverter::newConverter from all subclasses * Add LanguageConverterFactory integration tests which covers all languages by their code. * Caching of LanguageConverters in factory * Make all tests running (hope that's would be enough) * Uncomment the deprecated functions. * Rename FakeConverter to TrivialLanguageConverter * Create ILanguageConverter to have shared ancestor * Make the LanguageConverter class abstract. * Create table with mapping between lang code and converter instead of using name convention * ILanguageConverter @internal * Clean up code Change-Id: I0e4d77de0f44e18c19956a1ffd69d30e63cf51bf Bug: T226833, T243332
* Coding style: Auto-fix MediaWiki.Classes.UnsortedUseStatements.UnsortedUseJames D. Forrester2020-01-101-1/+1
| | | | Change-Id: I94a0ae83c65e8ee419bbd1ae1e86ab21ed4d8210
* Fix some double escaping, and some incorrect escaping for convert()Brian Wolff2018-09-211-2/+2
| | | | | | | | | convert() is weird and requires things to be escaped before it is called. This fixes a bunch of phan-taint-check warnings. Change-Id: I422b313ca05ff61ae05e06856347cc0de832cc49
* Mass conversion of $wgContLang to serviceAryeh Gregor2018-08-111-3/+3
| | | | | | | Brought to you by vim macros. Bug: T200246 Change-Id: I79e919f4553e3bd3eb714073fed7a43051b4fb2a
* Change ResultWrapper to IResultWrapper in pagers and special pagesUmherirrender2018-04-041-2/+2
| | | | | | | There is no need for a specific type, the interface implementation is enough Change-Id: I22ec4d3a9a19fc86efc9a2deb06f810695d38c85
* Replace Linker::link() with LinkRenderer in special pagesMatěj Suchánek2017-06-201-1/+1
| | | | | Bug: T149346 Change-Id: I2735750803dc1b2e36be3989caaabbf3232b2923
* Move IDatabase/IMaintainableDatabase to Rdbms namespaceAaron Schulz2017-03-281-0/+1
| | | | Change-Id: If7e8a8ff574661fd827de8bcec11d2c39a687300
* Move ResultWrapper subclasses to RdbmsAaron Schulz2017-03-031-0/+2
| | | | Change-Id: I6f3f0e85e268b24c57c537aa6ad8016e0b4cdddb
* Move LinkBatch operations for QueryPage to a helper functionFlorian Schmidt2016-10-291-11/+1
| | | | | | | | | This is easier to maintain as duplicated code everywhere. This change also adds LinkBatch operations to specialpages, that does not had it so far, but where it's useful. Change-Id: I4936ecfb2be3a7709d99570c0561ab0cc9cd754f
* Convert all array() syntax to []Kunal Mehta2016-02-171-1/+1
| | | | | | | | | | Per wikitech-l consensus: https://lists.wikimedia.org/pipermail/wikitech-l/2016-February/084821.html Notes: * Disabled CallTimePassByReference due to false positives (T127163) Change-Id: I2c8ce713ce6600a0bb7bf67537c87044c7a45c4b
* Changed some DatabaseBase type hints to IDatabaseAaron Schulz2014-12-091-1/+1
| | | | Change-Id: I1158c71f110b140473f56d5cbe352da1f4513ad9
* Move QueryPage and abstract subclasses to specialpage folderKevin Israel2014-06-241-0/+72
... now that f508561f7bde ("Moved $wgQueryPages stuff out of the global scope and into a function") has been merged, which eliminated hardcoding of the pathname except in the AutoLoader. WantedQueryPage is moved to a separate file. Bug: 60445 Change-Id: If2019492722083819b82afa6302670b94b181098