lhc/web/wiklou.git
14 years ago* (bug 8143) Localised parser function names are now correctly case insensitive if...
Alexandre Emsenhuber [Wed, 26 Aug 2009 15:47:03 +0000 (15:47 +0000)]
* (bug 8143) Localised parser function names are now correctly case insensitive if they contain non-ASCII characters
Patch by Matěj Grabovský - http://bug-attachment.wikimedia.org/attachment.cgi?id=6406

14 years agoRestore size=60 that got eaten by r55453
Aryeh Gregor [Wed, 26 Aug 2009 15:12:50 +0000 (15:12 +0000)]
Restore size=60 that got eaten by r55453

We should really be using CSS for this to get nice fluid widths, but
it's a real pain to do with tables' weird magical width algorithms.

14 years agoFix for error accessing uninitialized namespace aliases array... use the accessor...
Brion Vibber [Wed, 26 Aug 2009 15:03:20 +0000 (15:03 +0000)]
Fix for error accessing uninitialized namespace aliases array... use the accessor, which lazy-initializes :)

14 years agoUse type=search for Monobook sidebar
Aryeh Gregor [Wed, 26 Aug 2009 14:59:59 +0000 (14:59 +0000)]
Use type=search for Monobook sidebar

Didn't bother to do this for other skins at the moment.  This should
allow more native-looking styling on some platforms (e.g., Safari on
Mac).

14 years agol10n added to oracle tables.sql
Jure Kajzer [Wed, 26 Aug 2009 14:49:42 +0000 (14:49 +0000)]
l10n added to oracle tables.sql

14 years agoFor search, move "create page" below "no results"
Aryeh Gregor [Wed, 26 Aug 2009 14:34:28 +0000 (14:34 +0000)]
For search, move "create page" below "no results"

This looks slightly less odd, with the user no longer being told to
create the page before they're even told it doesn't exist.  But it still
looks pretty odd.

14 years agoMake resolveConflictOn() accept a prefix different from the page name (needed for...
Chad Horohoe [Wed, 26 Aug 2009 14:06:36 +0000 (14:06 +0000)]
Make resolveConflictOn() accept a prefix different from the page name (needed for archive, bug 10171). Add comment about crappy interwiki prefix checking.

14 years agoReplace our mb_substr() fallback implementation with one which is not quite so horrib...
Brion Vibber [Wed, 26 Aug 2009 05:51:21 +0000 (05:51 +0000)]
Replace our mb_substr() fallback implementation with one which is not quite so horrible...

While not too awful on smallish strings, the way it worked was *murder* on large input:
the *entire string* would be broken up into an array of individual characters, sliced up,
then merged back together.

In my testing I couldn't even get the function to complete in a reasonable time for, say,
127k worth of text... not only did the regex split take forever, but it would eat an insane
amount of memory, likely triggering memory_limit hits in a sane world.

The new implementation counts characters from the beginning or end of a string to determine
the byte-based offsets to use for substr() start and count parameters, and only uses
a couple temporary dupes of the string in memory. For typical short offset/count cases
(take or trim one or a few characters) this performs about 3-5x worse than native mb_substr()
for in my testing.

Large offsets are optimized by first skipping the same number of bytes as characters, since all
characters take at least one byte. On primarily Latin text this made some of my test cases
actually *faster* than native mb_substr()! ;) For non-Latin texts this takes out a fair chunk
of our work, but can still leave us with very slow execution -- eg ~30ms to get through a few
dozens of kilobytes worth of offset on Japanese text. But at least it completes now!

This could probably be optimized further, perhaps skipping progressively smaller chunks in
binary-chop fashion. :)

For fun, my profiling results (profiling & test scripts are in a little git repo which I would
push to gitorious to poke at, but gitorious hates me right now and won't finish my repo setup):

strlen       mb_strlen short ascii - 0.0019ms - 19
strlen      xmb_strlen short ascii - 0.0672ms - 19

strlen       mb_strlen short unicode - 0.0019ms - 19
strlen      xmb_strlen short unicode - 0.0657ms - 19

strlen       mb_strlen long ascii - 0.0826ms - 20000
strlen      xmb_strlen long ascii - 0.1236ms - 20000

strlen       mb_strlen long unicode - 0.0774ms - 20000
strlen      xmb_strlen long unicode - 0.1901ms - 20000

strlen       mb_strlen san francisco - 0.4775ms - 126700
strlen      xmb_strlen san francisco - 0.4474ms - 126700

substr       mb_substr short ascii first - 0.0022ms - 1-byte string ("s") <- native
substr      xmb_substr short ascii first - 0.0168ms - 1-byte string ("s") <- old fallback
substr     xmb_substr3 short ascii first - 0.0069ms - 1-byte string ("s") <- new fallback

substr       mb_substr short ascii last - 0.0023ms - 1-byte string ("s")
substr      xmb_substr short ascii last - 0.0171ms - 1-byte string ("s")
substr     xmb_substr3 short ascii last - 0.0113ms - 1-byte string ("s")

substr       mb_substr short ascii trim last 9 - 0.0023ms - 10-byte string ("short asci")
substr      xmb_substr short ascii trim last 9 - 0.0183ms - 10-byte string ("short asci")
substr     xmb_substr3 short ascii trim last 9 - 0.0119ms - 10-byte string ("short asci")

substr       mb_substr short ascii middle 3 - 0.0022ms - 3-byte string ("sci")
substr      xmb_substr short ascii middle 3 - 0.0171ms - 3-byte string ("sci")
substr     xmb_substr3 short ascii middle 3 - 0.0149ms - 3-byte string ("sci")

substr       mb_substr short unicode first - 0.0022ms - 1-byte string ("s")
substr      xmb_substr short unicode first - 0.0184ms - 1-byte string ("s")
substr     xmb_substr3 short unicode first - 0.0071ms - 1-byte string ("s")

substr       mb_substr short unicode last - 0.0026ms - 2-byte string ("ß")
substr      xmb_substr short unicode last - 0.0187ms - 2-byte string ("ß")
substr     xmb_substr3 short unicode last - 0.0130ms - 2-byte string ("ß")

substr       mb_substr short unicode trim last 9 - 0.0024ms - 14-byte string ("short áéíó")
substr      xmb_substr short unicode trim last 9 - 0.0200ms - 14-byte string ("short áéíó")
substr     xmb_substr3 short unicode trim last 9 - 0.0137ms - 14-byte string ("short áéíó")

substr       mb_substr short unicode middle 3 - 0.0022ms - 6-byte string ("éíó")
substr      xmb_substr short unicode middle 3 - 0.0188ms - 6-byte string ("éíó")
substr     xmb_substr3 short unicode middle 3 - 0.0189ms - 6-byte string ("éíó")

substr       mb_substr san fran first - 0.0022ms - 1-byte string ("{")
substr     xmb_substr3 san fran first - 0.0069ms - 1-byte string ("{")

substr       mb_substr san fran last - 0.8914ms - 1-byte string ("\n")
substr     xmb_substr3 san fran last - 0.0109ms - 1-byte string ("\n")

substr       mb_substr san fran non-first - 0.5995ms - 127318-byte string (c00cabc812ac347bd2e81a3e3f04e23d)
substr     xmb_substr3 san fran non-first - 0.0213ms - 127318-byte string (c00cabc812ac347bd2e81a3e3f04e23d)

substr       mb_substr san fran middle 1k - 0.2218ms - 1025-byte string (c42eb5c511670f72ff4593a39219682c)
substr     xmb_substr3 san fran middle 1k - 0.3883ms - 1025-byte string (c42eb5c511670f72ff4593a39219682c)

substr       mb_substr boston-ja first - 0.0021ms - 1-byte string ("{")
substr     xmb_substr3 boston-ja first - 0.0068ms - 1-byte string ("{")

substr       mb_substr boston-ja last - 0.5497ms - 1-byte string ("\n")
substr     xmb_substr3 boston-ja last - 0.0110ms - 1-byte string ("\n")

substr       mb_substr boston-ja non-first - 0.4128ms - 127637-byte string (933e70d1d10f4d64cdfbd69b58592cd4)
substr     xmb_substr3 boston-ja non-first - 0.0216ms - 127637-byte string (933e70d1d10f4d64cdfbd69b58592cd4)

substr       mb_substr boston-ja middle 1k - 0.2237ms - 2006-byte string (1eaa8554ff4507109b1cba7a597d82bf)
substr     xmb_substr3 boston-ja middle 1k - 30.6811ms - 2006-byte string (1eaa8554ff4507109b1cba7a597d82bf)

14 years agoRevert r53841 (Favicon, apple-touch-icon links matching the defaults should not be...
Chad Horohoe [Tue, 25 Aug 2009 22:27:32 +0000 (22:27 +0000)]
Revert r53841 (Favicon, apple-touch-icon links matching the defaults should not be sent). Doesn't actually work upon further testing

14 years ago(bug 19999) Made metadata and properties of search results optional. Added srprop...
Bryan Tong Minh [Tue, 25 Aug 2009 20:18:12 +0000 (20:18 +0000)]
(bug 19999) Made metadata and properties of search results optional. Added srprop and srinfo.

14 years ago* (bug 20380) Link to history/log action at the top of Special:RevisionDelete are...
Alexandre Emsenhuber [Tue, 25 Aug 2009 19:57:35 +0000 (19:57 +0000)]
* (bug 20380) Link to history/log action at the top of Special:RevisionDelete are new more displayed when when doing log suppression
They're useless since they're linking to Special:Log/xxx?action=history, Special:Log?page=Special:Log, etc.

14 years agoRemove unused message. Checked for core and all extensions in our SVN.
Raimond Spekking [Tue, 25 Aug 2009 19:23:44 +0000 (19:23 +0000)]
Remove unused message. Checked for core and all extensions in our SVN.

14 years agoWhitespace
Aryeh Gregor [Tue, 25 Aug 2009 18:57:47 +0000 (18:57 +0000)]
Whitespace

14 years agoFix for r52174 - don't show footer for non-existing users
Niklas Laxström [Tue, 25 Aug 2009 18:36:44 +0000 (18:36 +0000)]
Fix for r52174 - don't show footer for non-existing users

14 years ago* updates for Add Media Wizard inline upload support
Michael Dale [Tue, 25 Aug 2009 16:49:27 +0000 (16:49 +0000)]
* updates for Add Media Wizard inline upload support
* updated language-key mappings

14 years agoFollowup to r52671, fix redirection syntax to work with windows as well.
OverlordQ [Tue, 25 Aug 2009 15:47:46 +0000 (15:47 +0000)]
Followup to r52671, fix redirection syntax to work with windows as well.

14 years ago* related videos per commons wikiKey ( GerardoDoog )
Michael Dale [Tue, 25 Aug 2009 15:34:45 +0000 (15:34 +0000)]
* related videos per commons wikiKey ( GerardoDoog )

14 years agoFix live preview copying of existing category links
Andrew Garrett [Tue, 25 Aug 2009 15:09:40 +0000 (15:09 +0000)]
Fix live preview copying of existing category links

14 years agoUpdate translatewiki link
Raimond Spekking [Tue, 25 Aug 2009 14:40:07 +0000 (14:40 +0000)]
Update translatewiki link
Update interwikis from langlist

14 years agoUpdate ordinary cat links as well
Andrew Garrett [Tue, 25 Aug 2009 14:28:37 +0000 (14:28 +0000)]
Update ordinary cat links as well

14 years ago* Revert r55555-55557 for now, breaks tabs in special preferences, don't know why
Niklas Laxström [Tue, 25 Aug 2009 13:56:42 +0000 (13:56 +0000)]
* Revert r55555-55557 for now, breaks tabs in special preferences, don't know why
Also, the following looks wrong:
-       for (var id = 0; id < ta.length; id++) {
+       for (var id in ta) {
                var n = document.getElementById(id);

14 years agoLocalisation updates Cantonese, Chinese and Literary Chinese
Shinjiman [Tue, 25 Aug 2009 04:23:06 +0000 (04:23 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese

14 years agoLocalization update.
Rotem Liss [Mon, 24 Aug 2009 19:48:24 +0000 (19:48 +0000)]
Localization update.

14 years agorevert wrong change from r55558
Alexandre Emsenhuber [Mon, 24 Aug 2009 18:28:21 +0000 (18:28 +0000)]
revert wrong change from r55558

14 years ago* (bug 19966) MediaWiki:License-header is now used for the licensing header in the...
Alexandre Emsenhuber [Mon, 24 Aug 2009 18:06:15 +0000 (18:06 +0000)]
* (bug 19966) MediaWiki:License-header is now used for the licensing header in the file description page instead of MediaWiki:License
I've copied the 'license' message to 'license-header' for all languages, will fuzzy them on translatewiki.net so that they'll be corrected

14 years agoAnd svn committed when I tried to hit Ctrl+C to fix a third. (Don't you love my commits?)
Daniel Friesen [Mon, 24 Aug 2009 17:34:51 +0000 (17:34 +0000)]
And svn committed when I tried to hit Ctrl+C to fix a third. (Don't you love my commits?)

14 years agoMissed two `new`s when refactoring new Array() to []
Daniel Friesen [Mon, 24 Aug 2009 17:31:27 +0000 (17:31 +0000)]
Missed two `new`s when refactoring new Array() to []

14 years ago- Use array literals instead of new Array(); (note that `new Array;` without () is...
Daniel Friesen [Mon, 24 Aug 2009 17:15:32 +0000 (17:15 +0000)]
- Use array literals instead of new Array(); (note that `new Array;` without () is actually supposed to break in IE6 iirc)
- Use RegExp literals instead of new RegExp(...); when unnecessary.
- Fix bad use of object iteration on an array bug20376

14 years agodisabled ParseKit on PHP 5.3+, it's broken and throws "Cannot redeclare class/functio...
Alexandre Emsenhuber [Mon, 24 Aug 2009 15:08:58 +0000 (15:08 +0000)]
disabled ParseKit on PHP 5.3+, it's broken and throws "Cannot redeclare class/function" in about evry file

14 years ago* Wrap legend of historyPage into a div with class 'mw-history-legend'
Raimond Spekking [Mon, 24 Aug 2009 14:30:32 +0000 (14:30 +0000)]
* Wrap legend of historyPage into a div with class 'mw-history-legend'
* Move legend above pager. It looks more consistent/logical

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