aboutsummaryrefslogtreecommitdiffstats
path: root/includes/interwiki
Commit message (Collapse)AuthorAgeFilesLines
* add Interwiki::selectFieldsumherirrender2012-05-111-2/+18
| | | | | | to avoid * inside select Change-Id: I9d0ac631d9389744f68d744fa1d3fa3e3866a956
* Added missing GPLv2 headers in some places.Alexandre Emsenhuber2012-05-041-1/+17
| | | | | | Also made file/class documentation more consistent. Change-Id: I1deb70318d01a257b51948ba806d80cd1a239f4f
* Documentation updatesSam Reed2012-03-051-0/+1
| | | | | | | Normalise method returns Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/113042
* Improve documentationSam Reed2012-02-021-6/+6
| | | | | | | | | Simplify if Fix whitespace Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/110609
* Back out r95396 and friendsSam Reed2011-09-291-165/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98467
* FU r98109: !EMPTY -> !NONEXISTENT (more consistent with elsewhere)Aaron Schulz2011-09-261-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98189
* Cache negative results for interwiki prefix checks. Also helps filecache ↵Aaron Schulz2011-09-261-0/+5
| | | | | | | fail-over mode if DB is down. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/98109
* Merge the iwtransclusion branch back into trunkSam Reed2011-08-241-0/+165
| | | | | | | Hexmode fixed broken unit tests in revisions after last time Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/95396
* Followup r94353; Use !== null since that's what we use in core.Daniel Friesen2011-08-141-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/94460
* Followup r94349; Interwiki::getURL used `$title != null` to test if the ↵Daniel Friesen2011-08-121-4/+4
| | | | | | | | | $title arg was passed and should be substituted. However `"" == null`, so as a result switching to using the argument broke [[mw:]] style interwiki links without an article title. Update the Interwiki::getURL code to use isset(), and update the comment to tell pre-1.19 supporting extensions to do the entire urlencoding and $1 substitution on their own since Interwiki::getURL was essentially buggy and broken before now. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/94353
* Update Interwiki::getURL's first argument so that it's properly urlencoded ↵Daniel Friesen2011-08-121-1/+4
| | | | | | | | | | when replacements are made. Scanning all of core and all the extensions we have in svn, it doesn't look like anyone makes any calls to Interwiki::getURL using the argument so this should be safe enough to clean up the api. Also update Title::getFullURL to make use of the first arg now. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/94349
* Back out r93533, r93531, r93530Sam Reed2011-07-301-166/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Breaks unit tests as below, not going to be able to fix them before I disappear for the evening, so might aswell leave trunk clean ArticleTablesTest testbug14404 Error: ArticleTablesTest::testbug14404 Undefined offset: 0 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/includes/ArticleTablesTest.php:31 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiTestCase.php:60 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiPHPUnitCommand.php:20 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/phpunit.php:60 ParserTests testParserTest #552 - testParserTest with data set #551 Failure: ParserTests::testParserTest with data set #551 ('RAW magic word', '{{RAW:QUERTY}}', '<p><a href="/index.php?title=Template:QUERTY&amp;action=edit&amp;redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a> </p>', '', '') RAW magic word Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -<p><a href="/index.php?title=Template:QUERTY&amp;action=edit&amp;redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a> +<p><a href="/index.php?title=Template:RAW:QUERTY&amp;action=edit&amp;redlink=1" class="new" title="Template:RAW:QUERTY (page does not exist)">Template:RAW:QUERTY</a> </p> /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/includes/parser/NewParserTest.php:545 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiTestCase.php:60 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiPHPUnitCommand.php:20 /home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/phpunit.php:60 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/93534
* Merge iwtransclusion branch into trunkSam Reed2011-07-301-1/+166
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/93530
* Fixes for r92538 & r92528:Robin Pepermans2011-07-211-6/+11
| | | | | | | | * use default null for $local * use foreach for database result Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/92813
* Follow-up r92528:Robin Pepermans2011-07-191-17/+5
| | | | | | | | | * remove @static * return database result directly (no need for while()) * getAllPrefixesDb() -> getAllPrefixesDB() Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/92538
* (bug 19838) API does not use interwiki cache.Robin Pepermans2011-07-191-0/+119
| | | | | | | Patch by Beau; modified to work with current code. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/92528
* Allow rows missing iw_trans or iw_local to be considered valid.Daniel Friesen2011-04-231-3/+3
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/86747
* Move the Interwiki class to includes/interwiki/ to make way for a more ↵Daniel Friesen2011-04-231-0/+272
flexible Interwiki system. Do this first since svn doesn't support editing and moving a file in the same commit. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/86746