Jack Phoenix
53a4b3d51f
coding style tweaks to Interwiki.php
2010-07-25 15:50:23 +00:00
Peter Potrowl
17a69a7841
Solving an issue in r69542
2010-07-20 08:47:06 +00:00
Roan Kattouw
b5fa13fde7
Add iw_api and iw_wikiid fields to the interwiki table, plus rudimentary support in Interwiki.php and Title.php . Code written by peter17 in the iwtransclusion branch. This revision is a partial merge of r68170, r68448, r69480, r69540 and r69541
2010-07-19 11:55:30 +00:00
Alexandre Emsenhuber
901698c3e9
* Fixed some doxygen warnings
...
* Consistency in documentation
2010-02-16 22:06:04 +00:00
Chad Horohoe
bb844233ed
(bug 10812) Interwiki links can have names and descriptions, fetched from message 'interwiki-desc-PREFIX', not really used anywhere yet though
2009-07-25 14:28:53 +00:00
Tim Starling
d93ea4874e
Added PHP port of CDB, with abstraction layer. Tested for correctness with a differential fuzz tester, not yet benchmarked. The idea is to open up new applications for CDB, and benefit both shell and shared hosting users.
...
Ported existing uses of CDB to the new abstraction layer.
2009-06-20 15:59:56 +00:00
Aaron Schulz
ddc6360164
Tweak brackets from r49012
2009-03-30 23:16:13 +00:00
Jack Phoenix
36d14ce34b
minor coding style tweaks to Interwiki.php
2009-03-29 16:18:58 +00:00
Brion Vibber
cacd5e1fbb
Revert r44804 "Store negative [interwiki] results in cache"
...
Caching negative results for a long period would be extremely annoying when adding a new prefix and discovering it doesn't work. Negative cache needs to either be much, much shorter or have a clear easy way to purge it.
2008-12-23 19:45:57 +00:00
Alexandre Emsenhuber
7dd06318fc
Use $wgInterwikiExpiry to set the expiry time of interwiki cache
2008-12-20 20:59:06 +00:00
Aaron Schulz
474a6bb804
Store negative results in cache
2008-12-19 14:51:42 +00:00
Tim Starling
746a6d27ce
Fixed totally broken and obviously untested Interwiki::getInterwikiCached().
2008-10-25 05:45:07 +00:00
Alexandre Emsenhuber
32d53e38ac
Fatal error: Call to undefined function getInterwikiCacheEntry() in ./includes/Interwiki.php on line 79
2008-10-13 19:15:46 +00:00
Brion Vibber
6effda76b5
Cleanup for r42022/r42023 interwiki stuff
...
* Remove duplicate code in Interwiki::isValidInterwiki(), which should help avoid future drift between the two copies
* Early return on prefix = '', we know it won't be valid :)
* Dump extra isValidInterwikiCached function -- just go through the regular fetch() path, it doesn't do much more processing.
* Simplify Title codepath in full URL generation to ensure we never call an invalid object
2008-10-13 18:43:55 +00:00
Matt Johnston
75ff889020
Fix r42022, always returning true for isValidInterwiki as I forgot to add the check.
2008-10-13 09:31:46 +00:00
Matt Johnston
2b9ab04dd3
Clean up Interwiki.php to meet Tim's suggestions. Hopefully should make cleaner to read as well.
2008-10-13 08:35:11 +00:00
Matt Johnston
18b624700f
Re-commit r41410 (parts of at least) with fixes (case problems). Passes all the tests brion mentioned.
2008-10-02 21:49:20 +00:00
Brion Vibber
e9f4e38587
Reverting r41410 -- broke interwikis totally in parser tests.
...
4 previously passing test(s) now FAILING! :(
* Inline interwiki link [Introduced between 30-Sep-2008 00:18:19, 1.14alpha (r41405) and 01-Oct-2008 16:31:38, 1.14alpha (r41504)]
* Inline interwiki link with empty title (bug 2372) [Introduced between 30-Sep-2008 00:18:19, 1.14alpha (r41405) and 01-Oct-2008 16:31:38, 1.14alpha (r41504)]
* Interwiki link encoding conversion (bug 1636) [Introduced between 30-Sep-2008 00:18:19, 1.14alpha (r41405) and 01-Oct-2008 16:31:38, 1.14alpha (r41504)]
* Interwiki link with fragment (bug 2130) [Introduced between 30-Sep-2008 00:18:19, 1.14alpha (r41405) and 01-Oct-2008 16:31:38, 1.14alpha (r41504)]
2008-10-01 16:59:51 +00:00
Matt Johnston
b368de47fd
* Add Linker::link flag for using article path
...
* Fix mistake in Interwiki-detecting code in Title
* Clean up Interwiki.php per Tim's recommendations
2008-09-30 01:56:54 +00:00
Alexandre Emsenhuber
ebc90c6ee9
svn:eol-style native
2008-09-29 18:20:43 +00:00
Matt Johnston
c7c92af0c7
Fix r41377 - Incompatible old keys caused Fatal Error
2008-09-29 10:14:45 +00:00
Matt Johnston
904c84d8d4
New format for accessing Interwiki data. Replaced all old ways within core I could find, but should be backwards compatible wherever needed.
...
Also fix the notes in RELEASE-NOTES to state PHP 5.2 recommended as certain classes require it (e.g. ForeignAPIRepo, which uses json_decode)
2008-09-29 10:08:46 +00:00
Brion Vibber
c75209d1f9
remove obsolete file
2005-07-05 07:34:50 +00:00
Antoine Musso
ba2afcd9fa
Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema
2004-09-03 23:00:01 +00:00
Antoine Musso
90155b8a97
Changing comments layout preparing for generated documentation with Phpdocumentor
2004-09-02 23:28:24 +00:00
Brion Vibber
3002e1d8a6
Move interwiki management from big ugly array into the database, with
...
memcached backing. Second 'wikipedia-interwiki.sql' has Wikipedia's
local interlanguage URLs.
2003-08-21 11:20:38 +00:00
Brion Vibber
1dd6e2df04
sk
2003-08-13 21:53:03 +00:00
Brion Vibber
e9f09fcb1b
cy,ro
2003-07-12 09:20:38 +00:00
Brion Vibber
971ff9d63e
hi
2003-07-11 06:02:46 +00:00
Brion Vibber
fcad912a42
sl
2003-07-10 09:21:35 +00:00
Brion Vibber
1990962313
ar url update
2003-07-08 20:18:12 +00:00
Brion Vibber
3d39190622
update he, hu urls
2003-07-08 11:22:18 +00:00
Brion Vibber
9d51f61661
Add zh-cn and zh-tw language prefixes in order to label simplified and traditional chinese; for now these both still point to zh.wikipedia.org, but are labeled differently in the interlanguage link list. Also, regexps expanded to better handle hypenated language codes
2003-07-02 07:29:54 +00:00
Brion Vibber
684a3c4c5d
Flesh out the rest of the XxWikiPedia interwiki links, add nds code
2003-06-25 06:00:50 +00:00
Brion Vibber
ad93c41cf9
Flesh out the rest of the XxWikiPedia interwiki links, add nds code
2003-06-25 05:58:56 +00:00
Erik Moeller
832f275f58
PageHistory, UserContributions and BackLinks Interwiki prefixes
2003-05-29 22:19:31 +00:00
Lee Daniel Crocker
d82c14fb4f
Initial revision
2003-04-14 23:10:40 +00:00