lhc/web/wiklou.git
14 years agoFixed parse error: syntax error, unexpected ')' in includes/EnotifNotifyJob.php on...
Alexandre Emsenhuber [Mon, 24 Aug 2009 13:52:44 +0000 (13:52 +0000)]
Fixed parse error: syntax error, unexpected ')' in includes/EnotifNotifyJob.php on line 32 due to trailing comma

14 years ago* (bug 15475) DatabaseBase::setFlag(), DatabaseBase::clearFlag() and DatabaseBase...
Alexandre Emsenhuber [Mon, 24 Aug 2009 08:54:28 +0000 (08:54 +0000)]
* (bug 15475) DatabaseBase::setFlag(), DatabaseBase::clearFlag() and DatabaseBase::getFlag() now have documentation

14 years ago* (bug 20299) MediaWiki:Move-subpages and MediaWiki:Move-talk-subpages can now use...
Alexandre Emsenhuber [Mon, 24 Aug 2009 08:35:05 +0000 (08:35 +0000)]
* (bug 20299) MediaWiki:Move-subpages and MediaWiki:Move-talk-subpages can now use wikitext

14 years agoRecommit r53710 without the hack for preventing style sheets being added multiple...
Niklas Laxström [Mon, 24 Aug 2009 05:37:40 +0000 (05:37 +0000)]
Recommit r53710 without the hack for preventing style sheets being added multiple times (is not possible with OutputPage::addStyle in the first place)

14 years agoRewrite various TableCleanup scripts to subclass Maintenance instead of FiveUpgrade
Chad Horohoe [Mon, 24 Aug 2009 02:14:52 +0000 (02:14 +0000)]
Rewrite various TableCleanup scripts to subclass Maintenance instead of FiveUpgrade

14 years agoLocalisation updates Cantonese, Chinese and Literary Chinese
Shinjiman [Mon, 24 Aug 2009 01:29:28 +0000 (01:29 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese

14 years ago* (bug 20364) Fixed regression in GIF metadata loading
Brion Vibber [Sun, 23 Aug 2009 23:27:32 +0000 (23:27 +0000)]
* (bug 20364) Fixed regression in GIF metadata loading

There was a missing parameter in GIFMetadataExtractor's skipBlock() call for 'netscape 2.0' data blocks, which threw a monkey in the works.
Now also checking for exceptions thrown by the metadata load and stubbing out null metadata for files which can't be read, rather than letting the exception bubble up and kill MediaWiki. :)

14 years agoEmit CDATA more intelligently
Aryeh Gregor [Sun, 23 Aug 2009 21:06:54 +0000 (21:06 +0000)]
Emit CDATA more intelligently

This fixes some possible XML invalidity from r54767: CDATA stuff was
being added only if $wgHtml5 was false, instead of whenever
$wgWellFormedXml is true.  Also, it uses CDATA for script as well as
style, but in both cases only uses it if there's a & or < somewhere.

14 years agoLocalisation updates for core messages from translatewiki.net (2009-08-23 20:02 UTC)
Siebrand Mazeland [Sun, 23 Aug 2009 20:30:00 +0000 (20:30 +0000)]
Localisation updates for core messages from translatewiki.net (2009-08-23 20:02 UTC)

14 years ago* (bug 20365) Page name with with c/g/h/j/s/u + x are now correctly handled in Specia...
Alexandre Emsenhuber [Sun, 23 Aug 2009 20:19:22 +0000 (20:19 +0000)]
* (bug 20365) Page name with with c/g/h/j/s/u + x are now correctly handled in Special:MovePage with Esperanto as content language

14 years agoReformat comment
Aryeh Gregor [Sun, 23 Aug 2009 20:09:59 +0000 (20:09 +0000)]
Reformat comment

<3 vim Ctrl-V

14 years agoLocalization update.
Rotem Liss [Sun, 23 Aug 2009 19:47:18 +0000 (19:47 +0000)]
Localization update.

14 years agoSplit date, and time, in Mediawiki:enotif_body, and show localized special page name...
Purodha B Blissenbach [Sun, 23 Aug 2009 17:48:25 +0000 (17:48 +0000)]
Split date, and time, in Mediawiki:enotif_body, and show localized special page name in generated e-mail.

14 years ago* for php2js, all colons in messages will be replaced by " : ". That's not really...
Siebrand Mazeland [Sun, 23 Aug 2009 12:53:57 +0000 (12:53 +0000)]
* for php2js, all colons in messages will be replaced by " : ". That's not really needed. Commented out and added FIXME. Was introduced in r55290.
* update command line output

14 years agoRedo r53641, reverted in r55457, now using indexed queries:
Alexandre Emsenhuber [Sun, 23 Aug 2009 09:39:13 +0000 (09:39 +0000)]
Redo r53641, reverted in r55457, now using indexed queries:
* (bug 19857) maintenance/deleteRevision.php on last revision no longer breaks target page

14 years ago* (bug 20362) Special:Statistics now produces valid HTML when view counters are enabled
Alexandre Emsenhuber [Sun, 23 Aug 2009 08:16:24 +0000 (08:16 +0000)]
* (bug 20362) Special:Statistics now produces valid HTML when view counters are enabled

14 years agoFollow-up r55513 and r55515: Add new message keys to maintenance script
Raimond Spekking [Sun, 23 Aug 2009 07:42:38 +0000 (07:42 +0000)]
Follow-up r55513 and r55515: Add new message keys to maintenance script
Don't commit on a sunday morning b4 breakfast (r55519) :-/

14 years agoFollow-up r55513 and r55515: Add new message keys to maintenance script
Raimond Spekking [Sun, 23 Aug 2009 07:40:22 +0000 (07:40 +0000)]
Follow-up r55513 and r55515: Add new message keys to maintenance script
Saving a file helps to commit (r55519) :-/

14 years agoFollow-up r55513 and r55515: Add new message keys to maintenance script
Raimond Spekking [Sun, 23 Aug 2009 07:20:52 +0000 (07:20 +0000)]
Follow-up r55513 and r55515: Add new message keys to maintenance script

14 years agoRELEASE-NOTES typo
Aryeh Gregor [Sun, 23 Aug 2009 03:42:33 +0000 (03:42 +0000)]
RELEASE-NOTES typo

14 years agoEnforce $wgMinimalPasswordLength client-side
Aryeh Gregor [Sun, 23 Aug 2009 03:33:11 +0000 (03:33 +0000)]
Enforce $wgMinimalPasswordLength client-side

. . . except not really.  It works fine on Opera 9.6, except for the
slight detail that if you enter a password that's too short, Opera will
helpfully repeat your password back to you un-*ed when telling you it's
too short.  Same in Opera 10.00 Beta 3.  So the code is commented out,
and there are no functional changes.  We'll need UA sniffing when the
code is uncommented.  But I already wrote it, so may as well commit it
for future use.

This recycles the "passwordtooshort" message to provide the client-side
error message, using the title attribute on the input.  Since the title
attribute might be displayed when the user hasn't actually entered an
invalid password, I've reworded it to not imply the user actually
entered an incorrect password, so it just states the requirement.  (This
accords with the advice given in the HTML 5 spec.)  I didn't make up a
new message name for that, because it's not a big deal if translations
do imply that the password is wrong, since that should theoretically be
the most common case anyway.

14 years ago* (bug 20317) Cleaned up default main page link accesskey settings
Brion Vibber [Sun, 23 Aug 2009 01:25:48 +0000 (01:25 +0000)]
* (bug 20317) Cleaned up default main page link accesskey settings

Cleanup from r46398 (bug 17184) which moved the accesskey from 'n-mainpage' onto 'p-logo' to avoid duplicating the access key on both the logo and the main page.

Putting the 'z' accesskey default on 'n-mainpage-description' now instead of p-logo; also kept 'z' for 'n-mainpage' for back-compat for people with older customized sidebars which don't specify mainpage-description.

14 years ago* (bug 11143) Links containing invalid UTF-8 percent-code sequences are now
Brion Vibber [Sun, 23 Aug 2009 00:45:36 +0000 (00:45 +0000)]
* (bug 11143) Links containing invalid UTF-8 percent-code sequences are now
  cleanly disabled instead of breaking parsing entirely on PHP 5.2.

This was fixed as a side-effect of r55382 for bug 15248; adding comments
in Title::secureAndSplit nothing this.

14 years ago* (bug 20358) Unprotect tab was missing accesskey; now same as protect tab.
Brion Vibber [Sun, 23 Aug 2009 00:14:03 +0000 (00:14 +0000)]
* (bug 20358) Unprotect tab was missing accesskey; now same as protect tab.
Patch by RockMFR: http://bug-attachment.wikimedia.org/attachment.cgi?id=6484

14 years agoAdd a Makefile and a copy of the cssjanus script so folks can update the RTL variant...
Brion Vibber [Sat, 22 Aug 2009 22:44:44 +0000 (22:44 +0000)]
Add a Makefile and a copy of the cssjanus script so folks can update the RTL variant stylesheet more easily.
cssjanus from r28 on the Google Code project: http://code.google.com/p/cssjanus/source/browse/#svn/trunk
Plus a patch for the broken options: http://code.google.com/p/cssjanus/issues/detail?id=11

cssjanus is under Apache license.

14 years agoPer Brion's comment on r52683: use $wgOut->isPrintable() rather than $wgRequest-...
Alexandre Emsenhuber [Sat, 22 Aug 2009 22:26:31 +0000 (22:26 +0000)]
Per Brion's comment on r52683: use $wgOut->isPrintable() rather than $wgRequest->getBool( 'printable' )

14 years agoChange r52690 per suggestions on CodeReview: rearrange from boolean OR mysteriously...
Brion Vibber [Sat, 22 Aug 2009 21:53:57 +0000 (21:53 +0000)]
Change r52690 per suggestions on CodeReview: rearrange from boolean OR mysteriously changed to binary OR to a nice plain if statement.

14 years agoLocalization update.
Rotem Liss [Sat, 22 Aug 2009 21:12:54 +0000 (21:12 +0000)]
Localization update.

14 years agoMostly revert r53358 and r53365 per comments on code review. Change message to just...
Alex Z [Sat, 22 Aug 2009 20:17:28 +0000 (20:17 +0000)]
Mostly revert r53358 and r53365 per comments on code review. Change message to just say "Database" and remove the getDBtypeForMsg function (since I can't think of any other use for it)

14 years agoClean up some of the unnecessary tabs splattered throughout our output. They tend...
Brion Vibber [Sat, 22 Aug 2009 20:15:22 +0000 (20:15 +0000)]
Clean up some of the unnecessary tabs splattered throughout our output. They tend to combine confusingly and just inflate both source and output without actually improving readability much.

14 years agouse tabs for identation, not spaces
Alexandre Emsenhuber [Sat, 22 Aug 2009 20:00:41 +0000 (20:00 +0000)]
use tabs for identation, not spaces

14 years agoReduce output size of Skin::makeVariablesScript() for the head variables.
Brion Vibber [Sat, 22 Aug 2009 19:55:28 +0000 (19:55 +0000)]
Reduce output size of Skin::makeVariablesScript() for the head variables.
Drops a lot of unnecessary whitespace (but keeps newlines for legibility) and puts multiple defs into a single 'var' statement.
Reduces the head vars script from 1485 bytes to 1201 (nearly 20% savings), though this is of course reduced with gzipping (27 bytes, 4%). Cutting those bytes out of *every dang request* doesn't hurt though. :)

14 years agoUpdate with messages from embedVideo.js (follow-up to r55494)
Siebrand Mazeland [Sat, 22 Aug 2009 19:53:22 +0000 (19:53 +0000)]
Update with messages from embedVideo.js (follow-up to r55494)

14 years agoFix formatting error that caused mergeJavascriptMsg.php to bork on js2php
Siebrand Mazeland [Sat, 22 Aug 2009 19:50:48 +0000 (19:50 +0000)]
Fix formatting error that caused mergeJavascriptMsg.php to bork on js2php

14 years ago* change trim() for $postFile to ltrim(). Want the trailing newline
Siebrand Mazeland [Sat, 22 Aug 2009 19:42:14 +0000 (19:42 +0000)]
* change trim() for $postFile to ltrim(). Want the trailing newline
* update comments

14 years agoCut search icons by ~100 bytes each; optipng default settings.
Brion Vibber [Sat, 22 Aug 2009 19:32:39 +0000 (19:32 +0000)]
Cut search icons by ~100 bytes each; optipng default settings.

14 years agoUpdate with mergeJavascriptMsg.php js2php
Siebrand Mazeland [Sat, 22 Aug 2009 19:20:03 +0000 (19:20 +0000)]
Update with mergeJavascriptMsg.php js2php

14 years agoHope this is the last formatting issue fixed.
Siebrand Mazeland [Sat, 22 Aug 2009 19:16:29 +0000 (19:16 +0000)]
Hope this is the last formatting issue fixed.

14 years agoUpdate messages and formatting
Siebrand Mazeland [Sat, 22 Aug 2009 19:12:41 +0000 (19:12 +0000)]
Update messages and formatting

14 years agoLocalisation updates for core messages from translatewiki.net (2009-08-22 19:00 UTC)
Raimond Spekking [Sat, 22 Aug 2009 19:12:19 +0000 (19:12 +0000)]
Localisation updates for core messages from translatewiki.net (2009-08-22 19:00 UTC)

14 years agoRandom fixes for messages and message formatting
Siebrand Mazeland [Sat, 22 Aug 2009 19:04:54 +0000 (19:04 +0000)]
Random fixes for messages and message formatting

14 years agoUpdate mwEmbed.i18n.php
Siebrand Mazeland [Sat, 22 Aug 2009 18:41:05 +0000 (18:41 +0000)]
Update mwEmbed.i18n.php

For some reasons libEmbedVideo/embedVideo.js is not imported (could not get any json vars from:/libEmbedVideo/embedVideo.js). Looking into that.

14 years ago* update comment writing (add space to second and third line)
Siebrand Mazeland [Sat, 22 Aug 2009 18:31:43 +0000 (18:31 +0000)]
* update comment writing (add space to second and third line)
* stylize.php and indentation updated

14 years agoMerge r55331 from wmf-deployment (which was merged from a live hack)
Raimond Spekking [Sat, 22 Aug 2009 18:22:00 +0000 (18:22 +0000)]
Merge r55331 from wmf-deployment (which was merged from a live hack)
Note: Not per SVN merge because syntax differs:
dbsource( ..., $dbw );
vs.
$dbw->sourceFile( ... );

14 years agoMerge r53381 from wmf-deployment. Throw more informational error on creation failure.
Chad Horohoe [Sat, 22 Aug 2009 16:50:03 +0000 (16:50 +0000)]
Merge r53381 from wmf-deployment. Throw more informational error on creation failure.

14 years ago* added missing message "mwe-no_text_tracks_found"
Siebrand Mazeland [Sat, 22 Aug 2009 12:12:43 +0000 (12:12 +0000)]
* added missing message "mwe-no_text_tracks_found"
* harmonise message prefix
* fix typos in message keys
* fix typos in messages
* remove trailing whitespace

Should be almost done now. Next step is to get a proper mwEmbed.i18n.php, verify and fix that, and give it to the translators.

14 years agoUpdate the Chinese conversion tables.
Philip Tzou [Sat, 22 Aug 2009 11:36:13 +0000 (11:36 +0000)]
Update the Chinese conversion tables.

14 years agoLocalisation updates Cantonese, Chinese and Literary Chinese
Shinjiman [Sat, 22 Aug 2009 09:47:51 +0000 (09:47 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese

14 years agoLocalization update.
Rotem Liss [Sat, 22 Aug 2009 07:55:44 +0000 (07:55 +0000)]
Localization update.

14 years agoFollow-up r55459: Fix for PHP Notice: Undefined variable: deleted in /var/www/w/inclu...
Raimond Spekking [Sat, 22 Aug 2009 07:03:52 +0000 (07:03 +0000)]
Follow-up r55459: Fix for PHP Notice: Undefined variable: deleted in /var/www/w/includes/UserMailer.php on line 379

14 years ago* Fixed some AMW issues
Michael Dale [Sat, 22 Aug 2009 06:49:47 +0000 (06:49 +0000)]
* Fixed some AMW issues

14 years agoFollow-up r55459: Add new message keys to maintenance script
Raimond Spekking [Sat, 22 Aug 2009 06:48:32 +0000 (06:48 +0000)]
Follow-up r55459: Add new message keys to maintenance script

14 years agohard coded requested imageinfo prop in api upload result (to avoid static call to...
Michael Dale [Sat, 22 Aug 2009 06:36:19 +0000 (06:36 +0000)]
hard coded requested imageinfo prop in api upload result (to avoid static call to non-static: ApiQueryImageInfo::getAllowedParams();

14 years ago* Fixed some AMW regressions.
Michael Dale [Sat, 22 Aug 2009 05:57:00 +0000 (05:57 +0000)]
* Fixed some AMW regressions.
* Fixed upload destination check
* Localized more of AMW

14 years agore-added $partname for warning checks 53361#c3664
Michael Dale [Sat, 22 Aug 2009 05:24:21 +0000 (05:24 +0000)]
re-added $partname for warning checks 53361#c3664

14 years agoPet peeve time: reduce clutter from common $wgContLang->isRTL() ? 'x' : 'y' pattern. :)
Brion Vibber [Sat, 22 Aug 2009 01:24:04 +0000 (01:24 +0000)]
Pet peeve time: reduce clutter from common $wgContLang->isRTL() ? 'x' : 'y' pattern. :)

Introduced helpers:
  $lang->getDir() returns 'ltr' or 'rtl' for HTML 'dir' attrib
  $lang->alignStart() returns 'left' or 'right' for HTML 'align' attrib or CSS 'text-align' property
  $lang->alignEnd() returns 'right' or 'left'

And cleaned up a couple arrays of icons to just reverse the order of items rather than repeating the items twice for each possibility.

14 years agoParse error: syntax error, unexpected T_VARIABLE in w/includes/UserMailer.php on...
Alex Z [Sat, 22 Aug 2009 00:46:13 +0000 (00:46 +0000)]
Parse error: syntax error, unexpected T_VARIABLE in w/includes/UserMailer.php on line 480

14 years ago(bug 15646) Page creation notification email is sent when a watched page is deleted
Chad Horohoe [Fri, 21 Aug 2009 23:33:38 +0000 (23:33 +0000)]
(bug 15646) Page creation notification email is sent when a watched page is deleted

14 years agoPartial revert of r53641 "* (bug 19857) maintenance/deleteRevision.php on last revisi...
Brion Vibber [Fri, 21 Aug 2009 22:51:21 +0000 (22:51 +0000)]
Partial revert of r53641 "* (bug 19857) maintenance/deleteRevision.php on last revision no longer breaks target page"
Unindexed query would scan entire page table.

14 years agoRevert r53600 "Add $wgSecondaryGoNamespace, used if an exact match is not found when...
Brion Vibber [Fri, 21 Aug 2009 22:42:09 +0000 (22:42 +0000)]
Revert r53600 "Add $wgSecondaryGoNamespace, used if an exact match is not found when pressing go - will try to find a match in a different namespace before performing a search."
Revert r53618 "* Replace $wgSecondaryGoNamespace with $wgSecondaryGoNamespaces (taking an array of integers instead of just an integer), per code review of r53600."
Revert r53672 "* Add release note for r53618."
Per bug 11380 this should probably be using the default search namespaces or the user's search namespaces; an additional config array seems unnecessary.

14 years agoRevert r53667 "Enabled use of the greater-than sign (">") in page titles. There is...
Brion Vibber [Fri, 21 Aug 2009 22:31:23 +0000 (22:31 +0000)]
Revert r53667 "Enabled use of the greater-than sign (">") in page titles. There is actually no reason for this character to be restricted because it does not interfere with wiki syntax or HTML tags. This will have immediate applications for articles such as "M>Tram", ">play", "The Videos 86>98", "Tour 00 >> 01 Macabre", and "I>Télé", as well as redirects for "Inequality" and "Bitwise operation"."
Possibility of spitting raw >s into output unnerves me greatly, and could indeed be a problem depending on just where your text gets spat and what's around it. More generally allowing one half of a pair makes little sense and would simply confuse the issue.

14 years agoTypo in comment
Aryeh Gregor [Fri, 21 Aug 2009 22:30:51 +0000 (22:30 +0000)]
Typo in comment

14 years agoUse Html::input()/autofocus a bunch more places
Aryeh Gregor [Fri, 21 Aug 2009 22:30:23 +0000 (22:30 +0000)]
Use Html::input()/autofocus a bunch more places

14 years agoRevert r53710 "* Allow suppressing "line 1" from the diffs, which can get quite annoy...
Brion Vibber [Fri, 21 Aug 2009 22:01:16 +0000 (22:01 +0000)]
Revert r53710 "* Allow suppressing "line 1" from the diffs, which can get quite annoying with many diffs"
Use of static variable here means that running multiple diffs during one request may mess things up. It should rather check if it's been added in $wgOut already.

14 years agoMake Xml::hidden() a wrapper around Html::hidden()
Aryeh Gregor [Fri, 21 Aug 2009 21:57:53 +0000 (21:57 +0000)]
Make Xml::hidden() a wrapper around Html::hidden()

HTML-specific stuff should go into the Html class; it doesn't belong in
Xml.

14 years agoAutofocus Special:Search box
Aryeh Gregor [Fri, 21 Aug 2009 21:57:26 +0000 (21:57 +0000)]
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()).

14 years agoCleaning up some old PHP 4 object-reference usage in some edit filtering hooks.
Brion Vibber [Fri, 21 Aug 2009 21:51:29 +0000 (21:51 +0000)]
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.

14 years agoLocalisation updates for namespaces from translatewiki.net
Siebrand Mazeland [Fri, 21 Aug 2009 21:46:36 +0000 (21:46 +0000)]
Localisation updates for namespaces from translatewiki.net

14 years agoDon't prefill new account name, and autofocus
Aryeh Gregor [Fri, 21 Aug 2009 21:40:05 +0000 (21:40 +0000)]
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.  :)

14 years agoAutofocus password, not name, if name is prefilled
Aryeh Gregor [Fri, 21 Aug 2009 21:35:52 +0000 (21:35 +0000)]
Autofocus password, not name, if name is prefilled

14 years agoUse Html::input() for login form
Aryeh Gregor [Fri, 21 Aug 2009 21:35:34 +0000 (21:35 +0000)]
Use Html::input() for login form

This fixes some invalid HTML output in r54567, and also makes the output
look more consistent and prettier.

14 years agoOmit useless value="" in Html::input()
Aryeh Gregor [Fri, 21 Aug 2009 21:34:52 +0000 (21:34 +0000)]
Omit useless value="" in Html::input()

14 years agoNo need to store the value of the magic quotes check here; just use a local var for...
Brion Vibber [Fri, 21 Aug 2009 21:26:34 +0000 (21:26 +0000)]
No need to store the value of the magic quotes check here; just use a local var for clarity.

14 years agoLocalisation updates for special page aliases from translatewiki.net
Siebrand Mazeland [Fri, 21 Aug 2009 21:25:08 +0000 (21:25 +0000)]
Localisation updates for special page aliases from translatewiki.net

14 years agoLocalisation updates for core magic words from translatewiki.net
Siebrand Mazeland [Fri, 21 Aug 2009 21:17:54 +0000 (21:17 +0000)]
Localisation updates for core magic words from translatewiki.net

14 years agoLocalisation extension for core messages from translatewiki.net (2009-08-21 20:59...
Siebrand Mazeland [Fri, 21 Aug 2009 21:09:57 +0000 (21:09 +0000)]
Localisation extension for core messages from translatewiki.net (2009-08-21 20:59 UTC)

14 years agoDon't output useless value=""
Aryeh Gregor [Fri, 21 Aug 2009 21:06:28 +0000 (21:06 +0000)]
Don't output useless value=""

14 years agoOnly require necessary fields in Special:ResetPass
Aryeh Gregor [Fri, 21 Aug 2009 21:06:06 +0000 (21:06 +0000)]
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.

14 years agoMove validation logic from input() to rawElement()
Aryeh Gregor [Fri, 21 Aug 2009 20:50:35 +0000 (20:50 +0000)]
Move validation logic from input() to rawElement()

This way callers of rawElement() or element() will also get correct
behavior.

14 years agoSwitch from Xml:: to Html:: in a few places
Aryeh Gregor [Fri, 21 Aug 2009 20:39:35 +0000 (20:39 +0000)]
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.

14 years agoCorrect outdated comments
Aryeh Gregor [Fri, 21 Aug 2009 20:39:16 +0000 (20:39 +0000)]
Correct outdated comments

14 years agoDon't escape >" in tag contents, no point
Aryeh Gregor [Fri, 21 Aug 2009 20:38:53 +0000 (20:38 +0000)]
Don't escape >" in tag contents, no point

14 years ago* (bug 20296) Fixed a PHP warning in Parser::preSaveTransform() in PHP 5.3: Parameter...
Alexandre Emsenhuber [Fri, 21 Aug 2009 20:18:20 +0000 (20:18 +0000)]
* (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

14 years agoFix for wgArticleId being exported to JavaScript as a string instead of integer. :P
Brion Vibber [Fri, 21 Aug 2009 18:11:13 +0000 (18:11 +0000)]
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!

14 years ago1. Revert my revision r55371. Since it may override logged user's settings.
Philip Tzou [Fri, 21 Aug 2009 16:00:01 +0000 (16:00 +0000)]
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.

14 years ago*(bug 17742) Fixes inconsistent special page aliases for the Taiwanese language.
Shinjiman [Fri, 21 Aug 2009 14:36:04 +0000 (14:36 +0000)]
*(bug 17742) Fixes inconsistent special page aliases for the Taiwanese language.

14 years agoAdd and modify parser test for new language converter rules.
Philip Tzou [Fri, 21 Aug 2009 04:44:46 +0000 (04:44 +0000)]
Add and modify parser test for new language converter rules.

14 years agoMove dumpRev and orphanStats to subclass Maintenance. Make orphanStats bail out early...
Chad Horohoe [Fri, 21 Aug 2009 00:59:11 +0000 (00:59 +0000)]
Move dumpRev and orphanStats to subclass Maintenance. Make orphanStats bail out early if blob_orphans doesn't exist. dumpRev could use a nice description.

14 years agoRemove random comments.
Chad Horohoe [Fri, 21 Aug 2009 00:32:38 +0000 (00:32 +0000)]
Remove random comments.

14 years agoDelete maintenance/fetchInterwiki.pl - has been obsolete since r1589
Alex Z [Fri, 21 Aug 2009 00:25:39 +0000 (00:25 +0000)]
Delete maintenance/fetchInterwiki.pl - has been obsolete since r1589

14 years agoTweak Access-Control-Allow-Origin stuff per comments on r54127.
Alex Z [Fri, 21 Aug 2009 00:22:08 +0000 (00:22 +0000)]
Tweak Access-Control-Allow-Origin stuff per comments on r54127.
Use a wildcard syntax rather than string/regex options

14 years agoLocalization update.
Rotem Liss [Thu, 20 Aug 2009 21:49:59 +0000 (21:49 +0000)]
Localization update.

14 years agoDocument wfWarn() function
Alexandre Emsenhuber [Thu, 20 Aug 2009 21:35:22 +0000 (21:35 +0000)]
Document wfWarn() function

14 years agobug 20327 Error in FlaggedRevs.hooks.php after r55168's restructuring of history...
Brion Vibber [Thu, 20 Aug 2009 21:31:38 +0000 (21:31 +0000)]
bug 20327 Error in FlaggedRevs.hooks.php after r55168's restructuring of history page classes

14 years agoRemove somewhat braindead comments
Aryeh Gregor [Thu, 20 Aug 2009 21:30:47 +0000 (21:30 +0000)]
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.

14 years agoUpdate ChangesList output for enhanced changes to use CSS instead of obsolete attrbut...
Alex Z [Thu, 20 Aug 2009 21:06:24 +0000 (21:06 +0000)]
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.

14 years agoadd parser test for r55382
Ilmari Karonen [Thu, 20 Aug 2009 15:27:51 +0000 (15:27 +0000)]
add parser test for r55382

14 years ago(bug 15248) Normalize NBSP and other odd Unicode whitespace characters to normal...
Ilmari Karonen [Thu, 20 Aug 2009 14:56:11 +0000 (14:56 +0000)]
(bug 15248) Normalize NBSP and other odd Unicode whitespace characters to normal spaces.
Note: run cleanupTitles.php and cleanupImages.php after deploying this!

14 years ago* non firefogg add media wizard upload updates (only works once bug noted)
Michael Dale [Thu, 20 Aug 2009 14:06:16 +0000 (14:06 +0000)]
* non firefogg add media wizard upload updates (only works once bug noted)

14 years agoFollow-up r55368: Fix parser tests
Raimond Spekking [Thu, 20 Aug 2009 13:41:34 +0000 (13:41 +0000)]
Follow-up r55368: Fix parser tests