lhc/web/wiklou.git
13 years agoUpdated distributors docs.
Platonides [Sat, 26 Feb 2011 22:53:11 +0000 (22:53 +0000)]
Updated distributors docs.
Added load.php to the entry point list.
Mention maintenance/install.php existence.
Added section explaining that they shall run maintenance/update.php on update.

13 years agoMove the include_path finding code to Fallback class.
Platonides [Sat, 26 Feb 2011 22:37:58 +0000 (22:37 +0000)]
Move the include_path finding code to Fallback class.
Checking availability when calling, as only UserMailer uses it.

13 years agoDisable the old conversion from Windows-1252 unless the wiki has $wgLegacyEncoding...
Platonides [Sat, 26 Feb 2011 22:30:41 +0000 (22:30 +0000)]
Disable the old conversion from Windows-1252 unless the wiki has $wgLegacyEncoding set.
Has been done since r6920 (code added in r4438).
Also skipping the hashing if the windows-1252 password is the same we already probed.
The function_exists is not needed, since in such case GlobalFunctions would make it a wrapper to Fallback::iconv()

13 years agoFinally commit the testing stuff I have been with this week. Could be considered...
Platonides [Sat, 26 Feb 2011 21:49:42 +0000 (21:49 +0000)]
Finally commit the testing stuff I have been with this week. Could be considered a continuation of r79411.
Mixture of the NewParserTests.php with old code present in MediaWikiParserTest.php, reverting r79184 (revert of a revert...) and even eval().
Using the iterator as dataProvider, but defering the insertion of articles, as the dataprovider is processed on load, before switching dbs.
Each parser test appear now as a phpunit test. This means that by adding 683 tests (partly from extensions) we now surpass two thousand tests.
The downside of that is that they become painfully slow.
Initialise $wgHooks to $wgHooks, not to array() (r82499) as otherwise we lose ParserFirstCallInit registrations.
There's no attempt to support extensions registering to $wgParser instead of using ParserFirstCallInit properly (Cite falls in this category).

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 26 Feb 2011 21:12:01 +0000 (21:12 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-26 20:52:00 UTC)

13 years agoCase insensitivity for r82860
Max Semenik [Sat, 26 Feb 2011 17:04:26 +0000 (17:04 +0000)]
Case insensitivity for r82860

13 years agoFollow-up r82856: instead of remembering magic table names, just analyse its structur...
Max Semenik [Sat, 26 Feb 2011 16:45:35 +0000 (16:45 +0000)]
Follow-up r82856: instead of remembering magic table names, just analyse its structure, added tests.

13 years agoFollow-up r82843: Fix RELEASE-NOTES
Bryan Tong Minh [Sat, 26 Feb 2011 16:31:03 +0000 (16:31 +0000)]
Follow-up r82843: Fix RELEASE-NOTES

13 years agoFollow-up r82853: Filter out create restriction from SpecialProtectedPages and Api...
Bryan Tong Minh [Sat, 26 Feb 2011 16:29:48 +0000 (16:29 +0000)]
Follow-up r82853: Filter out create restriction from SpecialProtectedPages and Api. Added Title::getFilteredRestrictionTypes() for this purpose.

13 years agoAdd TEMPORARY TABLE support to Sqlite
Bryan Tong Minh [Sat, 26 Feb 2011 14:30:52 +0000 (14:30 +0000)]
Add TEMPORARY TABLE support to Sqlite

13 years ago(bug 27700) The upload protection can now also be set for files that do not exist.
Bryan Tong Minh [Sat, 26 Feb 2011 13:51:46 +0000 (13:51 +0000)]
(bug 27700) The upload protection can now also be set for files that do not exist.
Sort of follow-up to r79655, adds create to $wgRestrictionTypes in DefaultSettings.php as well and removes it when not applicable.

13 years agoTurn hidden help into always-visible info box for user rights info
Chad Horohoe [Sat, 26 Feb 2011 13:51:03 +0000 (13:51 +0000)]
Turn hidden help into always-visible info box for user rights info

13 years agoDon't even try to get user's IP address if he has 'ipblock-exempt' right
Alexandre Emsenhuber [Sat, 26 Feb 2011 13:28:02 +0000 (13:28 +0000)]
Don't even try to get user's IP address if he has 'ipblock-exempt' right

13 years agoMore prominent mention of r82845
Max Semenik [Sat, 26 Feb 2011 13:07:37 +0000 (13:07 +0000)]
More prominent mention of r82845

13 years agoTweak comment, we don't create LS in the conf dir anymore, you have to upload it
Chad Horohoe [Sat, 26 Feb 2011 12:56:32 +0000 (12:56 +0000)]
Tweak comment, we don't create LS in the conf dir anymore, you have to upload it

13 years agoFollow-up r82845: fix $wgScriptPath detection.
Max Semenik [Sat, 26 Feb 2011 12:51:35 +0000 (12:51 +0000)]
Follow-up r82845: fix $wgScriptPath detection.

13 years ago(bug 1379) Installer directory conflicts with some hosts' configuration panel.
Max Semenik [Sat, 26 Feb 2011 12:35:23 +0000 (12:35 +0000)]
(bug 1379) Installer directory conflicts with some hosts' configuration panel.

Renamed config/ to mw-config/, however left aliases for b/c.

13 years agoRemove double parser test from r82843
Bryan Tong Minh [Sat, 26 Feb 2011 12:19:55 +0000 (12:19 +0000)]
Remove double parser test from r82843

13 years ago(bug 27679) Broken embedded files with special characters are no longer double HTML...
Bryan Tong Minh [Sat, 26 Feb 2011 12:08:59 +0000 (12:08 +0000)]
(bug 27679) Broken embedded files with special characters are no longer double HTML escaped
Was a double escape in Linker::makeBrokenImageLinkObj. I checked the callers and other usages in the function and $prefix and $inside appear to be assumed HTML fragments
Added parser tests: Passed 622 of 624 tests (99.68%)... 2 tests failed! Those two tests already failed for me before this patch

13 years agoNull -> null, reorder docs to match signature
Chad Horohoe [Sat, 26 Feb 2011 10:55:44 +0000 (10:55 +0000)]
Null -> null, reorder docs to match signature

13 years agoFix bug that caused "Non-string key given" exception.
Niklas Laxström [Sat, 26 Feb 2011 08:19:21 +0000 (08:19 +0000)]
Fix bug that caused "Non-string key given" exception.
Broken since introducsed in r10810 almost six years ago.
This proves that the exception in message caches is valid and covers errors.
Tested that exception is no longer thrown.

13 years agoFollowup r82810, r82813, r82814
Sam Reed [Fri, 25 Feb 2011 21:41:19 +0000 (21:41 +0000)]
Followup r82810, r82813, r82814

Only display hidden stuff if any vaguely related property is set

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 25 Feb 2011 21:28:08 +0000 (21:28 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-25 20:05:00 UTC)

13 years agoFix double indenting
Sam Reed [Fri, 25 Feb 2011 20:24:08 +0000 (20:24 +0000)]
Fix double indenting

13 years agoOne minor followup to r82810
Sam Reed [Fri, 25 Feb 2011 20:22:54 +0000 (20:22 +0000)]
One minor followup to r82810

return $vals; early, rather than indenting all of the code another level

13 years ago(follow-up r82810) Address Reedy's comments on irc.
Brian Wolff [Fri, 25 Feb 2011 20:16:19 +0000 (20:16 +0000)]
(follow-up r82810) Address Reedy's comments on irc.

13 years ago(bug 27715) Make imageinfo api module respect revDelete.
Brian Wolff [Fri, 25 Feb 2011 19:51:37 +0000 (19:51 +0000)]
(bug 27715) Make imageinfo api module respect revDelete.

This treats metadata and similar properties to be deleted if the file is deleted, since they
are derived from the file, and i know examples of where the file was deleted to hide sensitive
data in exif. Does still show the file size if file is deleted, because that is what is done
in interface. Follows what ApiQueryLogEvents does and outputs userhidden="" if the user cannot
be displayed due to being hidden.

Due to this bug, all the secret oversight cabal info could be visible for images, so probably
should be merged into wmf stuff soon as possible.

13 years agoImplement getRequireOnlyOneParameterErrorMessages, to make the error messages require...
Sam Reed [Fri, 25 Feb 2011 19:09:39 +0000 (19:09 +0000)]
Implement getRequireOnlyOneParameterErrorMessages, to make the error messages requireOnlyOneParameter can throw.

Use in 4 modules for more dynamicness

13 years agoDisplay userid, and actually put username in user (like usual)
Sam Reed [Fri, 25 Feb 2011 17:21:34 +0000 (17:21 +0000)]
Display userid, and actually put username in user (like usual)

Fix up a bad description

13 years agoCommit stuff from my w/c
Sam Reed [Fri, 25 Feb 2011 16:53:33 +0000 (16:53 +0000)]
Commit stuff from my w/c

Remove white line

Make second if else if (they're opposites)

13 years ago* (bug 27708) list=users does not have a property to return user id
Sam Reed [Fri, 25 Feb 2011 16:19:44 +0000 (16:19 +0000)]
* (bug 27708) list=users does not have a property to return user id

Add userid to ApiQueryUsers

Move userid in ApiQueryAllUsers before name

13 years ago* (bug 27680) Fix for r82273: wgCanonicalSpecialPageName no longer false when request...
Alexandre Emsenhuber [Fri, 25 Feb 2011 11:48:14 +0000 (11:48 +0000)]
* (bug 27680) Fix for r82273: wgCanonicalSpecialPageName no longer false when requesting a special page with subpage parameter

The problem is that in this case $wgOut's Title object is not exactely the same $wgTitle because of line 600 of SpecialPage:
$wgTitle = $page->getTitle();
which strips the subpage parameter. Now using SpecialPage::resolveAliasWithSubpage() so that it works in all cases.

Also PHP strikes again for not allowing SpecialPage::resolveAliasWithSubpage( $title->getDBkey() )[0] syntax. YAY :)

13 years ago* (bug 24230) Added JAR detection. ZIP archives containing a .class file will be...
Tim Starling [Fri, 25 Feb 2011 04:51:17 +0000 (04:51 +0000)]
* (bug 24230) Added JAR detection. ZIP archives containing a .class file will be rejected by default. Malformed ZIP archives will be rejected due to the danger of ambiguous parsing on the client side.
* Removed the ZIP subtypes from $wgMimeTypeBlacklist, they no longer need to be there.
* Added ZipDirectoryReader. Added some small ZIP files which are used to test its various error cases. Most were constructed with a hex editor.
* Fixed getStatusArray() to return a consistent type regardless of whether the error message has parameters. This allows error messages with no parameters to work with the Status object conversion code in UploadBase::verifyFile().

13 years agochanging implied if-statement into a real if-statment; Passes strict settings of...
Krinkle [Thu, 24 Feb 2011 23:10:04 +0000 (23:10 +0000)]
changing implied if-statement into a real if-statment; Passes strict settings of JSHint now as well

13 years agoRefactor code a little bit, save doing redundant checks if known not necessary.
Sam Reed [Thu, 24 Feb 2011 23:03:55 +0000 (23:03 +0000)]
Refactor code a little bit, save doing redundant checks if known not necessary.

Improves flow a little

13 years agoBit of documentation, explicitness, variable definition
Sam Reed [Thu, 24 Feb 2011 23:03:00 +0000 (23:03 +0000)]
Bit of documentation, explicitness, variable definition

13 years agocaching selector instead of re-creating the jQuery object for 'this' two or three...
Krinkle [Thu, 24 Feb 2011 23:02:56 +0000 (23:02 +0000)]
caching selector instead of re-creating the jQuery object for 'this' two or three times

13 years agoRemoved white-background from ul.gallery; Updated commonPrint gallery styles
Krinkle [Thu, 24 Feb 2011 21:16:41 +0000 (21:16 +0000)]
Removed white-background from ul.gallery; Updated commonPrint gallery styles

Since a while now proper margins and overflow prevent underlines and stuff from shining through other elements (such as tables, thumbs and galleries). Therefore there's no longer a need to force a white-background which caused ugly galleries on (parts of) pages with a non-white background (ie. a table.wikitable, or div.toccolours or  Commons' {{Information}} template)

The printstyles were outdated (stil targeted <table> instead of the new fluid galleries' <ul>). Updated now and white background removed there as well

* This commit fixes (bug 27458) Remove white background-color from ul.gallery
* r65923 introduced print-style for galleries (to make them look like galleries instead of tables)
* r77411 made galleries fluid and therewith changed the element from <table> to <ul>

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 24 Feb 2011 20:48:38 +0000 (20:48 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-24 20:21:00 UTC)

13 years agoFixup one missed alias rename from r82739
Sam Reed [Thu, 24 Feb 2011 20:46:45 +0000 (20:46 +0000)]
Fixup one missed alias rename from r82739

13 years ago* EOL w/s cleanup
Mark A. Hershberger [Thu, 24 Feb 2011 20:23:49 +0000 (20:23 +0000)]
* EOL w/s cleanup
* Normalize function names to eliminate two references to “HalfParsedDATA”

13 years agoFollowup to r82739 (bug 27688)
Sam Reed [Thu, 24 Feb 2011 18:46:12 +0000 (18:46 +0000)]
Followup to r82739 (bug 27688)

Remove u1 table aliases

13 years ago* (bug 27688) Simplify queries to list user block information
Sam Reed [Thu, 24 Feb 2011 18:43:44 +0000 (18:43 +0000)]
* (bug 27688) Simplify queries to list user block information

Also expose block expiry information, listed on Users, but not all users

Some minor simplifications to come

13 years agoFix core parserTests for recent <gallery> changes
OverlordQ [Thu, 24 Feb 2011 17:16:31 +0000 (17:16 +0000)]
Fix core parserTests for recent <gallery> changes

13 years agoMore member variable documentation
Sam Reed [Thu, 24 Feb 2011 17:04:49 +0000 (17:04 +0000)]
More member variable documentation

13 years agoFix variable name in comment
Alexandre Emsenhuber [Thu, 24 Feb 2011 16:19:42 +0000 (16:19 +0000)]
Fix variable name in comment

13 years agoFollowup r82727, improve comments, cast return value to bool
Sam Reed [Thu, 24 Feb 2011 16:00:06 +0000 (16:00 +0000)]
Followup r82727, improve comments, cast return value to bool

13 years agoSeems the api edit watch/unwatch wasn't too well tested (after it got poked a lot)
Sam Reed [Thu, 24 Feb 2011 15:51:51 +0000 (15:51 +0000)]
Seems the api edit watch/unwatch wasn't too well tested (after it got poked a lot)

EditPage::commitWatch() unconditionally  does a watch/unwatch...

And multiple watches of a watched page end up with an INSERT IGNORE, so not a big deal

13 years ago* (bug 27681) Set $namespaceGenderAliases for Portuguese (pt and pt-br)
Sam Reed [Thu, 24 Feb 2011 13:59:58 +0000 (13:59 +0000)]
* (bug 27681) Set $namespaceGenderAliases for Portuguese (pt and pt-br)

Add release notes for 2 other language bugs too

13 years agoAdd a couple of type hints noticed when poking bug 27673
Sam Reed [Thu, 24 Feb 2011 11:59:51 +0000 (11:59 +0000)]
Add a couple of type hints noticed when poking bug 27673

13 years ago(bug 27426) Add namespace gender aliases for Arabic.
Siebrand Mazeland [Thu, 24 Feb 2011 09:39:28 +0000 (09:39 +0000)]
(bug 27426) Add namespace gender aliases for Arabic.

13 years agoUpdate punctuation.
Siebrand Mazeland [Thu, 24 Feb 2011 08:48:01 +0000 (08:48 +0000)]
Update punctuation.

13 years agoNormalising API documentation
Sam Reed [Thu, 24 Feb 2011 00:52:09 +0000 (00:52 +0000)]
Normalising API documentation

2 modules list older, newer

7 list newer, older

So changing 2 different to match the 7

13 years agoFixes for r82645:
Tim Starling [Wed, 23 Feb 2011 23:42:04 +0000 (23:42 +0000)]
Fixes for r82645:
* Fixed several obvious bugs in the $wgCiteCacheReferences helper functions, missed due to inadequate testing.
* Don't save complete Title objects to memcached, they contain cached data with a short lifetime.
* Fixed a doc comment.

13 years ago(Bug #27634) TOC title appears in wrong language
Mark A. Hershberger [Wed, 23 Feb 2011 20:32:57 +0000 (20:32 +0000)]
(Bug #27634) TOC title appears in wrong language

Patch from P.Copp

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 23 Feb 2011 20:29:27 +0000 (20:29 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-23 20:13:00 UTC)

13 years agoFactorise common code:
Alexandre Emsenhuber [Wed, 23 Feb 2011 20:23:35 +0000 (20:23 +0000)]
Factorise common code:
* Made appendQuery() use appendQueryArray() by using wfCgiToArray()
* Introduced getQueryValues() to get values passed in the query string; FauxRequest will return an empty array when faking a POST request

13 years agoMinor typos
Antoine Musso [Wed, 23 Feb 2011 19:56:33 +0000 (19:56 +0000)]
Minor typos

(Trow -> Throw, Sens->sense), follow up CR on r82577

13 years ago(bug 25855) Installer does not validate Memcached server settings
Chad Horohoe [Wed, 23 Feb 2011 17:54:45 +0000 (17:54 +0000)]
(bug 25855) Installer does not validate Memcached server settings

13 years agoUse $wgRequest to get and set session items instead of $_SESSION (as for cookies)
Alexandre Emsenhuber [Wed, 23 Feb 2011 17:54:02 +0000 (17:54 +0000)]
Use $wgRequest to get and set session items instead of $_SESSION (as for cookies)

13 years agoMove doclink pages to the left sidebar, rather than the right.
Chad Horohoe [Wed, 23 Feb 2011 17:22:09 +0000 (17:22 +0000)]
Move doclink pages to the left sidebar, rather than the right.
The right should be steps :)

13 years agoPartial revert r81779, $wgHooks is needed. Also add $wgAutoloadClasses
Chad Horohoe [Wed, 23 Feb 2011 16:48:11 +0000 (16:48 +0000)]
Partial revert r81779, $wgHooks is needed. Also add $wgAutoloadClasses

13 years agoFollowup r81534, use addQuotes() instead
Chad Horohoe [Wed, 23 Feb 2011 16:42:42 +0000 (16:42 +0000)]
Followup r81534, use addQuotes() instead

13 years agoTweak message from r82676
Max Semenik [Wed, 23 Feb 2011 16:27:50 +0000 (16:27 +0000)]
Tweak message from r82676

13 years agoDon't allow the user to create DB users with no passwords, it's not good practice.
Chad Horohoe [Wed, 23 Feb 2011 16:18:51 +0000 (16:18 +0000)]
Don't allow the user to create DB users with no passwords, it's not good practice.
We can't stop them from using users that already have empty passwords, but we can refuse to create it ;-)

13 years agoVarious Postgres fixes (bug 26612 stuff)
Chad Horohoe [Wed, 23 Feb 2011 16:01:22 +0000 (16:01 +0000)]
Various Postgres fixes (bug 26612 stuff)
* Remove last of $wgDBuser-specific settings like timezone, datestyle and search_path. This is all handled by open() :D
* Only set search_path if the schema exists (rather than just set to some random string), fall back to 'public' otherwise
* Only call setupUser() if we need to _CreateDBAccount, otherwise it returns immediately and confuses you (no functional change)
* Implement selectDB() for Postgres, basically call open() with a new DB name
* Try to fix setupDatabase() for this "user must be owner of relation" error I'm getting when the $wgDBuser exists (have tried with roles granted && no roles granted). I get no errors at all when

13 years agoFollowup r82550: define variables passed by reference to preg_match() beforehand...
Roan Kattouw [Wed, 23 Feb 2011 15:54:19 +0000 (15:54 +0000)]
Followup r82550: define variables passed by reference to preg_match() beforehand, to prevent E_NOTICEs

13 years agoFix backwards canCreateAccounts() check, remove setting search_path for $wgDBuser...
Chad Horohoe [Wed, 23 Feb 2011 14:26:45 +0000 (14:26 +0000)]
Fix backwards canCreateAccounts() check, remove setting search_path for $wgDBuser, since this is set per-session on open()

13 years agoRm unused member variable
Chad Horohoe [Wed, 23 Feb 2011 13:53:47 +0000 (13:53 +0000)]
Rm unused member variable

13 years agoPer bug 26612, set datestyle and timezone in open() rather than relying on $wgDBuser...
Chad Horohoe [Wed, 23 Feb 2011 13:51:00 +0000 (13:51 +0000)]
Per bug 26612, set datestyle and timezone in open() rather than relying on $wgDBuser having specific settings.

13 years agoFollowup r82659
Sam Reed [Wed, 23 Feb 2011 12:56:46 +0000 (12:56 +0000)]
Followup r82659

Comment out the USE INDEX, it creates a query error as the query is built wrongly.

Will report as a bug.

Will revert to previous behaviour of not forcing any index

13 years agoUnunsed variables
Sam Reed [Wed, 23 Feb 2011 12:35:41 +0000 (12:35 +0000)]
Ununsed variables

Documentation and explicit definitions

13 years ago(bug 20244) Installer does not validate SQLite database directory for stable path.
Max Semenik [Wed, 23 Feb 2011 12:35:11 +0000 (12:35 +0000)]
(bug 20244) Installer does not validate SQLite database directory for stable path.

This is a must for 1.17 so adding a note to HISTORY instead of RELEASE-NOTES

13 years agoFixup SpecialListusers, $useIndex wasn't being used in the query, so make it be
Sam Reed [Wed, 23 Feb 2011 12:27:06 +0000 (12:27 +0000)]
Fixup SpecialListusers, $useIndex wasn't being used in the query, so make it be

13 years agoVery basic JavaScriiptDistiller tests, needs serious expansion
Max Semenik [Wed, 23 Feb 2011 08:06:11 +0000 (08:06 +0000)]
Very basic JavaScriiptDistiller tests, needs serious expansion

13 years agoRevert coloring from r79117: doesn't work on Windows
Max Semenik [Wed, 23 Feb 2011 07:28:15 +0000 (07:28 +0000)]
Revert coloring from r79117: doesn't work on Windows

13 years ago* Rewrote StripState to not use ReplacementArray. The memory usage of FSS was excessi...
Tim Starling [Wed, 23 Feb 2011 06:58:15 +0000 (06:58 +0000)]
* Rewrote StripState to not use ReplacementArray. The memory usage of FSS was excessive when there were many (>10k) strip items. I used preg_replace_callback(), which is slower than strtr() in the simplest case, but much faster than it when the markers have different lengths, which they usually do.
* It was not necessary to preserve the $stripState->general->setPair() interface since it wasn't used by any extensions.
* Moved StripState to its own file.
* Refactored serialiseHalfParsedText() and unserialiseHalfParsedText() so that the bulk of the functionality is in the relevant modules, instead of using scary direct access to object member variables. Made it support the new StripState. It seemed like a lot of work to go to to support an "emergency optimisation" feature in Cite. Cite updates will be in a subsequent commit.
* Fixed spelling of serialiseHalfParsedText() and unserialiseHalfParsedText(), there is unavoidable interface breakage anyway, due to cache object versioning.
* Moved transparent tags to their own function, as requested in a fixme comment.
* Added documentation for markerSkipCallback().
* Removed OnlyIncludeReplacer, unused since MW 1.12.

13 years agoFollowup r82641, set default for 2nd param
Sam Reed [Tue, 22 Feb 2011 23:40:48 +0000 (23:40 +0000)]
Followup r82641, set default for 2nd param

Fix caller in SpecialLinkSearch.php

13 years agoRemove now redundant comment after r82641
Sam Reed [Tue, 22 Feb 2011 23:26:53 +0000 (23:26 +0000)]
Remove now redundant comment after r82641

13 years agoFollowup r78786, per complaints on r82636, revert parameter ordering
Sam Reed [Tue, 22 Feb 2011 23:22:09 +0000 (23:22 +0000)]
Followup r78786, per complaints on r82636, revert parameter ordering

Mark doQuery as deprecated/not the suggested run point

Add a couple of braces

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 22 Feb 2011 21:52:34 +0000 (21:52 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-22 21:13:00 UTC)

13 years agoFollow-up r82504: use JS redirection only for IE, I don't like how it looks at least...
Max Semenik [Tue, 22 Feb 2011 17:15:48 +0000 (17:15 +0000)]
Follow-up r82504: use JS redirection only for IE, I don't like how it looks at least in Opera (sometimes images are not loaded)

13 years ago* random redirect-related fixes:
Ryan Schmidt [Tue, 22 Feb 2011 16:39:17 +0000 (16:39 +0000)]
* random redirect-related fixes:
** automatically add redirect=no to all links on the redirect page in Article::viewRedirect.
** properly check if redirects are enabled if $wgMaxRedirects < 1 (moved check from Title::newFromRedirectArray to Title::newFromRedirectInternal).

13 years ago* (bug 27633) Add characters to linkTrail for Potuguese (pt and pt-br)
Sam Reed [Tue, 22 Feb 2011 15:33:02 +0000 (15:33 +0000)]
* (bug 27633) Add characters to linkTrail for Potuguese (pt and pt-br)

Add RELEASE-NOTES for r82547

13 years agoRemove trailing ?>
Platonides [Tue, 22 Feb 2011 15:09:41 +0000 (15:09 +0000)]
Remove trailing ?>

13 years agoRename startExternalParse() when used for internal usage, per r80818 CR.
Platonides [Tue, 22 Feb 2011 15:05:08 +0000 (15:05 +0000)]
Rename startExternalParse() when used for internal usage, per r80818 CR.

13 years agoMerge r67177 from 1.16wmf4
Platonides [Tue, 22 Feb 2011 10:26:00 +0000 (10:26 +0000)]
Merge r67177 from 1.16wmf4

13 years agomaintenance/commandLine.inc loads DefaultSettings, LocalSettings and then runs Setup.php
Platonides [Mon, 21 Feb 2011 23:19:26 +0000 (23:19 +0000)]
maintenance/commandLine.inc loads DefaultSettings, LocalSettings and then runs Setup.php
As Setup.php assigns variables based on the cache config, bootstrap.php was late on reseting them, as some objects were already created.
So we could end up with a SqlBagOStuff created there, which when later accessed (such as trying to invalidate the cache for a user) would
-as any non-sqlite SqlBagOStuff- open a new db connection. Which is precisely what we shall not be done when dealing with temporary tables
(and would indeed fail miserably due to not finding unittest_objectcache table).

In summary, reenabling temporary tables disabled in r79411.

13 years agoremove hardcoded local path
Antoine Musso [Mon, 21 Feb 2011 22:56:16 +0000 (22:56 +0000)]
remove hardcoded local path

13 years agoFollow up r80205 magic, so that you can also use require.
Platonides [Mon, 21 Feb 2011 22:36:35 +0000 (22:36 +0000)]
Follow up r80205 magic, so that you can also use require.

13 years agoimprove namespace related methods
Antoine Musso [Mon, 21 Feb 2011 22:17:06 +0000 (22:17 +0000)]
improve namespace related methods

MWNamespace::getTalk() could give erroneus results when using it on specials
namespaces (NS_MEDIA, NS_SPECIAL). It now use MWNamespace::isMethodValidFor()
which will throw an exception if a special namespace was given.

MWNamespace::getSubject() is now returning identity for specials namespaces.

New MWNamespace::getAssociated() used to find out the subject page of a talk
page and vice versa. Special namespaces will results in an exception.

TESTS:

Added tests for almost complete code coverage. Functions relying on global
$wgCanonicalNamespaces are still incomplete though.
MWNamespace::isMovable() needs more assertions.

Tests results (ignoring incomplete tests output):

$ php phpunit.php --filter MWNamespace
PHPUnit 3.5.10 by Sebastian Bergmann.

.........IIIII..........

Time: 1 second, Memory: 31.75Mb

OK, but incomplete or skipped tests!
Tests: 24, Assertions: 99, Incomplete: 5.

13 years agoAdd missing to mw.config
Krinkle [Mon, 21 Feb 2011 21:24:09 +0000 (21:24 +0000)]
Add missing  to mw.config

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 21 Feb 2011 20:36:18 +0000 (20:36 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-21 20:13:00 UTC)

13 years agoFollow-up r73270. Moving the attribute check down to the point where it's for sure...
Krinkle [Mon, 21 Feb 2011 20:36:07 +0000 (20:36 +0000)]
Follow-up r73270. Moving the attribute check down to the point where it's for sure not a string or undefined.  (caused 'cant call getAttribute member function on non-object el [undefined]'. Also add a check to verify that el is a dom element and not just not indefined

13 years ago* (bug 27616) Add userid of blocked user and blocker to list=blocks
Sam Reed [Mon, 21 Feb 2011 19:48:15 +0000 (19:48 +0000)]
* (bug 27616) Add userid of blocked user and blocker to list=blocks

Also tweak comment about "blocking admin". Non admins can block if they have the right... Sooo,  "user" is more appropriate

13 years ago* (bug 27611) list=blocks: Use ipb_by_text instead of join with user table
Sam Reed [Mon, 21 Feb 2011 19:34:57 +0000 (19:34 +0000)]
* (bug 27611) list=blocks: Use ipb_by_text instead of join with user table

Save a table join when looking up blocks (yay!)

Minor issue, for blocks where users have been renamed, we get their old name (Not a big deal IMHO)

13 years agoDe-escaping $ at end of linkTrail regexes dating back from r15823 and beyond
Sam Reed [Mon, 21 Feb 2011 19:12:13 +0000 (19:12 +0000)]
De-escaping $ at end of linkTrail regexes dating back from r15823 and beyond

13 years agoPer Hashar on r82547, u modifier needed on regexes
Sam Reed [Mon, 21 Feb 2011 19:02:55 +0000 (19:02 +0000)]
Per Hashar on r82547, u modifier needed on regexes

13 years agoFixup and add another return type
Sam Reed [Mon, 21 Feb 2011 17:12:33 +0000 (17:12 +0000)]
Fixup and add another return type

13 years agoSome more member variable type hints
Sam Reed [Mon, 21 Feb 2011 17:03:18 +0000 (17:03 +0000)]
Some more member variable type hints