Commit graph

25662 commits

Author SHA1 Message Date
Aryeh Gregor
faedd9d09f Autofocus Special:Search box
Also generally clean up the code around there: add some line breaks, use
Html instead of Xml (using new Html::hidden()).
2009-08-21 21:57:26 +00:00
Brion Vibber
aa1740d88d Cleaning up some old PHP 4 object-reference usage in some edit filtering hooks.
There was a mix of uses of the reference and non-uses of the reference. :)
Reverts r53714 and fixes it from the other end by cleaning up the uses to not expect references.
2009-08-21 21:51:29 +00:00
Siebrand Mazeland
75aea550b1 Localisation updates for namespaces from translatewiki.net 2009-08-21 21:46:36 +00:00
Aryeh Gregor
7df79a8134 Don't prefill new account name, and autofocus
It's kind of silly to prefill the name of the account to be created from
cookies . . . presumably that account already exists.  :)
2009-08-21 21:40:05 +00:00
Aryeh Gregor
b8755f1127 Autofocus password, not name, if name is prefilled 2009-08-21 21:35:52 +00:00
Aryeh Gregor
fae2d87433 Use Html::input() for login form
This fixes some invalid HTML output in r54567, and also makes the output
look more consistent and prettier.
2009-08-21 21:35:34 +00:00
Aryeh Gregor
f61d9e089d Omit useless value="" in Html::input() 2009-08-21 21:34:52 +00:00
Brion Vibber
77f1f0ace7 No need to store the value of the magic quotes check here; just use a local var for clarity. 2009-08-21 21:26:34 +00:00
Siebrand Mazeland
35dfed7c25 Localisation updates for special page aliases from translatewiki.net 2009-08-21 21:25:08 +00:00
Siebrand Mazeland
2e3195e2af Localisation updates for core magic words from translatewiki.net 2009-08-21 21:17:54 +00:00
Siebrand Mazeland
03ab26c65f Localisation extension for core messages from translatewiki.net (2009-08-21 20:59 UTC) 2009-08-21 21:09:57 +00:00
Aryeh Gregor
5fab81bbcf Don't output useless value="" 2009-08-21 21:06:28 +00:00
Aryeh Gregor
3d3aa7c369 Only require necessary fields in Special:ResetPass
This fixes r54567.  That made the password fields on Special:ResetPass
always required, but in fact the current password should never be
required (existing users always might have empty passwords), and the new
password is only required if $wgMinimalPasswordLength > 0.

This commit also permits passing array( 'required' ) to
Html::(rawE|e)lement() instead of array( 'required' => 'meaningless' ),
for boolean attribs only.  This syntax is used in SpecialResetpass.
2009-08-21 21:06:06 +00:00
Aryeh Gregor
f103c057d0 Move validation logic from input() to rawElement()
This way callers of rawElement() or element() will also get correct
behavior.
2009-08-21 20:50:35 +00:00
Aryeh Gregor
aece69bc89 Switch from Xml:: to Html:: in a few places
These should all theoretically be covered by the parser tests.  All
tests pass, the only change needed was to account for less overescaping
in Html::expandAttributes().  There's no reason to escape <>' in
"-quoted attributes, unless I'm mistaken and have just added some XSS.
2009-08-21 20:39:35 +00:00
Aryeh Gregor
defb1eeaf0 Correct outdated comments 2009-08-21 20:39:16 +00:00
Aryeh Gregor
ef664913d1 Don't escape >" in tag contents, no point 2009-08-21 20:38:53 +00:00
Alexandre Emsenhuber
6c3adddb6b * (bug 20296) Fixed a PHP warning in Parser::preSaveTransform() in PHP 5.3: Parameter 1 was expected to be a reference but value given when unstubbing $wgContLang 2009-08-21 20:18:20 +00:00
Brion Vibber
7269b2e2b3 Fix for wgArticleId being exported to JavaScript as a string instead of integer. :P
Throw around some intval()s on page id, length data coming out of database into Title and Article objects and the link cache... blast PHP's soft typing!
2009-08-21 18:11:13 +00:00
Philip Tzou
e05338c102 1. Revert my revision r55371. Since it may override logged user's settings.
2. Patch for situations that some wikis like zhwikisource may disabled some language variants. We should treat these disabled variants unacceptable in LanguageConverter.
2009-08-21 16:00:01 +00:00
Shinjiman
89b467b15c *(bug 17742) Fixes inconsistent special page aliases for the Taiwanese language. 2009-08-21 14:36:04 +00:00
Philip Tzou
a51fd2251b Add and modify parser test for new language converter rules. 2009-08-21 04:44:46 +00:00
Chad Horohoe
31ebfe94ba Move dumpRev and orphanStats to subclass Maintenance. Make orphanStats bail out early if blob_orphans doesn't exist. dumpRev could use a nice description. 2009-08-21 00:59:11 +00:00
Chad Horohoe
677ad6dd38 Remove random comments. 2009-08-21 00:32:38 +00:00
Alex Z
bdea765153 Delete maintenance/fetchInterwiki.pl - has been obsolete since r1589 2009-08-21 00:25:39 +00:00
Alex Z
b97ce20115 Tweak Access-Control-Allow-Origin stuff per comments on r54127.
Use a wildcard syntax rather than string/regex options
2009-08-21 00:22:08 +00:00
Rotem Liss
8da1f64159 Localization update. 2009-08-20 21:49:59 +00:00
Alexandre Emsenhuber
4d2ccdcfdd Document wfWarn() function 2009-08-20 21:35:22 +00:00
Brion Vibber
0e6945d0ea bug 20327 Error in FlaggedRevs.hooks.php after r55168's restructuring of history page classes 2009-08-20 21:31:38 +00:00
Aryeh Gregor
643dad9da3 Remove somewhat braindead comments
On second thought, if you're outputting user-supplied JS without careful
validation, it doesn't really matter if it's HTML-escaped or not.  :D
CSS has expr() and such too.
2009-08-20 21:30:47 +00:00
Alex Z
eb62ec3e70 Update ChangesList output for enhanced changes to use CSS instead of obsolete attrbutes and elements (cellpadding, <tt>, etc.)
The test page I was using successfully validated as HTML 5 :)
Tested for signs of obvious regressions in FF 3.5, IE8, Opera 9.64 and Safari 4.0.
Supposedly, the border-spacing property isn't supported by IE, but I didn't see any obvious issues when testing,
so either the information I got was wrong/outdated, or its not actually necessary here. Needs testing in IE6/7 to verify.
If I did everything right, there shouldn't be any visible changes, save maybe a couple trivial spacing quirks.
2009-08-20 21:06:24 +00:00
Ilmari Karonen
46d58fbf54 add parser test for r55382 2009-08-20 15:27:51 +00:00
Ilmari Karonen
9b75e95ef0 (bug 15248) Normalize NBSP and other odd Unicode whitespace characters to normal spaces.
Note: run cleanupTitles.php and cleanupImages.php after deploying this!
2009-08-20 14:56:11 +00:00
Michael Dale
52c64d9a7b * non firefogg add media wizard upload updates (only works once bug noted) 2009-08-20 14:06:16 +00:00
Raimond Spekking
97d54c31b9 Follow-up r55368: Fix parser tests 2009-08-20 13:41:34 +00:00
Michael Dale
e23486c12e * working inline uploader 2009-08-20 13:31:25 +00:00
Michael Dale
5a46964580 * skin revert 2009-08-20 12:14:14 +00:00
Michael Dale
2092142b10 * restored control Builder as wel 2009-08-20 12:05:16 +00:00
Michael Dale
29de54bd4b * partial revert to 55208 (pre kskin) 2009-08-20 11:57:37 +00:00
Philip Tzou
1e4bf6e041 Fixed some of tests failed caused by r55371. 2009-08-20 11:45:49 +00:00
Michael Dale
419ffbc39d * kskin final state before revert for presentations 2009-08-20 11:37:48 +00:00
Philip Tzou
60ec1f39e3 Set linkTrail for Chinese language. There is no character should be appended to a titlelink in Chinese wiki. 2009-08-20 11:16:19 +00:00
Philip Tzou
3f142983b3 Save the variant find from HTTP_ACCEPT_LANGUAGE to $mPreferredVariant, so we do not need to do it again. 2009-08-20 11:11:15 +00:00
Michael Dale
e3e0784521 * slightly better sequencer css layout.
* now to fix the mismatched selectors *****I hate kskin right now****
2009-08-20 10:29:09 +00:00
Michael Dale
bf8f69ad50 * minor css fixes
* fixes to inline uploads  
* stubs for recent uploaded asset import listing
2009-08-20 09:55:40 +00:00
Raimond Spekking
e1e2c80783 * (bug 20318) Distinct CSS classes for ISBN/RFC/PMID special links added 2009-08-20 09:13:29 +00:00
Michael Dale
8109b1f8a3 * moved $wgEnableTemporalOggUrls configuration var from default settings to oggHandler 2009-08-20 05:44:10 +00:00
Michael Dale
85483e4fdc * broken kskin integration mvpcf bootstrapping 2009-08-20 04:28:52 +00:00
Brion Vibber
17ad472958 De-clutter base directory; moving install-utils.inc into maintenance. 2009-08-19 23:40:48 +00:00
Chad Horohoe
d2f2adf820 Oops and fix the test it was supposed to check. 2009-08-19 23:35:24 +00:00