lhc/web/wiklou.git
13 years agoport rtl specific parts of modern RTL css to main.css
Derk-Jan Hartman [Mon, 24 Jan 2011 22:05:03 +0000 (22:05 +0000)]
port rtl specific parts of modern RTL css to main.css

In the new auto flipped CSS, the "html > body div#mw_contentholder ul li" specific hacks were breaking layout on other browsers, so removing those.

Follow up to r80776

13 years agoIntegrate what was functionally left of common_rtl.css into oldshared.css
Derk-Jan Hartman [Mon, 24 Jan 2011 21:50:17 +0000 (21:50 +0000)]
Integrate what was functionally left of common_rtl.css into oldshared.css
Commit the Resourceloader conversion of oldshared.css that I had forgotten to commit

Follow up to r80785

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 24 Jan 2011 21:31:38 +0000 (21:31 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-24 20:59:00 UTC)

13 years agoupdate colors (I could not see them)
Antoine Musso [Mon, 24 Jan 2011 21:28:47 +0000 (21:28 +0000)]
update colors (I could not see them)

13 years agomoving tests to the mediawiki.util section + note about order
Krinkle [Mon, 24 Jan 2011 21:22:57 +0000 (21:22 +0000)]
moving tests to the mediawiki.util section + note about order

13 years agoTweak comments on User::isValidEmailAddr to replace the old @todo for RFC 2822 valida...
Brion Vibber [Mon, 24 Jan 2011 21:18:47 +0000 (21:18 +0000)]
Tweak comments on User::isValidEmailAddr to replace the old @todo for RFC 2822 validation with a brief explanation of why we're using this instead. (followup r80913)

13 years agoEmail validation for @localhost address + tests
Antoine Musso [Mon, 24 Jan 2011 21:13:55 +0000 (21:13 +0000)]
Email validation for @localhost address + tests

See r80694 commit note

13 years ago(bug 26907) MediaWiki Default -> MediaWiki default
Chad Horohoe [Mon, 24 Jan 2011 20:54:13 +0000 (20:54 +0000)]
(bug 26907) MediaWiki Default -> MediaWiki default

13 years agoUser::isValidEmailAddr comment update
Antoine Musso [Mon, 24 Jan 2011 20:31:16 +0000 (20:31 +0000)]
User::isValidEmailAddr comment update

Follow up r75682

13 years agoExplicitely enable language and title conversion otherwise this breaks tests when...
Alexandre Emsenhuber [Mon, 24 Jan 2011 20:08:09 +0000 (20:08 +0000)]
Explicitely enable language and title conversion otherwise this breaks tests when disabled in local config

13 years agoResolves issue in r80656 where escaped quotes within strings are not handled properly...
Trevor Parscal [Mon, 24 Jan 2011 19:47:57 +0000 (19:47 +0000)]
Resolves issue in r80656 where escaped quotes within strings are not handled properly, resulting in the string being truncated.

13 years agoSilly bug with value nodes.
Platonides [Mon, 24 Jan 2011 19:40:25 +0000 (19:40 +0000)]
Silly bug with value nodes.

13 years agoWorkaround null Title error in parser during main page creation. Used $wgTitle. I...
Chad Horohoe [Mon, 24 Jan 2011 19:09:23 +0000 (19:09 +0000)]
Workaround null Title error in parser during main page creation. Used $wgTitle. I feel dirty

13 years agoFix for r80864: the $dbname variable was not there only to make pretty debug output...
Alexandre Emsenhuber [Mon, 24 Jan 2011 18:45:59 +0000 (18:45 +0000)]
Fix for r80864: the $dbname variable was not there only to make pretty debug output, but also to let the connection choose the correct database. This was breaking connections to other databases since they were always using wiki's database.

13 years ago* Cleanup massive duplication across Database constructors. Default implementation...
Chad Horohoe [Mon, 24 Jan 2011 18:36:09 +0000 (18:36 +0000)]
* Cleanup massive duplication across Database constructors. Default implementation fairly sane. Now they all share the same if( $server ) logic to allow constructing the class without forcing open a connection (MySQL has done this since at least r15094)
* Get rid of intermediate installTables() callback
* Actually cache the result of DbInstaller::getConnection() like the documentation says

13 years agoFollowup r80864: DatabaseSqlite exploded on installer page because it tried to open...
Chad Horohoe [Mon, 24 Jan 2011 17:37:06 +0000 (17:37 +0000)]
Followup r80864: DatabaseSqlite exploded on installer page because it tried to open an invalid $wgSqliteDataDir.

Even though it doesn't use $server, only call open() if it's set, like in the other constructors.

The amount of code duplication here is stupid.

13 years agoFollowup to r79848 (and really, make it useful...)
Chad Horohoe [Mon, 24 Jan 2011 16:31:36 +0000 (16:31 +0000)]
Followup to r79848 (and really, make it useful...)

Turn DatabaseBase::classFromType() into newFromType() factory function for constructing a new object based on a given type and (optional) params. Documented it fairly clearly.

I think it looks nicer :)

13 years agoFixup usage of raw sql in Title
Sam Reed [Mon, 24 Jan 2011 15:30:35 +0000 (15:30 +0000)]
Fixup usage of raw sql in Title

Followup r80856, add missing __METHOD__

13 years agoStart another attack on raw sql queries
Sam Reed [Mon, 24 Jan 2011 13:59:22 +0000 (13:59 +0000)]
Start another attack on raw sql queries

13 years ago(bug 26827) Fix JS error on IE caused by the rename of {save,restore}StuffForIE(...
Roan Kattouw [Mon, 24 Jan 2011 02:58:12 +0000 (02:58 +0000)]
(bug 26827) Fix JS error on IE caused by the rename of {save,restore}StuffForIE() not updating callers. Changed callers to use {save,restore}Selection() or {save,restore}CursorAndScrollTop() as seemed appropriate

13 years ago(bug 26895) in /include/db/LoadBalancer.php function "closeConnecton" should be calle...
Sam Reed [Mon, 24 Jan 2011 01:00:29 +0000 (01:00 +0000)]
(bug 26895) in /include/db/LoadBalancer.php function "closeConnecton" should be called "closeConnection"

Seemingly no callers in extensions OR phase3 (weird...), searching for "closeConnecton" or the correctly spelt "closeConnection"

The back-compat typo thing probably wants removing.. Seems to have been as such since it was added in r32578...

13 years ago$wgNoDBParam is tested in loadWikimediaSettings(), before execute() but after constru...
Platonides [Sun, 23 Jan 2011 22:49:55 +0000 (22:49 +0000)]
$wgNoDBParam is tested in loadWikimediaSettings(), before execute() but after constructing the object.
This should get rid of the need of adding a literal '--wiki=aawiki'
http://wikitech.wikimedia.org/index.php?title=Add_a_wiki&diff=31536&oldid=31528

13 years agoAssignment inside if clause is bad
Alexandre Emsenhuber [Sun, 23 Jan 2011 20:27:26 +0000 (20:27 +0000)]
Assignment inside if clause is bad

13 years agoFollow-up r69233: use getDbKey() instead of getText() for special pages.
Bryan Tong Minh [Sun, 23 Jan 2011 20:19:04 +0000 (20:19 +0000)]
Follow-up r69233: use getDbKey() instead of getText() for special pages.

13 years agoAccept being passed a null Title to startExternalParse(), at the callers responsibility.
Platonides [Sun, 23 Jan 2011 18:45:21 +0000 (18:45 +0000)]
Accept being passed a null Title to startExternalParse(), at the callers responsibility.
Added a note about getUserSig() side-effects.

13 years agopreSaveTransform() needs $wgTitle.
Platonides [Sun, 23 Jan 2011 18:43:08 +0000 (18:43 +0000)]
preSaveTransform() needs $wgTitle.

13 years agoAdd types to prototypes.
Platonides [Sun, 23 Jan 2011 16:11:14 +0000 (16:11 +0000)]
Add types to prototypes.

13 years agoReplace the repeated prologues to set mOptions, clearState(), setOutputType(), setTit...
Platonides [Sun, 23 Jan 2011 16:07:13 +0000 (16:07 +0000)]
Replace the repeated prologues to set mOptions, clearState(), setOutputType(), setTitle() with startExternalParse() calls

13 years agoRemove a couple of calls to ParserOptions::resetUsage(), missed on its removal in...
Platonides [Sun, 23 Jan 2011 15:56:30 +0000 (15:56 +0000)]
Remove a couple of calls to ParserOptions::resetUsage(), missed on its removal in r79018

13 years agoFollow-up per r80813 CR
Krinkle [Sun, 23 Jan 2011 14:34:19 +0000 (14:34 +0000)]
Follow-up per r80813 CR

13 years agoupdate RELEASE-NOTES for r80813 and r80381
Krinkle [Sun, 23 Jan 2011 13:15:19 +0000 (13:15 +0000)]
update RELEASE-NOTES for r80813 and r80381

13 years agoBug 26870 - add width/height param to {{filepath:}}
Krinkle [Sun, 23 Jan 2011 13:09:15 +0000 (13:09 +0000)]
Bug 26870 - add width/height param to {{filepath:}}
* In addition to r80381
* Expanded comments in SpecialFilePath a little bit

13 years ago'skin' sometimes interferes with the global.
Krinkle [Sun, 23 Jan 2011 02:48:30 +0000 (02:48 +0000)]
'skin' sometimes interferes with the global.

13 years agoadding links to other skins in mediaWiki JS test suite. (Previously making sure every...
Krinkle [Sun, 23 Jan 2011 02:37:59 +0000 (02:37 +0000)]
adding links to other skins in mediaWiki JS test suite. (Previously making sure everything works in all skins was a PITA

13 years agoObviously no need for a foreach loop here. (Follow-up r80790)
Krinkle [Sun, 23 Jan 2011 02:22:27 +0000 (02:22 +0000)]
Obviously no need for a foreach loop here. (Follow-up r80790)

13 years agoadding available skins to mw.config.values
Krinkle [Sun, 23 Jan 2011 02:19:58 +0000 (02:19 +0000)]
adding available skins to mw.config.values

13 years agoAdd missing ;
Sam Reed [Sun, 23 Jan 2011 02:16:49 +0000 (02:16 +0000)]
Add missing ;

13 years ago* Expose list of skins in meta=siteinfo
Sam Reed [Sun, 23 Jan 2011 02:05:26 +0000 (02:05 +0000)]
* Expose list of skins in meta=siteinfo

13 years agoMinor fix to capitalization in some documentation.
Sean Colombo [Sun, 23 Jan 2011 01:59:24 +0000 (01:59 +0000)]
Minor fix to capitalization in some documentation.

13 years agoUpdating mw.util.test.js + fixing minor bugs that were discovered through it
Krinkle [Sun, 23 Jan 2011 01:42:33 +0000 (01:42 +0000)]
Updating mw.util.test.js + fixing minor bugs that were discovered through it
Updating mw.util.test.js
* Adding tests for modules now loaded by default [[RL/DM]]. Still not all of them, but it's getting there
* Changing order to either alphabetical order or order from source code (instead of random or chronological)
* adding addHead() function
* Fixing a bug caused by addHead() with  (which selected all rows instead of rows that contain actual tests) - also removed the need for the "+1" adjustment later on in the code (which was needed since  contained the first row with the column headings)
Fixed bugs that were found through testing:
* No title attribute was set for skins without portlets. (it was after the portlet-presence check).
  Now older skins get the title attribute as well.
* Modern's article-container ('#mw_contentholder') is added to the definition for mw.util. in mw.util.init()

13 years agoPort the remaining Skin.php skins standard(classic), Cologneblue and Nostalgia
Derk-Jan Hartman [Sun, 23 Jan 2011 01:41:13 +0000 (01:41 +0000)]
Port the remaining Skin.php skins standard(classic), Cologneblue and Nostalgia

* Converted Nostalgia's use of inline table alignment to CSS
* common_rtl.css is not in use now

Refs bug 26649

13 years agoRenaming "mediaWiki.util Test Suite" to "mediaWiki JavaScript library test suite"
Krinkle [Sat, 22 Jan 2011 23:24:45 +0000 (23:24 +0000)]
Renaming "mediaWiki.util Test Suite" to "mediaWiki JavaScript library test suite"
The tests cover pretty much the entire library, not just mw.util.*
Keeping the script under mediawiki.util since the test itself is a utility.

Object was already moved to mediaWiki.test from mediaWiki.util.test in a previous revision.

13 years agoFix an rtl issue with diff markers. This rtl specific line is no longer needed with...
Derk-Jan Hartman [Sat, 22 Jan 2011 23:21:23 +0000 (23:21 +0000)]
Fix an rtl issue with diff markers. This rtl specific line is no longer needed with rtl auto flipping

13 years agoRemoving commented wgHandheldStyle in Resources.php + wrapping lines at 80 (one-line...
Krinkle [Sat, 22 Jan 2011 23:17:29 +0000 (23:17 +0000)]
Removing commented wgHandheldStyle in Resources.php + wrapping lines at 80 (one-line to multi-line arrays)
* wgHandheldStyle: Is now done from Monobook.php (r75548)
* Some lines were getting over 100 characters in length due to the dependancies array. Spit' a few up to a multiline array

13 years agoPartial revert of r80772.
Derk-Jan Hartman [Sat, 22 Jan 2011 23:13:59 +0000 (23:13 +0000)]
Partial revert of r80772.

Did not mean to commit that potential but unconfirmed fix for bug 26135

13 years agoPort Modern to resourceloader
Derk-Jan Hartman [Sat, 22 Jan 2011 22:46:33 +0000 (22:46 +0000)]
Port Modern to resourceloader

Refs bug 26649

13 years agoFollow-up r79867: Read out EXIF orientation in JavaScript and rotate accordingly...
Bryan Tong Minh [Sat, 22 Jan 2011 22:34:36 +0000 (22:34 +0000)]
Follow-up r79867: Read out EXIF orientation in JavaScript and rotate accordingly. Added JsJpegMeta library by Ben Leslie under the MIT license.

* Added JS variabele wgFileCanRotate. If anybody knows a way to make certain variables only available to certain modules, please tell me, could not find it.
* Added JsJpegMeta as mediawiki.util.jpegmeta
* Made BitmapHandler::getScaler and BitmapHandker::canRotate static
* Bumped style version

13 years agoFollow up to r80773. Repair the thumbcaptions alignment.
Derk-Jan Hartman [Sat, 22 Jan 2011 22:29:57 +0000 (22:29 +0000)]
Follow up to r80773. Repair the thumbcaptions alignment.

13 years agoRemove RTL definitions from skins/common/shared.css
Derk-Jan Hartman [Sat, 22 Jan 2011 22:21:57 +0000 (22:21 +0000)]
Remove RTL definitions from skins/common/shared.css

With the new auto rtl flipping of resourceloader, all rtl sites were broken.

13 years agoPort Chick to Resourceloader. Bug 26649
Derk-Jan Hartman [Sat, 22 Jan 2011 21:29:39 +0000 (21:29 +0000)]
Port Chick to Resourceloader. Bug 26649

13 years agoFinish porting the Simple skin to resourceloader.
Derk-Jan Hartman [Sat, 22 Jan 2011 21:16:34 +0000 (21:16 +0000)]
Finish porting the Simple skin to resourceloader.

* quickbar CSS removed, since simple doesn't even have #quickbar.
* default of line-trough removed, since this is already present in the skin CSS.
Fixes part of bug 26649

13 years ago(bug 26809) Uploading files with multiple extensions where one of the extensions...
Bryan Tong Minh [Sat, 22 Jan 2011 20:33:25 +0000 (20:33 +0000)]
(bug 26809) Uploading files with multiple extensions where one of the extensions is blacklisted now gives the proper extension in the error message.

13 years agoThis override is no longer needed. white background for tables removed in r80495.
Krinkle [Sat, 22 Jan 2011 20:30:20 +0000 (20:30 +0000)]
This override is no longer needed. white background for tables removed in r80495.

13 years agoAdd automatic formatting of numeric parameters to Message
Bryan Tong Minh [Sat, 22 Jan 2011 20:23:51 +0000 (20:23 +0000)]
Add automatic formatting of numeric parameters to Message

13 years agoLocalisation updates for core from translatewiki.net.
Siebrand Mazeland [Sat, 22 Jan 2011 20:07:18 +0000 (20:07 +0000)]
Localisation updates for core from translatewiki.net.

13 years agoLocalisation updates for core from translatewiki.net.
Siebrand Mazeland [Sat, 22 Jan 2011 18:42:30 +0000 (18:42 +0000)]
Localisation updates for core from translatewiki.net.

13 years ago* (bug 26861) avoid warning in OutputPage::addVaryHeader when $options param is null
Brion Vibber [Sat, 22 Jan 2011 16:59:01 +0000 (16:59 +0000)]
* (bug 26861) avoid warning in OutputPage::addVaryHeader when $options param is null

This should coerce nulls to empty arrays to make them play a little nicer.

Also added a doc comment that the format and contents of the $option parameter need to be described in some way; judging by the below getXVO() function they're used to produce the X-Vary-Options header along with the vary cookie settings, but offhand wouldn't know what acceptable options are or how to look them up (X-Vary-Options is something we made up as an extension for our patched Squid servers, so there's no public standard like the HTTP RFCs to look it up in.)

13 years agoDon't look for pipes in the root node.
Platonides [Sat, 22 Jan 2011 16:34:14 +0000 (16:34 +0000)]
Don't look for pipes in the root node.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 22 Jan 2011 16:06:05 +0000 (16:06 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-22 15:41:00 UTC)

13 years agoLocalisation updates Cantonese, Chinese and Literary Chinese
Shinjiman [Sat, 22 Jan 2011 15:33:26 +0000 (15:33 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese

13 years ago* changed 'searchmenu-new-nocreate' to no longer be ignored and have content. Address...
Siebrand Mazeland [Sat, 22 Jan 2011 14:36:11 +0000 (14:36 +0000)]
* changed 'searchmenu-new-nocreate' to no longer be ignored and have content. Addresses bug 26747.
* remove trailing whitespace form SpecialSearch.php.

13 years agoLocalisation updates Cantonese, Chinese and Literary Chinese
Shinjiman [Sat, 22 Jan 2011 10:32:40 +0000 (10:32 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese

13 years agoadding comment
Ryan Kaldari [Sat, 22 Jan 2011 01:57:25 +0000 (01:57 +0000)]
adding comment

13 years agoAdd extension and MIME type as parameters to filetype-mime-mismatch message. Also...
Ilmari Karonen [Sat, 22 Jan 2011 00:12:21 +0000 (00:12 +0000)]
Add extension and MIME type as parameters to filetype-mime-mismatch message.  Also fix an ungrammatical Finnish translation of filetype-badmime while I'm at it.

13 years agoCheck that the MIME type is allowed before checking that it matches the extension...
Ilmari Karonen [Fri, 21 Jan 2011 23:35:58 +0000 (23:35 +0000)]
Check that the MIME type is allowed before checking that it matches the extension, and skip the latter check entirely if there is no extension so that the right message (filetype-missing) will be given instead of filetype-mime-mismatch.

13 years agoMake paraminfo output examples along with parameter information.
Zak Greant [Fri, 21 Jan 2011 23:12:51 +0000 (23:12 +0000)]
Make paraminfo output examples along with parameter information.

13 years agoAdd full articles to preprocessor tests.
Platonides [Fri, 21 Jan 2011 23:03:33 +0000 (23:03 +0000)]
Add full articles to preprocessor tests.

* QuoteQuran.txt is GFDL/CC-BY-SA, created by [[en:User:Striver]] at http://en.wikipedia.org/w/index.php?title=Template:QuoteQuran/sandbox&oldid=237348988
* Factorial.txt is GFDL + CC-BY-SA, created by [[en:User:Polonium]] at http://en.wikipedia.org/w/index.php?title=Template:Factorial&oldid=98548758
* All_system_messages.txt was generated by MediaWiki, so already GPL. Copied from http://tl.wiktionary.org/w/index.php?title=Suleras:All_system_messages&oldid=2765

Added along their preprocessed xml.

13 years agoMove $wgLocalisationCacheConf disabling from bootstrap.php to phpunit.php
Platonides [Fri, 21 Jan 2011 22:44:40 +0000 (22:44 +0000)]
Move $wgLocalisationCacheConf disabling from bootstrap.php to phpunit.php

13 years agoThe << operator (level 7) has greater priority than bitwise or (level 12),
Platonides [Fri, 21 Jan 2011 22:00:07 +0000 (22:00 +0000)]
The << operator (level 7) has greater priority than bitwise or (level 12),
which makes getNextSibling() function wrong for values >= 256.

13 years agoFold Avars Nogomatch extension into core
Sam Reed [Fri, 21 Jan 2011 19:02:17 +0000 (19:02 +0000)]
Fold Avars Nogomatch extension into core

No need for an extension just for a wfDebugLog call

13 years agoHack invalid w3 spec to validate @localhost email
Antoine Musso [Fri, 21 Jan 2011 18:01:47 +0000 (18:01 +0000)]
Hack invalid w3 spec to validate @localhost email

In r75682, I have implemented a PHP function to validate email address
based on bug 22449.  Siebrand pointed a w3.org specification which I
implemented. The spec is bugged since it requires a domain and a top
level domain!

I could either make the first part optional or alter the second part
to require 0 to x elements.  I choose the later: s/+/*/

Should fix bug 22449 for good.

TESTS:

Added testEmailDoesNotNeedATopLevelDomain:

Made following emails valid:
  user.@localdaomin
  .@localdomain
  user@a

Test output (please add more):
$ php phpunit.php -c suite.xml --filter alidEmail --tap
TAP version 13
ok 1 - UserIsValidEmailAddrTest::testEmailWellKnownUserAtHostDotTldAreValid
ok 2 - UserIsValidEmailAddrTest::testEmailWithUpperCaseCharactersAreValid
ok 3 - UserIsValidEmailAddrTest::testEmailWithAPlusInUserName
ok 4 - UserIsValidEmailAddrTest::testEmailDoesNotNeedATopLevelDomain
ok 5 - UserIsValidEmailAddrTest::testEmailWithWhiteSpacesBeforeOrAfterAreInvalids
ok 6 - UserIsValidEmailAddrTest::testEmailWithWhiteSpacesAreInvalids
ok 7 - UserIsValidEmailAddrTest::testEmailDomainCanNotBeginWithDot
ok 8 - UserIsValidEmailAddrTest::testEmailWithFunnyCharacters
ok 9 - UserIsValidEmailAddrTest::testEmailTopLevelDomainCanBeNumerical
ok 10 - UserIsValidEmailAddrTest::testEmailWithoutAtSignIsInvalid
ok 11 - UserIsValidEmailAddrTest::testEmailWithOneCharacterDomainIsValid
1..11

13 years ago(bug 26848) deleteArchivedFiles.php deletes db records, but not files
Chad Horohoe [Fri, 21 Jan 2011 17:42:15 +0000 (17:42 +0000)]
(bug 26848) deleteArchivedFiles.php deletes db records, but not files

13 years agoFix r80666: botched variable rename
Roan Kattouw [Fri, 21 Jan 2011 17:23:24 +0000 (17:23 +0000)]
Fix r80666: botched variable rename

13 years agoPartially revert r69738 (splitting Installer/CoreInstaller). As discussed on CR,...
Chad Horohoe [Fri, 21 Jan 2011 15:27:16 +0000 (15:27 +0000)]
Partially revert r69738 (splitting Installer/CoreInstaller). As discussed on CR, this probably wasn't the best route to go with this code.

We can figure that out sometime in 1.18

13 years ago(bug 26288) $wgDeletedDirectory looks funny on Windows because / should be \ although...
Chad Horohoe [Fri, 21 Jan 2011 14:37:00 +0000 (14:37 +0000)]
(bug 26288) $wgDeletedDirectory looks funny on Windows because / should be \ although / is harmless.

13 years ago(bug 26762) Fix order of namespace list
Roan Kattouw [Fri, 21 Jan 2011 03:48:00 +0000 (03:48 +0000)]
(bug 26762) Fix order of namespace list

13 years agoAddresses issues raised in an excellent review of r80656.
Trevor Parscal [Fri, 21 Jan 2011 00:03:58 +0000 (00:03 +0000)]
Addresses issues raised in an excellent review of r80656.

13 years agoSelf-revert r80547 per CR, breaks stuff and is undesirable
Roan Kattouw [Thu, 20 Jan 2011 23:56:47 +0000 (23:56 +0000)]
Self-revert r80547 per CR, breaks stuff and is undesirable

13 years agoResolved bug 26791 by replacing JSMin with a new library called JavaScriptDistiller...
Trevor Parscal [Thu, 20 Jan 2011 21:57:01 +0000 (21:57 +0000)]
Resolved bug 26791 by replacing JSMin with a new library called JavaScriptDistiller, which is an improved version of the minification bits from JavaScriptPacker, an LGPL library. Good news - it's 2x faster than our optimized JSMin anyways, and more configurable to boot.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 20 Jan 2011 20:52:42 +0000 (20:52 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-20 20:24:00 UTC)

13 years agoAdded since notice to indicate method was not present in MW 1.16 yet
Jeroen De Dauw [Thu, 20 Jan 2011 19:26:30 +0000 (19:26 +0000)]
Added since notice to indicate method was not present in MW 1.16 yet

13 years agoRevert r75769, r80475: mistaken attempt to fix bug 25725 by deleting random newlines...
Tim Starling [Thu, 20 Jan 2011 09:37:41 +0000 (09:37 +0000)]
Revert r75769, r80475: mistaken attempt to fix bug 25725 by deleting random newlines from the output of a different diff engine.

13 years agoKill some duplicated queries by also caching negative results in wasDeletedSinceLastEdit
Niklas Laxström [Thu, 20 Jan 2011 07:38:30 +0000 (07:38 +0000)]
Kill some duplicated queries by also caching negative results in wasDeletedSinceLastEdit

13 years agoRevert r70418, r70959: direct use of $_GET is not needed anymore since we no longer...
Tim Starling [Thu, 20 Jan 2011 06:42:45 +0000 (06:42 +0000)]
Revert r70418, r70959: direct use of $_GET is not needed anymore since we no longer use null characters as separators as of r80443.

13 years agoAdd --force option to updateCollation.php.
Tim Starling [Thu, 20 Jan 2011 06:24:11 +0000 (06:24 +0000)]
Add --force option to updateCollation.php.

13 years agoIn getCategorySortkey: strip tabs and line feeds from the user-supplied category...
Tim Starling [Thu, 20 Jan 2011 05:18:39 +0000 (05:18 +0000)]
In getCategorySortkey: strip tabs and line feeds from the user-supplied category sort key, to avoid conflicts with our usage of LF. In UCA, tab is the only character that can sort above LF.

13 years agoPartial revert r78450: doQuery() and query() are not the same. You can't just swap...
Chad Horohoe [Thu, 20 Jan 2011 02:32:43 +0000 (02:32 +0000)]
Partial revert r78450: doQuery() and query() are not the same. You can't just swap one for the other without checking what might be using the result

13 years ago(bug 26716, well partially anyways. kind of second half of r80608) Add a comment...
Brian Wolff [Thu, 20 Jan 2011 01:49:49 +0000 (01:49 +0000)]
(bug 26716, well partially anyways. kind of second half of r80608) Add a comment to external editor ini control file explaining
what it is. This will give people who accidently select the preference a fighting chance to debug what is going on.

Of course, since it has a mime type of application/x-external-edit (or something like that), and the download would have
a .php extension, the chance they will open it in a text editor is pretty slim...

See bug 2760 for proposal to just kill the preference altogether.

13 years agoRm unused assignment of $wgOut. $wgOut needs to be gone from Database code.
Chad Horohoe [Thu, 20 Jan 2011 01:20:27 +0000 (01:20 +0000)]
Rm unused assignment of $wgOut. $wgOut needs to be gone from Database code.

13 years ago(bug 26716) Provide a link for setup instructions for external editor related prefere...
Brian Wolff [Thu, 20 Jan 2011 01:04:02 +0000 (01:04 +0000)]
(bug 26716) Provide a link for setup instructions for external editor related preferences. As it stands
no one really knows what they do. This can cause confusion if they get accidently checked or whatever.

Personally I think we should maybe remove these preferences altogether, since external editor can be used without them,
and its unclear how many people use it, but that requires more research into how popular the pref is, etc.

13 years agoFollow up r80432. Don't use 'known', 'noclasses' when making the links on category...
Brian Wolff [Wed, 19 Jan 2011 21:51:17 +0000 (21:51 +0000)]
Follow up r80432. Don't use 'known', 'noclasses' when making the links on category pages.

This appears to date back all the way to r23952, originally as a way to make sure redirects
were not marked as 'stub'. Thats now a non-issue since redirects don't get marked as stubs.

Also make marking of redirects consistent between the pages section and the subcategory section.

13 years agoThe pipes were no recognized after a link. A one line fix in the code :)
Platonides [Wed, 19 Jan 2011 20:46:00 +0000 (20:46 +0000)]
The pipes were no recognized after a link. A one line fix in the code :)

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 19 Jan 2011 20:30:58 +0000 (20:30 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-19 19:57:00 UTC)

13 years agoFollowup r73686: make private modules really private (i.e. Cache-Control: private...
Roan Kattouw [Wed, 19 Jan 2011 19:31:14 +0000 (19:31 +0000)]
Followup r73686: make private modules really private (i.e. Cache-Control: private instead of s-maxage=0 , for paranoia) and make debug requests really uncacheable (with no-cache, and a Pragma: no-cache for HTTP 1.0 clients)

13 years agoFollowup r80554, r80575: wrap in (function( $ ) { ... })(jQuery);
Roan Kattouw [Wed, 19 Jan 2011 17:50:23 +0000 (17:50 +0000)]
Followup r80554, r80575: wrap in (function( $ ) { ... })(jQuery);

13 years agoFollowup r80554: coding style, add var
Roan Kattouw [Wed, 19 Jan 2011 17:49:05 +0000 (17:49 +0000)]
Followup r80554: coding style, add var

13 years agoFix bug in mw.Map + fix bug 26801 + wrapper mediawiki.special.upload.js
Krinkle [Wed, 19 Jan 2011 16:26:31 +0000 (16:26 +0000)]
Fix bug in mw.Map + fix bug 26801 + wrapper mediawiki.special.upload.js
* Map.prototype.exists was checking the type of the wrong variable. Fixed now, checking multiple at once is now possible (as documented)
* bug 26801: No references to legacy globals, use mw.config everywhere in core (grep search for 'wg' in /resources returned only
* Addressed some JS Lint warnings (combining var statements, faster and less code);
* Removed trailing tabs and spaces

13 years agoUse text_pattern_ops for page_title, as some code uses 'anchor%' matching.
Greg Sabino Mullane [Wed, 19 Jan 2011 16:14:37 +0000 (16:14 +0000)]
Use text_pattern_ops for page_title, as some code uses 'anchor%' matching.

13 years ago(follow-up r66913) Per CR, make the editsummary length checker use jQuery/RL fanciness.
Brian Wolff [Wed, 19 Jan 2011 03:59:11 +0000 (03:59 +0000)]
(follow-up r66913) Per CR, make the editsummary length checker use jQuery/RL fanciness.

The js was tested in firefox 3.0.6, IE6, some oldish version of Opera, Konqourer, and Chrome.
(Of course in IE6, the rest of mediawiki fell on its face, but the js added here worked).

13 years agoWar on varchar. Changed all occurrences of varchar(N) and varchar(N) binary to varbin...
Roan Kattouw [Wed, 19 Jan 2011 01:11:21 +0000 (01:11 +0000)]
War on varchar. Changed all occurrences of varchar(N) and varchar(N) binary to varbinary(N). varchars cause problems ("Invalid mix of collations" errors) on MySQL databases with certain configs, most notably the default MySQL config