Jure Kajzer [Tue, 1 Mar 2011 07:40:53 +0000 (07:40 +0000)]
* fixed INDEX change (i missed that one)
Siebrand Mazeland [Tue, 1 Mar 2011 01:03:18 +0000 (01:03 +0000)]
Localisation updates from translatewiki.net.
Purodha B Blissenbach [Mon, 28 Feb 2011 23:49:53 +0000 (23:49 +0000)]
(bug 27785) Fallback language for Kabardian (kbd) is English now.
Chad Horohoe [Mon, 28 Feb 2011 23:15:14 +0000 (23:15 +0000)]
Don't allow user to create a Project namespace that conflicts with existing namespaces
OverlordQ [Mon, 28 Feb 2011 21:57:56 +0000 (21:57 +0000)]
Followup to r82874, restore lost edits
Raimond Spekking [Mon, 28 Feb 2011 21:27:29 +0000 (21:27 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-28 21:08:00 UTC)
Krinkle [Mon, 28 Feb 2011 21:20:23 +0000 (21:20 +0000)]
Closing tags in jQuery-element creation. Bug in jQuery, using the shortcut doens't work in IE8, it needs to be <open></close>
Antoine Musso [Mon, 28 Feb 2011 20:58:34 +0000 (20:58 +0000)]
FormOptions: adds doc & tests
Happy-melon [Mon, 28 Feb 2011 18:43:05 +0000 (18:43 +0000)]
Rm nonstandard and redundant styles for Special:SpecialPages; really no need for them, plus using an out-of-order header level is bad for accessibility.
Antoine Musso [Mon, 28 Feb 2011 17:33:03 +0000 (17:33 +0000)]
generate caller graphs in doxygen
Sam Reed [Mon, 28 Feb 2011 16:37:34 +0000 (16:37 +0000)]
Commit some uncommited documentation from my w/c
Purodha B Blissenbach [Mon, 28 Feb 2011 16:35:58 +0000 (16:35 +0000)]
Consisten wording as requested by Der Umherirrende, see:
http://translatewiki.net/wiki/Thread:Support/change_message 'rev-deleted-comment'
Platonides [Mon, 28 Feb 2011 15:16:40 +0000 (15:16 +0000)]
Blindly fix the error produced in r82880.
Bryan Tong Minh [Mon, 28 Feb 2011 13:54:14 +0000 (13:54 +0000)]
Maintenance script to import all scripts in the MediaWiki namespace from a local site.
Useful for local debugging of broken scripts.
Tim Starling [Mon, 28 Feb 2011 03:15:39 +0000 (03:15 +0000)]
Followup for r81340:
* Allow any language code which consists entirely of valid title characters, and does not contain any path-traversal characters, to be customised via the uselang parameter. Language::isValidCode() represents this concept.
* Add some shortcuts preventing Language and LocalisationCache from looking for localisation files for a language code which does not follow the usual form of language codes in MediaWiki, i.e. /[a-z-]*/. This concept is represented by Language::isValidBuiltInCode().
* Do not allow colon characters in file names, per Platonides' suggestion on CR.
Tim Starling [Mon, 28 Feb 2011 02:40:39 +0000 (02:40 +0000)]
Fixed fatal error in Preprocessor_Hash due to r82645
Tim Starling [Mon, 28 Feb 2011 02:35:57 +0000 (02:35 +0000)]
Revert r81576: The fact that there are two checks, one close to the inclusion and one exposed to the user, was a deliberate security measure. Only the fact that they are the same was intended to be temporary.
Tim Starling [Mon, 28 Feb 2011 02:26:47 +0000 (02:26 +0000)]
Minor fix in ZIP64 code from r82783. Note that this code is, before and after this fix, untested and unused. I only committed it because I thought it might be a helpful starting point for future development.
Mark A. Hershberger [Mon, 28 Feb 2011 00:05:04 +0000 (00:05 +0000)]
Add mime type/info for .eml files
Sam Reed [Sun, 27 Feb 2011 21:45:11 +0000 (21:45 +0000)]
Deleting .svnignore file, it's already there in the svn props
Sam Reed [Sun, 27 Feb 2011 21:31:47 +0000 (21:31 +0000)]
Refactor out the duplication I left with a TODO in r79659
Sam Reed [Sun, 27 Feb 2011 21:11:45 +0000 (21:11 +0000)]
Tweak documentation
Fix constant use in UploadTest
Sam Reed [Sun, 27 Feb 2011 21:10:11 +0000 (21:10 +0000)]
Tweak comments, remove some unused stuff.
Explicit definitions, move a few minor bits around
Derk-Jan Hartman [Sun, 27 Feb 2011 21:06:09 +0000 (21:06 +0000)]
Remove unneeded commented code, that I accidently added in r82461
Jeroen De Dauw [Sun, 27 Feb 2011 20:48:52 +0000 (20:48 +0000)]
Moved stuff so the cURL class can be used to post files and added constants so you can check if the class allows for file posting
Raimond Spekking [Sun, 27 Feb 2011 20:16:58 +0000 (20:16 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-27 19:50:00 UTC)
Sam Reed [Sun, 27 Feb 2011 15:23:41 +0000 (15:23 +0000)]
More bits of documentation
Sam Reed [Sun, 27 Feb 2011 00:40:06 +0000 (00:40 +0000)]
Tweak some documentation
Add some braces
Explicitally define a variable
Sam Reed [Sun, 27 Feb 2011 00:36:10 +0000 (00:36 +0000)]
$somevariable; doesn't count as defining a variable
Sam Reed [Sun, 27 Feb 2011 00:29:21 +0000 (00:29 +0000)]
Remove unreachable return
Swap "dieout" for "die" in DatabaseMssql
Platonides [Sat, 26 Feb 2011 23:47:41 +0000 (23:47 +0000)]
r82877 fixup. It should have only removed the = null bit.
Platonides [Sat, 26 Feb 2011 23:45:35 +0000 (23:45 +0000)]
Remove NewParserHelpers.php and use instead the original TestFileIterator from which it was copied in r79411.
Remove the $this->parserTest checks as r79411 did. They are no longer needed. They were here since
TestFileIterator addition in r62006 back when this file was called parserTests.inc, before being renamed twice
without preserving history.
The wfDie(); wasn't intended to fall into trunk. It was marking a dead branch and got committed by error in r76149.
Platonides [Sat, 26 Feb 2011 23:44:37 +0000 (23:44 +0000)]
Reapply the @ingroup change which was done in r78389 at the same time it was copied.
The © corruption seem to have been done at the same time, as this doesn't need r78389 reapplied.
Platonides [Sat, 26 Feb 2011 23:36:30 +0000 (23:36 +0000)]
Readding parserTests.php and testHelpers.inc with history back to r73884 when they had also been moved without telling svn about it.
Follow up to r78389 and r82873.
Platonides [Sat, 26 Feb 2011 23:31:44 +0000 (23:31 +0000)]
Remove testHelpers.{inc,php} for recommiting with history lost in r78389.
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.
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.
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()
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).
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)
Max Semenik [Sat, 26 Feb 2011 17:04:26 +0000 (17:04 +0000)]
Case insensitivity for r82860
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.
Bryan Tong Minh [Sat, 26 Feb 2011 16:31:03 +0000 (16:31 +0000)]
Follow-up r82843: Fix RELEASE-NOTES
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.
Bryan Tong Minh [Sat, 26 Feb 2011 14:30:52 +0000 (14:30 +0000)]
Add TEMPORARY TABLE support to Sqlite
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.
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
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
Max Semenik [Sat, 26 Feb 2011 13:07:37 +0000 (13:07 +0000)]
More prominent mention of r82845
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
Max Semenik [Sat, 26 Feb 2011 12:51:35 +0000 (12:51 +0000)]
Follow-up r82845: fix $wgScriptPath detection.
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.
Bryan Tong Minh [Sat, 26 Feb 2011 12:19:55 +0000 (12:19 +0000)]
Remove double parser test from r82843
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
Chad Horohoe [Sat, 26 Feb 2011 10:55:44 +0000 (10:55 +0000)]
Null -> null, reorder docs to match signature
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.
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
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)
Sam Reed [Fri, 25 Feb 2011 20:24:08 +0000 (20:24 +0000)]
Fix double indenting
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
Brian Wolff [Fri, 25 Feb 2011 20:16:19 +0000 (20:16 +0000)]
(follow-up r82810) Address Reedy's comments on irc.
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.
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
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
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)
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
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 :)
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().
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
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
Sam Reed [Thu, 24 Feb 2011 23:03:00 +0000 (23:03 +0000)]
Bit of documentation, explicitness, variable definition
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
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>
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)
Sam Reed [Thu, 24 Feb 2011 20:46:45 +0000 (20:46 +0000)]
Fixup one missed alias rename from r82739
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”
Sam Reed [Thu, 24 Feb 2011 18:46:12 +0000 (18:46 +0000)]
Followup to r82739 (bug 27688)
Remove u1 table aliases
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
OverlordQ [Thu, 24 Feb 2011 17:16:31 +0000 (17:16 +0000)]
Fix core parserTests for recent <gallery> changes
Sam Reed [Thu, 24 Feb 2011 17:04:49 +0000 (17:04 +0000)]
More member variable documentation
Alexandre Emsenhuber [Thu, 24 Feb 2011 16:19:42 +0000 (16:19 +0000)]
Fix variable name in comment
Sam Reed [Thu, 24 Feb 2011 16:00:06 +0000 (16:00 +0000)]
Followup r82727, improve comments, cast return value to bool
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
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
Sam Reed [Thu, 24 Feb 2011 11:59:51 +0000 (11:59 +0000)]
Add a couple of type hints noticed when poking bug 27673
Siebrand Mazeland [Thu, 24 Feb 2011 09:39:28 +0000 (09:39 +0000)]
(bug 27426) Add namespace gender aliases for Arabic.
Siebrand Mazeland [Thu, 24 Feb 2011 08:48:01 +0000 (08:48 +0000)]
Update punctuation.
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
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.
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
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)
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
Antoine Musso [Wed, 23 Feb 2011 19:56:33 +0000 (19:56 +0000)]
Minor typos
(Trow -> Throw, Sens->sense), follow up CR on r82577
Chad Horohoe [Wed, 23 Feb 2011 17:54:45 +0000 (17:54 +0000)]
(bug 25855) Installer does not validate Memcached server settings
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)
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 :)
Chad Horohoe [Wed, 23 Feb 2011 16:48:11 +0000 (16:48 +0000)]
Partial revert r81779, $wgHooks is needed. Also add $wgAutoloadClasses
Chad Horohoe [Wed, 23 Feb 2011 16:42:42 +0000 (16:42 +0000)]
Followup r81534, use addQuotes() instead
Max Semenik [Wed, 23 Feb 2011 16:27:50 +0000 (16:27 +0000)]
Tweak message from r82676
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 ;-)