Roan Kattouw [Tue, 20 Nov 2007 16:12:46 +0000 (16:12 +0000)]
APIEDIT BRANCH MERGE:
* Splitting DB code from IPBlocklist::doSubmit() to IPBlocklist::doUnblock()
* Introducing IPBlocklist::UNBLOCK_* constants
Note to scrutinizers: because I made changes like $this->ip to $ip on many lines, the diff for this revision looks very complicated. Most of that is just diff(1)'s stupidity. Comparing the code by hand (eye?) may be less confusing.
Roan Kattouw [Tue, 20 Nov 2007 15:22:06 +0000 (15:22 +0000)]
Check markbotedits permission on regular rollback as well
Siebrand Mazeland [Tue, 20 Nov 2007 14:33:46 +0000 (14:33 +0000)]
Fix syntax somewhat for 2 messages in 62 languages (shouldn't this be in the code?)
Brion Vibber [Tue, 20 Nov 2007 13:16:14 +0000 (13:16 +0000)]
Fix regression in parser testing with parser function hooks; format of internal structure changed, affecting copying of hooks from main to test parser.
Brion Vibber [Tue, 20 Nov 2007 12:58:34 +0000 (12:58 +0000)]
Initial implementation of restartable subprocess for text fetching in dumpTextPass.php
Raimond Spekking [Tue, 20 Nov 2007 12:11:05 +0000 (12:11 +0000)]
* Do not present an image bigger than the source when 'frameless' option is used
* This is consistent with the 'thumb' option now:
** Unchanged: [[Image:xyz.jpg|thumb]], [[Image:xyz.jpg|thumb|200px]] do not blow up an image larger than the source
** Unchanged: [[Image:xyz.jpg|frameless]] does not blow up an image
** New: [[Image:xyz.jpg|frameless|200px]] does not blow up an image
** Unchanged: [[Image:xyz.jpg|200px]] still blows up an image
Tim Starling [Tue, 20 Nov 2007 11:07:22 +0000 (11:07 +0000)]
A differential fuzz tester for the wikitext preprocessor. My changes don't pass it completely, but it was useful anyway, it found lots of bugs for me. Maybe it'll be useful to someone else some day. Best used with Parser_DiffTest.
Tim Starling [Tue, 20 Nov 2007 10:58:12 +0000 (10:58 +0000)]
A file repository without files. Gets rid of useless DB queries during parser testing.
Tim Starling [Tue, 20 Nov 2007 10:55:08 +0000 (10:55 +0000)]
* Refactored the parser. See my huge entry in RELEASE-NOTES for details.
* Made it possible to configure the parser class being used, via $wgParserConf.
* Moved defines from the top of Parser.php to either class constants or Defines.php
* Added Parser_DiffTest, a differential parser class for regression testing
* Added Parser_OldPP, a parser class which operates like the parser before this commit. I made one breaking change: a bugfix to avoid losing whitespace when adding MWTEMPLATESECTION markers.
* Made internal tidy work with PHP 5
* Added the ability to supply a hook for template fetching via ParserOptions. This is handy for testing.
* Updated parserTests.txt to account for the various breaking changes I made. Removed a few parser tests that no longer test for anything useful.
Raimond Spekking [Tue, 20 Nov 2007 10:15:35 +0000 (10:15 +0000)]
* Updates German
Rotem Liss [Tue, 20 Nov 2007 08:43:30 +0000 (08:43 +0000)]
Update.
Andrew Garrett [Tue, 20 Nov 2007 08:34:59 +0000 (08:34 +0000)]
* Ensure that rate-limiting is applied to rollbacks.
* Make a better rate-limiting error message (i.e. a normal MW error, rather than an "Internal Server Error").
Rotem Liss [Tue, 20 Nov 2007 07:29:12 +0000 (07:29 +0000)]
Update.
Siebrand Mazeland [Tue, 20 Nov 2007 07:25:04 +0000 (07:25 +0000)]
Localisation updates from Betawiki.
* an, stq, wuu
Andrew Garrett [Tue, 20 Nov 2007 07:11:39 +0000 (07:11 +0000)]
* Marking edits as bot edits with Special:Contributions?bot=1 now requires the markbotedit permission, rather than the rollback permission previously used. This permission is assigned by default to the sysop group.
Siebrand Mazeland [Mon, 19 Nov 2007 23:18:46 +0000 (23:18 +0000)]
Localisation updates from Betawiki.
* an, ay, br, ca, eu, fiu-vro, fo, fr, kaa, nl, qu, sdc, stq
Raimond Spekking [Mon, 19 Nov 2007 22:38:11 +0000 (22:38 +0000)]
* Do not force a password for account creation by email
set pseudo password, it will be replaced later by a random generated password
Raimond Spekking [Mon, 19 Nov 2007 21:24:20 +0000 (21:24 +0000)]
* (bug 3973) Use a separate message for the email content when an account is created by another user
Rotem Liss [Mon, 19 Nov 2007 17:52:34 +0000 (17:52 +0000)]
Typo.
Rotem Liss [Mon, 19 Nov 2007 17:51:48 +0000 (17:51 +0000)]
Fixing a typo that broke historywarning.
Rotem Liss [Mon, 19 Nov 2007 17:51:11 +0000 (17:51 +0000)]
Fixes.
Huji [Mon, 19 Nov 2007 16:13:25 +0000 (16:13 +0000)]
Right-to-Left-Marker should appear in the beginning of all of the strings, to ensure the text is shown in correct order in left-to-right wikis.
Roan Kattouw [Mon, 19 Nov 2007 16:13:24 +0000 (16:13 +0000)]
APIEDIT BRANCH MERGE:
* Splitting UI and DB logic in SpecialBlockip.php
** doBlock() does the actual work
** doSubmit() wraps around it
** Introduced BLOCK_* constants
Huji [Mon, 19 Nov 2007 16:06:26 +0000 (16:06 +0000)]
* Fixes bugs 12023, 12024 and 12025.
* Translation of the monthname-gen months ending with "heh" were updated.
* Date format was updated and completed.
Roan Kattouw [Mon, 19 Nov 2007 15:57:58 +0000 (15:57 +0000)]
Revert part of Brion's 27627: please don't throw away the child (maxlag) with the bathwater (format=raw)
Brion Vibber [Mon, 19 Nov 2007 15:38:56 +0000 (15:38 +0000)]
Reverting r27599
* Uses hardcoded magic numbers extensively, which is poor practice
* Adds two hooks with no documentation
* Dropping $class unencoded into the HTML output feels like bad practice to me
* A link-by-link coloring plugin sounds like it could be very expensive to begin with; I'm a bit leery of adding in such overhead.
Brion Vibber [Mon, 19 Nov 2007 15:32:06 +0000 (15:32 +0000)]
Revert r27581, 27598, 27626
format=raw is an HTML injection machine like action=raw but without any safeguards; it's trivial to create JavaScript exploits which hit at least Internet Explorer.
There's no reason to add a whole new danger point here when you've got machine-readable structure already... please do not add this raw formatter back.
Victor Vasiliev [Mon, 19 Nov 2007 15:08:18 +0000 (15:08 +0000)]
* Use ApiBase::dieDebug() to render maxlag error properly
* Allow modules to ignore maxlag attribute
Raimond Spekking [Mon, 19 Nov 2007 13:46:07 +0000 (13:46 +0000)]
* Updates German
Raimond Spekking [Mon, 19 Nov 2007 12:40:18 +0000 (12:40 +0000)]
* (bug 12006) Translation alternate names of special pages nds-nl
Patch by Servien
Tim Starling [Mon, 19 Nov 2007 10:22:29 +0000 (10:22 +0000)]
dataLoaded also needs to be set for negative cache hits.
Tim Starling [Mon, 19 Nov 2007 10:04:18 +0000 (10:04 +0000)]
Use setProps() to set properties in LocalFile::loadFromCache(), instead of DIY property-setting. I must have forgotten to do this when I introduced setProps(), the result was a bug (hereby fixed) causing zero cache-hit ratio for the image cache.
Tim Starling [Mon, 19 Nov 2007 09:43:47 +0000 (09:43 +0000)]
Fix bug in RepoGroup::getRepo(), 0 == 'local'
Siebrand Mazeland [Mon, 19 Nov 2007 08:39:46 +0000 (08:39 +0000)]
Fix encoding
Siebrand Mazeland [Mon, 19 Nov 2007 07:56:54 +0000 (07:56 +0000)]
Localisation updates from Betawiki.
* ca, kaa, sdc, ss
Daniel Cannon [Mon, 19 Nov 2007 04:06:47 +0000 (04:06 +0000)]
Erm .. wpReason.
Daniel Cannon [Mon, 19 Nov 2007 03:59:45 +0000 (03:59 +0000)]
* Fixed wgReason URL parameter to action=delete.
Tim Starling [Mon, 19 Nov 2007 03:25:16 +0000 (03:25 +0000)]
Better documentation for $wgDBservers, and lengthy warning about read_only mode.
Siebrand Mazeland [Mon, 19 Nov 2007 00:05:23 +0000 (00:05 +0000)]
Localisation updates from Betawiki.
* hak, hr, hsb, kaa, nds-nl, nl, pl, sdc, sk, wo, zea
Siebrand Mazeland [Mon, 19 Nov 2007 00:02:42 +0000 (00:02 +0000)]
Localisation updates from Betawiki.
* an, ar, ca, cs, el, es, eu, ext, fi, fiu-vro, fr
Domas Mituzas [Sun, 18 Nov 2007 23:20:34 +0000 (23:20 +0000)]
be less stupid at selecting fields (this needs to be filesorted, folks..)
Niklas Laxström [Sun, 18 Nov 2007 20:15:49 +0000 (20:15 +0000)]
* Reworked convertPlural so that it accepts variable number of arguments nicely
* Should also fix bug 11991
Siebrand Mazeland [Sun, 18 Nov 2007 12:57:52 +0000 (12:57 +0000)]
Updating non-message parts of messages/MessagesKaa.php
ThomasV [Sun, 18 Nov 2007 11:10:26 +0000 (11:10 +0000)]
Inserted two hooks for extension-defined colour codes, and simplified the way link colours are passed. Deprecated makeStubLink and makeStubLinkObj
Victor Vasiliev [Sun, 18 Nov 2007 09:37:52 +0000 (09:37 +0000)]
* (bug 11206) api.php should honor maxlag
* Add wfMaxlagError function
* Add MIME type override option for format=raw
Daniel Cannon [Sun, 18 Nov 2007 08:07:25 +0000 (08:07 +0000)]
Upd RELEASE-NOTES for last commit.
Huji [Sun, 18 Nov 2007 08:06:02 +0000 (08:06 +0000)]
Adding translation for ipb_blocked_as_range
Daniel Cannon [Sun, 18 Nov 2007 08:06:00 +0000 (08:06 +0000)]
Fix silly bug. To check if it's a range block use "mRangeStart != mRangeEnd" instead of just checking if one or the other is set (as they always both are). Remove check for username, unneeded.
Rotem Liss [Sun, 18 Nov 2007 07:52:39 +0000 (07:52 +0000)]
Update.
Aaron Schulz [Sun, 18 Nov 2007 07:41:10 +0000 (07:41 +0000)]
Say wtf units this is in
Daniel Cannon [Sun, 18 Nov 2007 06:02:36 +0000 (06:02 +0000)]
Provide a unique message (ipb_blocked_as_range) if unblock of a single IP fails because it is part of a blocked range.
Daniel Cannon [Sun, 18 Nov 2007 05:46:44 +0000 (05:46 +0000)]
API: Provide details message on first failed log-in too (probably where it's needed the most).
Daniel Cannon [Sun, 18 Nov 2007 05:42:08 +0000 (05:42 +0000)]
API: Up default wait-time on failed log-in to five seconds. One is too easy to get around.
Aryeh Gregor [Sun, 18 Nov 2007 02:33:30 +0000 (02:33 +0000)]
Feeds for recent changes now provide URLs for the change (i.e., the diff), not just the page. This matches behavior of history feeds, which appears more correct. Incidentally, this code needs centralization, probably, say into a constructor method of Revision or Article. Logic is unnecessarily duplicated at present. (Also tweaked some docs, used __METHOD__ instead of $fname.)
Siebrand Mazeland [Sat, 17 Nov 2007 23:36:07 +0000 (23:36 +0000)]
Importing usable interface messages from ay.wikipedia.org
Siebrand Mazeland [Sat, 17 Nov 2007 21:31:25 +0000 (21:31 +0000)]
Adding namespace names
Siebrand Mazeland [Sat, 17 Nov 2007 19:55:39 +0000 (19:55 +0000)]
Localisation updates from Betawiki.
* kn, nl, sdc, wo
* fixing RELEASE-NOTES to reflect earlier changes
Siebrand Mazeland [Sat, 17 Nov 2007 19:48:32 +0000 (19:48 +0000)]
Localisation updates from Betawiki.
* af, an, ar, cs, ext, fi, hr, hsb, hu, ja, kaa
Victor Vasiliev [Sat, 17 Nov 2007 16:45:59 +0000 (16:45 +0000)]
API:
* Add format=raw
* Added raw output support to ApiExpandTemplates and ApiRender
Siebrand Mazeland [Sat, 17 Nov 2007 13:26:34 +0000 (13:26 +0000)]
Fix error in namespace
Siebrand Mazeland [Sat, 17 Nov 2007 12:26:02 +0000 (12:26 +0000)]
Localisation updates from Betawiki.
* fi, fr, ja, kaa, nl
Siebrand Mazeland [Sat, 17 Nov 2007 12:20:05 +0000 (12:20 +0000)]
Adding namespaces for 'gl'
Siebrand Mazeland [Sat, 17 Nov 2007 12:18:54 +0000 (12:18 +0000)]
Updating namespaces for 'ce'
Rotem Liss [Sat, 17 Nov 2007 10:30:04 +0000 (10:30 +0000)]
Fix.
Siebrand Mazeland [Sat, 17 Nov 2007 00:22:01 +0000 (00:22 +0000)]
Revert 'mainpage' back to r26089. Messed up some things.
Siebrand Mazeland [Fri, 16 Nov 2007 23:49:59 +0000 (23:49 +0000)]
Localisation updates from Betawiki.
* an, ar, ca, cs, hr, hsb, ja, kaa, kn, ku-latn, nl, pl, pnt, qu, sdc, stq, tyv, wuu
Brion Vibber [Fri, 16 Nov 2007 23:10:07 +0000 (23:10 +0000)]
Instead of giving weird-ass results when an array is passed to Language::lcfirst(), only use our clever optimization if it is a string. Array will spit out annoying notices as before so you can tell what you did wrong.
Brion Vibber [Fri, 16 Nov 2007 22:50:59 +0000 (22:50 +0000)]
Fix regression from r26954 -- caused non-empty data sets to *fail* to render, in addition to making empty data sets render. :)
Brion Vibber [Fri, 16 Nov 2007 21:33:00 +0000 (21:33 +0000)]
Don't break patrolling when the newpages-specific patrolling mode is off but general patrolling is on.
Anders Wegge Jakobsen [Fri, 16 Nov 2007 19:21:09 +0000 (19:21 +0000)]
Added/updated translations for da
Niklas Laxström [Fri, 16 Nov 2007 18:15:16 +0000 (18:15 +0000)]
* Restored hungarian date formats
Huji [Fri, 16 Nov 2007 17:06:09 +0000 (17:06 +0000)]
Fixes bug 12001: Added missing translation for MessagesFr.php
Rotem Liss [Fri, 16 Nov 2007 09:20:15 +0000 (09:20 +0000)]
Better translation.
Siebrand Mazeland [Thu, 15 Nov 2007 22:59:37 +0000 (22:59 +0000)]
Adding Krice from Tyvanet.com as author
Siebrand Mazeland [Thu, 15 Nov 2007 22:03:03 +0000 (22:03 +0000)]
Localisation updates from Betawiki.
* an, ar, ceb, dsb, hr, kaa, sdc, ss, stq, tet, tyv
Huji [Thu, 15 Nov 2007 20:27:55 +0000 (20:27 +0000)]
Translation of the new message.
Siebrand Mazeland [Thu, 15 Nov 2007 19:03:08 +0000 (19:03 +0000)]
Importing usable messages from bm.wikipedia.org
Brion Vibber [Thu, 15 Nov 2007 18:35:58 +0000 (18:35 +0000)]
Special-case empty arrays and single-element arrays in database wrappers.
* single-element arrays were inefficient ("field IN (42)"), now using straight matches ("field=42")
* empty arrays caused an error ("IN ()" is invalid syntax), now will evaluate to 0 (false)
Siebrand Mazeland [Thu, 15 Nov 2007 18:18:51 +0000 (18:18 +0000)]
Importing usable messages from wo.wikipedia.org
Rotem Liss [Thu, 15 Nov 2007 17:12:35 +0000 (17:12 +0000)]
Fix.
Niklas Laxström [Thu, 15 Nov 2007 16:32:41 +0000 (16:32 +0000)]
* If restricted read access was enabled, whitelist didn't work with special pages which had spaces in theirs names
* If restricted read access was enabled, requests for non-existing special pages threw an exception
Victor Vasiliev [Thu, 15 Nov 2007 15:10:04 +0000 (15:10 +0000)]
Make action=render follow redirects by default. There's no reason why someone may want to render redirects (even if he need, he may use redirect=no)
Rotem Liss [Thu, 15 Nov 2007 14:47:40 +0000 (14:47 +0000)]
Fixes.
Rotem Liss [Thu, 15 Nov 2007 14:44:04 +0000 (14:44 +0000)]
Fix.
Rotem Liss [Thu, 15 Nov 2007 14:42:20 +0000 (14:42 +0000)]
Show 'no reason given' rather than a single apostrophe in a 'user blocked' page, when no reason is given for a block.
Rotem Liss [Thu, 15 Nov 2007 14:20:11 +0000 (14:20 +0000)]
Fix.
Rotem Liss [Thu, 15 Nov 2007 10:18:09 +0000 (10:18 +0000)]
Signature messages should be ignored: They are not just optional.
Brion Vibber [Thu, 15 Nov 2007 04:24:49 +0000 (04:24 +0000)]
Revert r27151 -- allows session fixation attacks.
Just get a user to visit a URL with the user ID and token you like in the query string (say, in an <img> referenced in a page you convince them to go to or post for their review) and their login session will be replaced with the one you provided.
Nick Jenkins [Thu, 15 Nov 2007 03:54:44 +0000 (03:54 +0000)]
ParserTests - Sane behavior requirement with apostrophe followed by bold in French or Italian
(was implied already, but this just explicitly lists this case)
Brion Vibber [Thu, 15 Nov 2007 03:30:03 +0000 (03:30 +0000)]
* Changed signature-ip to signature-anon
* Removed the hardcoding of the link parameter ($1), let the message control the destination.
* Removed the hardcoded talk page links. They can be easily re-added if desired, though, and added per-wiki.
* Removed the $3 and $4 parameters
* Fixed wfEscapeWikiText() to do "]" as well as "[", so sigs with "]" won't break links
* Updated a parser test case for the escaping change
Brion Vibber [Thu, 15 Nov 2007 02:54:28 +0000 (02:54 +0000)]
Fix regression in r27416 -- {{REVISIONID}} was broken on save since a parsed copy from before revision-insert was used to insert into parser cache.
The parser now sets a "vary-revision" flag on the ParserOutput when using {{REVISIONID}}; Article then reparses the page after insertion if and only if required.
Brion Vibber [Thu, 15 Nov 2007 02:24:56 +0000 (02:24 +0000)]
* validate namespace parameter as int, not text
* set the hidebots setting in the links so it doesn't randomly flip off
Brion Vibber [Thu, 15 Nov 2007 02:13:00 +0000 (02:13 +0000)]
Constructor parameters on a QueryPage need to be optional, so the class can be loaded in other contexts (such as running updateSpecialPages.php)
Siebrand Mazeland [Wed, 14 Nov 2007 23:34:48 +0000 (23:34 +0000)]
Add messages 'signature' and 'signature-ip' to new message group and set optional.
Siebrand Mazeland [Wed, 14 Nov 2007 23:23:39 +0000 (23:23 +0000)]
Localisation updates from Betawiki.
* am, an, ar, ca, ce, cs, ext, fr, kaa, la, qu, sdc, sk, tyv
Domas Mituzas [Wed, 14 Nov 2007 22:11:33 +0000 (22:11 +0000)]
remove use of anon function in stacktrace parsing, repeated calls are far more friendly for proper functions
Niklas Laxström [Wed, 14 Nov 2007 20:18:29 +0000 (20:18 +0000)]
* Not nice to sprinkle signatures in random languages
Raimond Spekking [Wed, 14 Nov 2007 16:58:05 +0000 (16:58 +0000)]
* (bug 6695) Fix native language name of Southern Sotho (Sesotho) (st)
Brion Vibber [Wed, 14 Nov 2007 16:03:39 +0000 (16:03 +0000)]
Use == for comparison, not = !
Siebrand Mazeland [Tue, 13 Nov 2007 21:54:33 +0000 (21:54 +0000)]
Localisation updates from Betawiki.
* an, frp, nl, pnt, qu, stq, tyv, wuu