lhc/web/wiklou.git
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

16 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.

16 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.

16 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.

16 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.

16 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.

16 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

16 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.

16 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. :)

16 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.

16 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.

16 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. :)

16 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.

16 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?)

16 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

16 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.

16 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

16 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 :-)

16 years agoRevert r36776 -- this function doesn't return a value on success, why on failure?
Brion Vibber [Wed, 2 Jul 2008 19:30:46 +0000 (19:30 +0000)]
Revert r36776 -- this function doesn't return a value on success, why on failure?

16 years agoUse page_title and page_namespace instead of rc_title and rc_namespace so that moving...
Ilmari Karonen [Wed, 2 Jul 2008 18:55:56 +0000 (18:55 +0000)]
Use page_title and page_namespace instead of rc_title and rc_namespace so that moving a page immediately after creating it won't fool the namespace filter. (bug 3481)

16 years agoRevert r36755 for the moment; various things use 'new Database'
Brion Vibber [Wed, 2 Jul 2008 18:22:38 +0000 (18:22 +0000)]
Revert r36755 for the moment; various things use 'new Database'
or Database::newFromParams() explicitly at the moment. While that's already bad (breaking PG support etc), I'd rather see those get fixed before we go introducing differences between Database and DatabaseMySql.

16 years agoLocalisation updates: Adding/updating Persian translations
Huji [Wed, 2 Jul 2008 18:15:18 +0000 (18:15 +0000)]
Localisation updates: Adding/updating Persian translations

16 years agoLocalisation updates for core messages from Betawiki (2008-07-02 19:44 CEST)
Siebrand Mazeland [Wed, 2 Jul 2008 18:05:35 +0000 (18:05 +0000)]
Localisation updates for core messages from Betawiki (2008-07-02 19:44 CEST)

16 years agoLocalisation updates German
Raimond Spekking [Wed, 2 Jul 2008 16:28:22 +0000 (16:28 +0000)]
Localisation updates German

16 years agoLocalisation updates for core messages from Betawiki (2008-07-02 16:09 CEST)
Siebrand Mazeland [Wed, 2 Jul 2008 15:06:39 +0000 (15:06 +0000)]
Localisation updates for core messages from Betawiki (2008-07-02 16:09 CEST)

16 years agoAllow raw HTML blocks in data['sidebar'] array. This provides a simple ways for exten...
Daniel Kinzler [Wed, 2 Jul 2008 14:45:29 +0000 (14:45 +0000)]
Allow raw HTML blocks in data['sidebar'] array. This provides a simple ways for extensions to inject portlets containing arbitrary HTML code. For use by CategoryTree and others.

16 years ago(bug 14698) Make "Block account creation" work as advertised. :)
Chad Horohoe [Wed, 2 Jul 2008 14:40:48 +0000 (14:40 +0000)]
(bug 14698) Make "Block account creation" work as advertised. :)

16 years agoAdding the id's to the headings might make it work better.
Chad Horohoe [Wed, 2 Jul 2008 13:42:12 +0000 (13:42 +0000)]
Adding the id's to the headings might make it work better.

16 years ago(bug 13862) Add TOC to Special:SpecialPages.
Chad Horohoe [Wed, 2 Jul 2008 13:39:22 +0000 (13:39 +0000)]
(bug 13862) Add TOC to Special:SpecialPages.

16 years agoUpdate.
Rotem Liss [Wed, 2 Jul 2008 12:59:53 +0000 (12:59 +0000)]
Update.

16 years ago* More descriptive message for Special:Blankpage.
Rotem Liss [Wed, 2 Jul 2008 12:58:33 +0000 (12:58 +0000)]
* More descriptive message for Special:Blankpage.
* Update for he.

16 years agoAppend subtitle to keep existing stuff for redirects (bug 14696)
Aaron Schulz [Wed, 2 Jul 2008 10:33:42 +0000 (10:33 +0000)]
Append subtitle to keep existing stuff for redirects (bug 14696)

16 years agoTweak 'previewnote' a bit: Add a handy link to the edit box. Especially useful on...
Raimond Spekking [Wed, 2 Jul 2008 09:51:21 +0000 (09:51 +0000)]
Tweak 'previewnote' a bit: Add a handy link to the edit box. Especially useful on long pages.

16 years ago* Partial revert of r36692. Has been spewing fatal errors for few days already
Niklas Laxström [Wed, 2 Jul 2008 07:36:42 +0000 (07:36 +0000)]
* Partial revert of r36692. Has been spewing fatal errors for few days already

16 years agoRevert r36523 -- removal of the fieldset made Recentchanges/Recentchangeslinked very...
Brion Vibber [Wed, 2 Jul 2008 02:31:05 +0000 (02:31 +0000)]
Revert r36523 -- removal of the fieldset made Recentchanges/Recentchangeslinked very ugly!
Options were in a table, which ended up showing white background without the fieldset (some sites use a light blue background for specials).
Generally everything just ran together, making it hard to visually distinguish the bits of the page.
It's looking much better with the set restored...

16 years agocleanup -- remove added commented-out line
Brion Vibber [Wed, 2 Jul 2008 02:05:28 +0000 (02:05 +0000)]
cleanup -- remove added commented-out line

16 years agoCleanup for r36660: use PHP 5 __construct() name for constructors to make things...
Brion Vibber [Wed, 2 Jul 2008 02:02:26 +0000 (02:02 +0000)]
Cleanup for r36660: use PHP 5 __construct() name for constructors to make things a little clearer when calling parent constructors and such

16 years ago* fix error in buildSelector function
Ryan Schmidt [Wed, 2 Jul 2008 01:44:20 +0000 (01:44 +0000)]
* fix error in buildSelector function

16 years agoSome cleanup for r36609:
Brion Vibber [Wed, 2 Jul 2008 01:19:00 +0000 (01:19 +0000)]
Some cleanup for r36609:
$url and $alt parameters in makeExternalImage() are now normalized to be escaped on output instead of before they reach the function. This ensures that any hooks processing them won't accidentally send plaintext which might become an injection vector, or just get confused on pre-escaped input they didn't expect.

16 years agoformat fix
Brion Vibber [Wed, 2 Jul 2008 01:05:08 +0000 (01:05 +0000)]
format fix

16 years agoOpenSearch cleanup; Firefox now sends you to the search page for empty searches inste...
Brion Vibber [Tue, 1 Jul 2008 23:31:24 +0000 (23:31 +0000)]
OpenSearch cleanup; Firefox now sends you to the search page for empty searches instead of the domain root (which may not even be a wiki).
This is done by adding the <moz:SearchForm> extension element with the Special:Search URL.

Removed the 24-character truncation on ShortName... neither Firefox nor IE seems to care about longer names, but both expect the ShortName and <link> title to match, and will think you have a duplicate search provider if they don't match because only one was truncated. (Besides, 24 was longer than the spec's limit of 16 -- why bother limiting at all if not to spec?)

The JSON suggestions are now no longer included in the OpenSearch description if the API is disabled, since the interface won't work.

Generally removed some hardcoded escape-then-stick-vars-in-string-output eww... Extension hooks now have a more general opportunity to alter or replace the OpenSearch URLs by tying into the OpenSearchUrls hook.

16 years agoAdd comment explaining mystery list of IP addresses
Aryeh Gregor [Tue, 1 Jul 2008 22:30:06 +0000 (22:30 +0000)]
Add comment explaining mystery list of IP addresses

16 years agoPer r36856: Add new messages to message files.
Raimond Spekking [Tue, 1 Jul 2008 21:00:41 +0000 (21:00 +0000)]
Per r36856: Add new messages to message files.

16 years agoallow Category objects for empty categories
Daniel Kinzler [Tue, 1 Jul 2008 20:49:23 +0000 (20:49 +0000)]
allow Category objects for empty categories

16 years ago* Special:BlankPage is not part of the API
Aryeh Gregor [Tue, 1 Jul 2008 20:22:54 +0000 (20:22 +0000)]
* Special:BlankPage is not part of the API
* Use CamelCase for special pages
* No need to list BlankPage, that will really confuse people (although I realize Domas finds that entertaining)
* Slightly more descriptive RELEASE-NOTE

16 years agoone bug slipped through QA procedures
Domas Mituzas [Tue, 1 Jul 2008 20:03:23 +0000 (20:03 +0000)]
one bug slipped through QA procedures

16 years agonew feature! a blank special page! (thanks to everyone, who made Special:Version...
Domas Mituzas [Tue, 1 Jul 2008 19:55:17 +0000 (19:55 +0000)]
new feature! a blank special page! (thanks to everyone, who made Special:Version heavy :)

16 years agoReplace underscores in target
Aaron Schulz [Tue, 1 Jul 2008 15:35:21 +0000 (15:35 +0000)]
Replace underscores in target

16 years agoriding the bandwagon :)
Aaron Schulz [Tue, 1 Jul 2008 14:31:20 +0000 (14:31 +0000)]
riding the bandwagon :)

16 years agoRemove SearchTearch2.php, SearchPostgres.php is used instead.
Greg Sabino Mullane [Tue, 1 Jul 2008 13:00:01 +0000 (13:00 +0000)]
Remove SearchTearch2.php, SearchPostgres.php is used instead.

16 years agoUpdate and fixes.
Rotem Liss [Tue, 1 Jul 2008 11:45:57 +0000 (11:45 +0000)]
Update and fixes.

16 years agoRemoving movepage-moved, using movepage-page-moved in its place. The former was actua...
Huji [Tue, 1 Jul 2008 11:22:44 +0000 (11:22 +0000)]
Removing movepage-moved, using movepage-page-moved in its place. The former was actually a bolded version of the later.

16 years agoPass $mediaWiki object to MediawikiPerformAction hook.
Chad Horohoe [Tue, 1 Jul 2008 03:56:16 +0000 (03:56 +0000)]
Pass $mediaWiki object to MediawikiPerformAction hook.

16 years agoMore comments, refactor for less code duplication.
Aryeh Gregor [Tue, 1 Jul 2008 01:17:39 +0000 (01:17 +0000)]
More comments, refactor for less code duplication.

16 years agoTweak code style a little more: add more escaping and make the default value for...
Aryeh Gregor [Tue, 1 Jul 2008 00:57:39 +0000 (00:57 +0000)]
Tweak code style a little more: add more escaping and make the default value for $class clearer.  Add some comments, rename poorly-named variables, use lowercase for reserved words.

16 years agoWrap comments to 79 chars, not some arbitrary number. Fix a typo in a comment. ...
Aryeh Gregor [Tue, 1 Jul 2008 00:40:53 +0000 (00:40 +0000)]
Wrap comments to 79 chars, not some arbitrary number.  Fix a typo in a comment.  Add some escaping that's probably unnecessary but makes me feel better.

16 years ago(bug 14687) OutputPage::addStyle() now adds type="text/css" like it should.
Chad Horohoe [Mon, 30 Jun 2008 20:00:06 +0000 (20:00 +0000)]
(bug 14687) OutputPage::addStyle() now adds type="text/css" like it should.

16 years agoAdd $wgAdditionalXMLTypes, an array of XML mimetypes we can check for with MimeMagic.
Chad Horohoe [Mon, 30 Jun 2008 14:46:19 +0000 (14:46 +0000)]
Add $wgAdditionalXMLTypes, an array of XML mimetypes we can check for with MimeMagic.

16 years agoMake member counts from the new category table available for subcategories, beef...
Daniel Kinzler [Mon, 30 Jun 2008 14:06:36 +0000 (14:06 +0000)]
Make member counts from the new category table available for subcategories, beef up Category object a bit. This is mainly for use by the CategoryTree extension. NOTE: this changes the query used to fetch category listings!

16 years agoPartial revert of r36804:
Daniel Friesen [Mon, 30 Jun 2008 09:22:00 +0000 (09:22 +0000)]
Partial revert of r36804:
Removing the wfSharedTable function.
The function uses a $wgExternalSharedDB which is not part of Core, and has not been defined in default settings. The variable itself has no apparent purpose and is likely to make the existing use of $wgSharedDB even more complex and prone to breakage.

The function wfSharedTable itself, appears more like a Wikia made function to support transition of 1.12 wiki in which $wgSharedTables did not exist over to 1.13 in which it does exist.
If this is the actual point of it, then it serves no point in being added to core. 1.13 already has $wgSharedTables and it serves better to append to that, than to use wfSharedTable. This is something that extensions should be defining themselves if they need it for transition from old 1.12 wiki to 1.13.

16 years agoTwo new hooks and one new global function from Wikia codebase
Jack Phoenix [Mon, 30 Jun 2008 08:42:09 +0000 (08:42 +0000)]
Two new hooks and one new global function from Wikia codebase

16 years agoSome missing changes for the $wgShared(DB|Prefix|Tables) setup:
Daniel Friesen [Mon, 30 Jun 2008 05:16:38 +0000 (05:16 +0000)]
Some missing changes for the $wgShared(DB|Prefix|Tables) setup:
* $wgCookiePrefix:
** Shared stuff should always come before local stuff when setting the cookie prefix (by my count, if you set $wgSharedDB and $wgDBprefix with the old order, even though your usertable is shared, your cookies would be local and logins wouldn't be shared right.
** Because the user table isn't always shared anymore, we only want shared code when $wgSharedTables has 'user' set inside of it.
** We now have $wgSharedPrefix, this should also be accounted for in the cookie prefix.
* updaders.inc: The logic for the $doUser test has changed since the conditions that the user table is shared has changed. Now when $shared is true we only want to $doUser when we have a shared database and 'user' is being shared, otherwise if $shared is false, we only want to $doUser when there is no shared database, or 'user' is not being shared.

Check MediaWiki.org's $wgSharedDB documentation for those on 1.12, I'll post a link there to a patch I maintain for 1.12.

16 years agoRevert r35821, the change brokes the message cache what the MediaWiki:Conversiontable...
Shinjiman [Mon, 30 Jun 2008 03:02:06 +0000 (03:02 +0000)]
Revert r35821, the change brokes the message cache what the MediaWiki:Conversiontable/xx-xx are using, also this would lose the effects what have been set in the MediaWiki:Conversiontable/xx-xx.

16 years agoPut this is getHeadLinks() instead to reduce code duplication. Also, update RELEASE...
Aryeh Gregor [Mon, 30 Jun 2008 01:34:07 +0000 (01:34 +0000)]
Put this is getHeadLinks() instead to reduce code duplication.  Also, update RELEASE-NOTES.

16 years ago* adding <meta name="generator" content="MediaWiki $wgVersion" />
Danny B [Mon, 30 Jun 2008 01:26:02 +0000 (01:26 +0000)]
* adding <meta name="generator" content="MediaWiki $wgVersion" />

16 years agoksh - new skin names translated.
Purodha B Blissenbach [Mon, 30 Jun 2008 00:03:32 +0000 (00:03 +0000)]
ksh - new skin names translated.

16 years agoAnother regression from r36678: dieUsageMsg() expects an array, not varargs.
Roan Kattouw [Sun, 29 Jun 2008 22:29:08 +0000 (22:29 +0000)]
Another regression from r36678: dieUsageMsg() expects an array, not varargs.

16 years agoFix regression from r36678: we can't use $this->dieUsageMsg() in a static method...
Roan Kattouw [Sun, 29 Jun 2008 22:26:23 +0000 (22:26 +0000)]
Fix regression from r36678: we can't use $this->dieUsageMsg() in a static method, so let's make ApiQueryBase::keyToTitle() and titleToKey() non-static.

16 years agoAdded missing dirs (includes/db, includes/parser, includes/specials)
Alexandre Emsenhuber [Sun, 29 Jun 2008 22:09:39 +0000 (22:09 +0000)]
Added missing dirs (includes/db, includes/parser, includes/specials)

16 years agoRemove hack for old APC bug that's fixed now. Was causing problems for DumpHTML ...
Tim Starling [Sun, 29 Jun 2008 20:02:42 +0000 (20:02 +0000)]
Remove hack for old APC bug that's fixed now. Was causing problems for DumpHTML (and probably other command line scripts) because $IP was not the same as dirname(__FILE__), causing double-inclusion.

16 years ago(bug 14670) Return false if AutoLoader can't find a class.
Chad Horohoe [Sun, 29 Jun 2008 03:42:37 +0000 (03:42 +0000)]
(bug 14670) Return false if AutoLoader can't find a class.

16 years ago(bug 14678) Make API respect $wgShowSQLErrors and $wgShowExceptionDetails. Patch...
Chad Horohoe [Sun, 29 Jun 2008 00:07:13 +0000 (00:07 +0000)]
(bug 14678) Make API respect $wgShowSQLErrors and $wgShowExceptionDetails. Patch by  Max Semenik.