lhc/web/wiklou.git
15 years ago$dbr->select already returns a ResultWrapper, no need to re-wrap it :)
Nicolas Dumazet [Sun, 6 Jul 2008 13:31:35 +0000 (13:31 +0000)]
$dbr->select already returns a ResultWrapper, no need to re-wrap it :)

15 years agoOne more tweak: double global declaration of $wgOut
Alexandre Emsenhuber [Sun, 6 Jul 2008 12:45:52 +0000 (12:45 +0000)]
One more tweak: double global declaration of $wgOut

15 years agoShow extension name only if its checks are not empty.
Rotem Liss [Sun, 6 Jul 2008 11:12:02 +0000 (11:12 +0000)]
Show extension name only if its checks are not empty.

15 years agoFlaggedRevs refactoring:
Aaron Schulz [Sun, 6 Jul 2008 11:01:32 +0000 (11:01 +0000)]
FlaggedRevs refactoring:
* Permalink Id hook redundant; output Id set
* Use output Id for lastmod link to remove duplication
* Combine some hooked functions
* Mark visibility

15 years agoFix syntax error
Siebrand Mazeland [Sun, 6 Jul 2008 10:34:58 +0000 (10:34 +0000)]
Fix syntax error

15 years agomResult is never used, removing it.
Nicolas Dumazet [Sun, 6 Jul 2008 10:12:41 +0000 (10:12 +0000)]
mResult is never used, removing it.

15 years agoVarious fixes.
Rotem Liss [Sun, 6 Jul 2008 10:08:24 +0000 (10:08 +0000)]
Various fixes.

15 years agoUpdate.
Rotem Liss [Sun, 6 Jul 2008 08:07:15 +0000 (08:07 +0000)]
Update.

15 years agoTrim up trailing newlines before footer gets added.
Chad Horohoe [Sun, 6 Jul 2008 01:48:48 +0000 (01:48 +0000)]
Trim up trailing newlines before footer gets added.

15 years agoLocalisation updates for core messages from Betawiki (2008-07-06 00:51 CEST)
Siebrand Mazeland [Sat, 5 Jul 2008 23:04:02 +0000 (23:04 +0000)]
Localisation updates for core messages from Betawiki (2008-07-06 00:51 CEST)

15 years agoRevert r37078, 37132 "New hook ParserBeforeTranscludeTemplate:
Brion Vibber [Sat, 5 Jul 2008 22:45:37 +0000 (22:45 +0000)]
Revert r37078, 37132 "New hook ParserBeforeTranscludeTemplate:
This hook allows for modification of the title and text of a template which is being transcluded.

Use of this hook will allow extensions to create features such as TransWiki for an alternative to ScaryTransclusions."

This hook seems a bit oddly placed to me; the template gets fetched locally, and *then* we give the opportunity to fetch it remotely instead? Just seems to be in the wrong order, and pretty unclear.

15 years agoAdd message 'undelete-fieldset-title' to resolve issue identified in r37095 and rever...
Siebrand Mazeland [Sat, 5 Jul 2008 22:41:06 +0000 (22:41 +0000)]
Add message 'undelete-fieldset-title' to resolve issue identified in r37095 and reverted in r37139

15 years agoRemove the uk button_link.png for the moment; I'm a little unclear on how proper...
Brion Vibber [Sat, 5 Jul 2008 22:22:56 +0000 (22:22 +0000)]
Remove the uk button_link.png for the moment; I'm a little unclear on how proper it is to embed GFDL images into the UI of the GPL software. While there is a LICENSE file sitting next to it, no one would ever see it.

15 years agofix order of labels
Brion Vibber [Sat, 5 Jul 2008 22:20:32 +0000 (22:20 +0000)]
fix order of labels

15 years agoRevert r37098 presumably based on reverted r37095
Brion Vibber [Sat, 5 Jul 2008 22:16:16 +0000 (22:16 +0000)]
Revert r37098 presumably based on reverted r37095

15 years agoRevert r37095 "Update message 'undelete'. Previous text was incorrect as pointed...
Brion Vibber [Sat, 5 Jul 2008 22:14:49 +0000 (22:14 +0000)]
Revert r37095 "Update message 'undelete'. Previous text was incorrect as pointed out by AlexSm."
Previous text was more accurate and clear than new text imho; reverting.

15 years agoMinor fix, $parser was passed instead of $this like it should have been.
Daniel Friesen [Sat, 5 Jul 2008 20:38:02 +0000 (20:38 +0000)]
Minor fix, $parser was passed instead of $this like it should have been.

15 years agoLocalisation updates for core messages from Betawiki (2008-07-05 21:42 CEST)
Siebrand Mazeland [Sat, 5 Jul 2008 20:06:18 +0000 (20:06 +0000)]
Localisation updates for core messages from Betawiki (2008-07-05 21:42 CEST)

15 years agoAdd 'emailuserfooter'
Siebrand Mazeland [Sat, 5 Jul 2008 19:50:57 +0000 (19:50 +0000)]
Add 'emailuserfooter'

15 years agoHandle multi-insert ignores properly, as pointed out on wikitech.
Greg Sabino Mullane [Sat, 5 Jul 2008 17:00:01 +0000 (17:00 +0000)]
Handle multi-insert ignores properly, as pointed out on wikitech.

15 years ago* Re-implement the message caches for r35821
Shinjiman [Sat, 5 Jul 2008 15:39:10 +0000 (15:39 +0000)]
* Re-implement the message caches for r35821
* Tweaked the message fetching on the MediaWiki:Conversiontable/xx-xx by changes of the message caching
  patch by Nikerabbit

15 years ago* Allow grammar
Niklas Laxström [Sat, 5 Jul 2008 15:15:40 +0000 (15:15 +0000)]
* Allow grammar

15 years agoRe-implement "Email user footer,"
Chad Horohoe [Sat, 5 Jul 2008 14:43:56 +0000 (14:43 +0000)]
Re-implement "Email user footer,"
* Now grabs message from global language instead of user's UI lang.
* Added a separator between msg and footer
* Shortened message
* Removed a bunch of useless params from the previous incarnation of this.

15 years agoLocalisation updates Cantonese, Chinese and Old/Late Time Chinese
Shinjiman [Sat, 5 Jul 2008 14:41:01 +0000 (14:41 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese

15 years agoFix incorrect link button name
Siebrand Mazeland [Sat, 5 Jul 2008 14:06:34 +0000 (14:06 +0000)]
Fix incorrect link button name

15 years agosvn:eol-style
Siebrand Mazeland [Sat, 5 Jul 2008 14:05:03 +0000 (14:05 +0000)]
svn:eol-style

15 years agoCustom buttons for Ukranian
Siebrand Mazeland [Sat, 5 Jul 2008 14:02:59 +0000 (14:02 +0000)]
Custom buttons for Ukranian

15 years agoUpdate and fixes.
Rotem Liss [Sat, 5 Jul 2008 13:13:44 +0000 (13:13 +0000)]
Update and fixes.

15 years agomoving $cat = new self() before $cat->mTitle = $title ; PHP was unhappy.
Nicolas Dumazet [Sat, 5 Jul 2008 13:13:29 +0000 (13:13 +0000)]
moving $cat = new self() before $cat->mTitle = $title ; PHP was unhappy.

15 years agoUpdate message 'undelete'. Previous text was incorrect as pointed out by AlexSm.
Siebrand Mazeland [Sat, 5 Jul 2008 12:43:51 +0000 (12:43 +0000)]
Update message 'undelete'. Previous text was incorrect as pointed out by AlexSm.

15 years agoRemoved "See diff.doc", it seems that this file never existed
Alexandre Emsenhuber [Sat, 5 Jul 2008 11:59:58 +0000 (11:59 +0000)]
Removed "See diff.doc", it seems that this file never existed

15 years agoVarious fixes.
Rotem Liss [Sat, 5 Jul 2008 11:52:11 +0000 (11:52 +0000)]
Various fixes.

15 years ago* Added $IP in dirs for OpenSearchUrls hook
Alexandre Emsenhuber [Sat, 5 Jul 2008 11:36:55 +0000 (11:36 +0000)]
* Added $IP in dirs for OpenSearchUrls hook
* getHooksFromDoc() now returns an unique array
* 80 chars per line in docs/hooks.txt

15 years agoFix regression from r37046: tokens should not be supplied when in JSON callback mode...
Roan Kattouw [Sat, 5 Jul 2008 11:18:50 +0000 (11:18 +0000)]
Fix regression from r37046: tokens should not be supplied when in JSON callback mode. Also remove ApiQueryBase::getTokenFlag() which is now obsolete.

15 years agoNew hook ParserBeforeTranscludeTemplate:
Daniel Friesen [Sat, 5 Jul 2008 03:36:12 +0000 (03:36 +0000)]
New hook ParserBeforeTranscludeTemplate:
This hook allows for modification of the title and text of a template which is being transcluded.

Use of this hook will allow extensions to create features such as TransWiki for an alternative to ScaryTransclusions.

15 years agoRevert r37009 -- turns out you can do these structures, it's just very nonobvious. :)
Brion Vibber [Fri, 4 Jul 2008 22:44:57 +0000 (22:44 +0000)]
Revert r37009 -- turns out you can do these structures, it's just very nonobvious. :)

An anonymous sub-array allows creating sub-elements in addition to the attributes:
array(
    'attrib1' => 'val1',
    'attrib2' => 'val2',
    array(
        'tag' => 'stuff',
        'tag2' => 'stuff2',
    )
)

15 years agoBreak localized edit buttons into subdirectories so they'll stay manageable
Brion Vibber [Fri, 4 Jul 2008 21:48:42 +0000 (21:48 +0000)]
Break localized edit buttons into subdirectories so they'll stay manageable

15 years agofix sql syntax error
Brion Vibber [Fri, 4 Jul 2008 21:39:08 +0000 (21:39 +0000)]
fix sql syntax error

15 years agoAdded localization of edit button images for Tarask Belarusian (be-tarask).
Mohamed Magdy [Fri, 4 Jul 2008 21:33:08 +0000 (21:33 +0000)]
Added localization of edit button images for Tarask Belarusian (be-tarask).
Images by http://commons.wikimedia.org/wiki/User:AlexeyMargolin

15 years agoRevert r37063 "KTHMLfixes no longer loaded on skins where it doesn't exist. (bug...
Brion Vibber [Fri, 4 Jul 2008 21:23:00 +0000 (21:23 +0000)]
Revert r37063 "KTHMLfixes no longer loaded on skins where it doesn't exist. (bug 14717)"
* Hardcoding to monobook doesn't make sense here; other skins may include such fix files
* Only addressing KHTMLfixes doesn't make sense here; there's a big pile of Opera fixes right above it which would presumably suffer the same problem

If these are required, and are required per-skin, then the skin should probably specify to the JS which ones it needs.
On the other hand, if they're not required, or can be done in a skin-independent fashion, then that should be checked.

15 years agoKTHMLfixes no longer loaded on skins where it doesn't exist. (bug 14717)
Chad Horohoe [Fri, 4 Jul 2008 16:43:44 +0000 (16:43 +0000)]
KTHMLfixes no longer loaded on skins where it doesn't exist. (bug 14717)

15 years agoProperly handle the 'IGNORE' option passed to the insert funtion:
Greg Sabino Mullane [Fri, 4 Jul 2008 15:57:44 +0000 (15:57 +0000)]
Properly handle the 'IGNORE' option passed to the insert funtion:
rather than just turning off errors, do some savepoint trickery
so we end at the same state as when we started, to emulate
MySQL's INSERT...IGNORE. Bug 14708.

15 years agofix encoding problems on r37058
Shinjiman [Fri, 4 Jul 2008 15:17:40 +0000 (15:17 +0000)]
fix encoding problems on r37058

15 years ago* (bug 14604) Update LanguageConverter for T (Title) conversion
Shinjiman [Fri, 4 Jul 2008 15:01:41 +0000 (15:01 +0000)]
* (bug 14604) Update LanguageConverter for T (Title) conversion
  bugzilla attachment 5048
  patch by fdcn
* Localisation updates Cantonese, Chinese and Old/Late Time Chinese

15 years agoAdded localization of edit button images for Arabic language.
Mohamed Magdy [Fri, 4 Jul 2008 14:55:17 +0000 (14:55 +0000)]
Added localization of edit button images for Arabic language.
Image translation by AhmadSherif. GPL font Kacst Naskh (http://ceri.kacst.edu.sa/fonts.htm).

15 years agoRemove non working, obsolete ICRepo. Use the working ForeignAPIRepo.
Bryan Tong Minh [Fri, 4 Jul 2008 14:20:41 +0000 (14:20 +0000)]
Remove non working, obsolete ICRepo. Use the working ForeignAPIRepo.

15 years agoDon't pass $db, as Tim Starling advises
Victor Vasiliev [Fri, 4 Jul 2008 13:04:03 +0000 (13:04 +0000)]
Don't pass $db, as Tim Starling advises

15 years agotimezone-utc translation.
Mohamed Magdy [Fri, 4 Jul 2008 12:38:51 +0000 (12:38 +0000)]
timezone-utc translation.

15 years agoadding explanations break the feature, page is supposed to be blank! kind of! revert...
Domas Mituzas [Fri, 4 Jul 2008 12:20:45 +0000 (12:20 +0000)]
adding explanations break the feature, page is supposed to be blank! kind of! revert r36902

15 years agoRewritten the way the API handles tokens:
Roan Kattouw [Fri, 4 Jul 2008 12:07:02 +0000 (12:07 +0000)]
Rewritten the way the API handles tokens:
* Instead of hardcoding stuff all over the place, use callbacks
* Extensions can now add their own tokens to prop=info or prop=revisions using hooks

15 years agomCategoties -> mCategories
Nicolas Dumazet [Fri, 4 Jul 2008 11:01:02 +0000 (11:01 +0000)]
mCategoties -> mCategories
Oops, that typo was surviving here since March :p

15 years agoCorrecting commit 37038 : only getXXXDeletions were simple array_diff_assoc. Sorry
Nicolas Dumazet [Fri, 4 Jul 2008 10:51:04 +0000 (10:51 +0000)]
Correcting commit 37038 : only getXXXDeletions were simple array_diff_assoc. Sorry

15 years ago* (bug 11732) Allow localisation of edit button images
Niklas Laxström [Fri, 4 Jul 2008 10:34:41 +0000 (10:34 +0000)]
* (bug 11732) Allow localisation of edit button images

15 years agosyntax fix
Nicolas Dumazet [Fri, 4 Jul 2008 10:30:48 +0000 (10:30 +0000)]
syntax fix

15 years ago6 array_diff_* were computed twice. Compute once, and remember them instead.
Nicolas Dumazet [Fri, 4 Jul 2008 10:24:20 +0000 (10:24 +0000)]
6 array_diff_* were computed twice. Compute once, and remember them instead.

15 years agoLocalisation updates: Adding/updating Persian translations
Huji [Fri, 4 Jul 2008 09:41:48 +0000 (09:41 +0000)]
Localisation updates: Adding/updating Persian translations

15 years agoRe-commit fixed r37006
Aaron Schulz [Fri, 4 Jul 2008 09:38:12 +0000 (09:38 +0000)]
Re-commit fixed r37006

15 years ago* (bug 14723) Added time zone and writing direction to meta=siteinfo. Patch by MaxSem
Victor Vasiliev [Fri, 4 Jul 2008 09:21:11 +0000 (09:21 +0000)]
* (bug 14723) Added time zone and writing direction to meta=siteinfo. Patch by MaxSem
* Some random cleanup

15 years agoLocalisation updates for core messages from Betawiki (2008-07-04 22:44 CEST)
Siebrand Mazeland [Fri, 4 Jul 2008 07:18:02 +0000 (07:18 +0000)]
Localisation updates for core messages from Betawiki (2008-07-04 22:44 CEST)

15 years agoTrying to resolve commit r37017/revert r37018: Throw an E_USER_NOTICE saying that...
Siebrand Mazeland [Fri, 4 Jul 2008 06:47:47 +0000 (06:47 +0000)]
Trying to resolve commit r37017/revert r37018: Throw an E_USER_NOTICE saying that function is deprecated for wfGetHTTP() and wfIsLocalURL()

15 years agoRevert r37017. Please do not remove functions unless you have a really really good...
Tim Starling [Fri, 4 Jul 2008 02:52:44 +0000 (02:52 +0000)]
Revert r37017. Please do not remove functions unless you have a really really good reason, say because you actually want to break all extensions that use them because the underlying functionality needs to be removed. There are more extensions out of Wikimedia version control than in it, and many sysadmins will not update their extensions simultaneously with the core.

15 years agoRemove wfGetHTTP() and wfIsLocalUrl(). Unused wrapper functions for stuff in the...
Chad Horohoe [Fri, 4 Jul 2008 02:25:38 +0000 (02:25 +0000)]
Remove wfGetHTTP() and wfIsLocalUrl(). Unused wrapper functions for stuff in the Http class.

15 years agoTypo in variable name.
Chad Horohoe [Fri, 4 Jul 2008 01:59:13 +0000 (01:59 +0000)]
Typo in variable name.

15 years agoRevert r37006 -- causes fatal errors:
Brion Vibber [Fri, 4 Jul 2008 00:04:58 +0000 (00:04 +0000)]
Revert r37006 -- causes fatal errors:
PHP Fatal error:  Using $this when not in object context in Article.php on line 135

15 years agoLocalisation updates German
Raimond Spekking [Thu, 3 Jul 2008 21:39:29 +0000 (21:39 +0000)]
Localisation updates German

15 years agoSimplify configuration and make a better caching key.
Chad Horohoe [Thu, 3 Jul 2008 21:33:09 +0000 (21:33 +0000)]
Simplify configuration and make a better caching key.

15 years agoHave been playing with custom API modules and been a bit frustrated with the XML...
Brion Vibber [Thu, 3 Jul 2008 21:25:20 +0000 (21:25 +0000)]
Have been playing with custom API modules and been a bit frustrated with the XML output mode...
Adding pseudo-element _attribs alongside _element for XML output. There doesn't seem to be a good way currently to specify both attributes *and* subelements -- '*' lets you have text and attributes, but not sub-elements and attributes. Contents of _attribs will be added as attributes without disturbing the sub-elements.

15 years agoRevert thumb caching because it wasn't actually caching what I thought it was.
Chad Horohoe [Thu, 3 Jul 2008 21:12:32 +0000 (21:12 +0000)]
Revert thumb caching because it wasn't actually caching what I thought it was.

15 years agoRevert r36954 ("Change canonical name for BlockIP to BlockUser, since it's been used...
Brion Vibber [Thu, 3 Jul 2008 20:50:13 +0000 (20:50 +0000)]
Revert r36954 ("Change canonical name for BlockIP to BlockUser, since it's been used to block logged-in users as well as IP users since forever.")

If we're going to change it, we should probably just make it Special:Block. :)

15 years agoMake redirects work properly with flagging (bug 14714)
Aaron Schulz [Thu, 3 Jul 2008 20:37:44 +0000 (20:37 +0000)]
Make redirects work properly with flagging (bug 14714)

15 years agoMore L10n crap from Betawiki
Siebrand Mazeland [Thu, 3 Jul 2008 20:31:27 +0000 (20:31 +0000)]
More L10n crap from Betawiki
* special pages and magic words updates

15 years agoRevert r36916 for now ("(bug 14698) Make "Block account creation" work as advertised...
Brion Vibber [Thu, 3 Jul 2008 20:10:23 +0000 (20:10 +0000)]
Revert r36916 for now ("(bug 14698) Make "Block account creation" work as advertised.  :) ")
This doesn't appear to be working the right way; it's finding that permission is not allowed, but then trying to ignore particular reasons why it might not be allowed.
Correct fix should be to ensure that the correct result is actually obtained from the permission check in the first place!
Note that the error key may have 'autoblocktext' for autoblocks, which would not match this check as written.

15 years agoRevert r36907, 36908 ("(bug 13862) Add TOC to Special:SpecialPages.")
Brion Vibber [Thu, 3 Jul 2008 19:59:09 +0000 (19:59 +0000)]
Revert r36907, 36908 ("(bug 13862) Add TOC to Special:SpecialPages.")
* I'm not sure I really like the look of the horizontal layout for this many items.
* It reuses the "filetoc" ID, which is a poor practice as this isn't a file description page TOC. :)

The IDs for the sections are definitely useful as link anchors, but they may be ambiguous ("user", "wiki", etc) as well

15 years agoRevert r36893 and friends ("Tweak 'previewnote' a bit: Add a handy link to the edit...
Brion Vibber [Thu, 3 Jul 2008 19:50:27 +0000 (19:50 +0000)]
Revert r36893 and friends ("Tweak 'previewnote' a bit: Add a handy link to the edit box. Especially useful on long pages.")
* Mixes control link into general text, will be missing where it's customized
* Mixes control link into text with a specific style, which is bad form
* Behavior should be different when edit box is above the preview, but here it's hardcoded

15 years agoRefactor some code
Aaron Schulz [Thu, 3 Jul 2008 19:05:06 +0000 (19:05 +0000)]
Refactor some code

15 years agoCache thumbs from remote sources too.
Chad Horohoe [Thu, 3 Jul 2008 19:02:47 +0000 (19:02 +0000)]
Cache thumbs from remote sources too.

15 years ago-1 unused global.
Chad Horohoe [Thu, 3 Jul 2008 18:39:05 +0000 (18:39 +0000)]
-1 unused global.

15 years agoDon't use $wgTranscludeCacheExpiry, as it's not designed for this. Make new configura...
Chad Horohoe [Thu, 3 Jul 2008 18:37:31 +0000 (18:37 +0000)]
Don't use $wgTranscludeCacheExpiry, as it's not designed for this. Make new configuration setting for $wgForeignFileRepos instead called 'localCacheExpiry'.

15 years agoRefactor caching to utilize $wgMemc rather than the transcache table. Thanks to ialex...
Chad Horohoe [Thu, 3 Jul 2008 18:24:08 +0000 (18:24 +0000)]
Refactor caching to utilize $wgMemc rather than the transcache table. Thanks to ialex and VasilievVV. :)

15 years agodeleted svn:executable property
Alexandre Emsenhuber [Thu, 3 Jul 2008 16:22:04 +0000 (16:22 +0000)]
deleted svn:executable property

15 years agoLocalisation updates Cantonese, Chinese and Old/Late Time Chinese
Shinjiman [Thu, 3 Jul 2008 15:43:45 +0000 (15:43 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese

15 years agoApiParse: Don't display revid="" when there is no revid.
Roan Kattouw [Thu, 3 Jul 2008 15:01:50 +0000 (15:01 +0000)]
ApiParse: Don't display revid="" when there is no revid.

15 years agoLocalisation updates Cantonese, Chinese and Old/Late Time Chinese
Shinjiman [Thu, 3 Jul 2008 13:55:46 +0000 (13:55 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese

15 years agoBug 14088 - excessively long block expiry times no longer bork the logpage. Reject...
Chad Horohoe [Thu, 3 Jul 2008 13:00:12 +0000 (13:00 +0000)]
Bug 14088 - excessively long block expiry times no longer bork the logpage. Reject if over 50 chars.

15 years agoReplacing the fix for bug 12716.
Rotem Liss [Thu, 3 Jul 2008 12:25:52 +0000 (12:25 +0000)]
Replacing the fix for bug 12716.

15 years agoCache foreign image descriptions in the transcache, saves an Http::get() on cache...
Chad Horohoe [Thu, 3 Jul 2008 07:49:35 +0000 (07:49 +0000)]
Cache foreign image descriptions in the transcache, saves an Http::get() on cache hit.

15 years agobug 12716 - trying to unprotect a title that isn't protected no longer generates...
Chad Horohoe [Thu, 3 Jul 2008 05:25:38 +0000 (05:25 +0000)]
bug 12716 - trying to unprotect a title that isn't protected no longer generates a log entry.

15 years agoCleanup MediaWiki:Clearyourcache a little bit, from r36948, remove coloring.
SQL [Thu, 3 Jul 2008 02:56:16 +0000 (02:56 +0000)]
Cleanup MediaWiki:Clearyourcache a little bit, from r36948, remove coloring.

15 years agoRevert r36841 -- followup to reverted r36839
Brion Vibber [Wed, 2 Jul 2008 23:49:15 +0000 (23:49 +0000)]
Revert r36841 -- followup to reverted r36839

15 years agoRevert r36839 (merge of movepage-moved and movepage-page-moved) -- the two messages...
Brion Vibber [Wed, 2 Jul 2008 23:47:44 +0000 (23:47 +0000)]
Revert r36839 (merge of movepage-moved and movepage-page-moved) -- the two messages have different formats. One is wikitext, the other is plaintext.

15 years agoTrying this again. Define XML mimetypes in new global called $wgXMLMimeTypes. Used...
Chad Horohoe [Wed, 2 Jul 2008 23:25:20 +0000 (23:25 +0000)]
Trying this again. Define XML mimetypes in new global called $wgXMLMimeTypes. Used for MimeMagic detection of svg, etc. Now with less code and more documentation. :)

15 years agoRevert r36816 for the moment (Add $wgAdditionalXMLTypes, an array of XML mimetypes...
Brion Vibber [Wed, 2 Jul 2008 23:07:39 +0000 (23:07 +0000)]
Revert r36816 for the moment (Add $wgAdditionalXMLTypes, an array of XML mimetypes we can check for with MimeMagic.)

I very much like the idea of making this extensible, but the current implementation has a couple problems. I'd recommend addresses the following:
* The format of the array isn't documented; it has neither examples nor a description of the content format in its comment. If I wanted to add something to it, I wouldn't know what the result should look like without looking up the code.
* Rather than "additional" types, it might be best to simply list *all* the types we recognize in the default array -- then it can be modified and extended in local configuration. This would have the following benefits:
** Allows modifying existing types
** Defaults are an example of format, making the structure self-documenting
** Avoids code duplication -- we only have to check one array, not two, and don't have to worry about their formats getting out of sync.

15 years agoRevert the rest of r36804 -- ExtendJSGlobalVars and wfMessageCacheReplace hooks.
Brion Vibber [Wed, 2 Jul 2008 22:56:15 +0000 (22:56 +0000)]
Revert the rest of r36804 -- ExtendJSGlobalVars and wfMessageCacheReplace hooks.

ExtendJSGlobalVars is probably ok in function, though I don't really like its name.

wfMessageCacheReplace seems really unclear as to what it's trying to accomplish.

15 years agoAttempt to clean up some of the insanity in creating meta and link tags in the headers.
Brion Vibber [Wed, 2 Jul 2008 22:52:22 +0000 (22:52 +0000)]
Attempt to clean up some of the insanity in creating meta and link tags in the headers.
Values are now escaped consistently, which should be a good thing. :)

15 years agoFix a misspelled word in a comment added by r36916.
Aryeh Gregor [Wed, 2 Jul 2008 22:35:11 +0000 (22:35 +0000)]
Fix a misspelled word in a comment added by r36916.

15 years agoChange canonical name for BlockIP to BlockUser, since it's been used to block logged...
Aryeh Gregor [Wed, 2 Jul 2008 22:31:19 +0000 (22:31 +0000)]
Change canonical name for BlockIP to BlockUser, since it's been used to block logged-in users as well as IP users since forever.  I double-checked that "BlockIP" still works, in English and other languages.  (I guess this doesn't need a RELEASE-NOTES mention, since it's technically just a localization change?  Or is that too linguistically egalitarian an attitude?)

15 years agoFix bug 12517 Text change for MediaWiki:Clearyourcache
SQL [Wed, 2 Jul 2008 20:28:20 +0000 (20:28 +0000)]
Fix bug 12517 Text change for MediaWiki:Clearyourcache

15 years agoAdd hook to replace logic for generating category links. May be used by CategoryTree...
Daniel Kinzler [Wed, 2 Jul 2008 20:02:51 +0000 (20:02 +0000)]
Add hook to replace logic for generating category links. May be used by CategoryTree one day.

15 years agoFix for r36876: use the page name instead of 'recentchanges' to show "Related changes...
Alexandre Emsenhuber [Wed, 2 Jul 2008 19:52:52 +0000 (19:52 +0000)]
Fix for r36876: use the page name instead of 'recentchanges' to show "Related changes" instead of "Recent changes" in Special:Recentchangeslinked

15 years agoReturn true on success, not just false on failure. A bit of documentation as well :-)
Chad Horohoe [Wed, 2 Jul 2008 19:41:58 +0000 (19:41 +0000)]
Return true on success, not just false on failure. A bit of documentation as well :-)