Sam Reed [Sun, 31 Oct 2010 23:08:38 +0000 (23:08 +0000)]
Switch last few uses of while loops to foreach in phase3
Siebrand Mazeland [Sun, 31 Oct 2010 22:36:13 +0000 (22:36 +0000)]
Use message 'savearticle' instead of plain text in 'explainconflict'.
Platonides [Sun, 31 Oct 2010 22:25:29 +0000 (22:25 +0000)]
Don't increment stats when called from the scripts.
This avoids things like PHPUnit opening a db connection just for this due to the default SqDlBagOStuff.
Krinkle [Sun, 31 Oct 2010 22:20:05 +0000 (22:20 +0000)]
Follow-up r75653 + replacing this. with mw.util
Derk-Jan Hartman [Sun, 31 Oct 2010 22:10:44 +0000 (22:10 +0000)]
Use isset to protect against Undefined index PHP notice.
Derk-Jan Hartman [Sun, 31 Oct 2010 21:53:29 +0000 (21:53 +0000)]
Upscale thumbnails of SVGs if the nominal size of the SVG is smaller than the thumbnail size.
Fixes bug 19633. Requires r75748
Derk-Jan Hartman [Sun, 31 Oct 2010 21:49:25 +0000 (21:49 +0000)]
Add a new isVectorized() to files and media handlers. Only SVG returns true.
Related to Bug 19633.
Rotem Liss [Sun, 31 Oct 2010 19:12:47 +0000 (19:12 +0000)]
Localization update for he.
Platonides [Sun, 31 Oct 2010 19:07:05 +0000 (19:07 +0000)]
Follow up r75542, in the odd case that Maintenance.php wasn't already loaded.
Derk-Jan Hartman [Sun, 31 Oct 2010 18:22:37 +0000 (18:22 +0000)]
Using isset to check for index value. Avoids a PHP notice.
Platonides [Sun, 31 Oct 2010 18:19:02 +0000 (18:19 +0000)]
Remove call to deprecated $wgOut->includeJQuery();
Platonides [Sun, 31 Oct 2010 18:17:56 +0000 (18:17 +0000)]
A couple of Xml::hidden calls left by r75723
Siebrand Mazeland [Sun, 31 Oct 2010 17:55:47 +0000 (17:55 +0000)]
Localisation updates from translatewiki.net
Niklas Laxström [Sun, 31 Oct 2010 17:23:33 +0000 (17:23 +0000)]
Correct eo date format according to bertilow.com/pmeg/gramatiko/nombroj/datoj.html#i-cs4
Reported by AVRS via IRC
Sam Reed [Sun, 31 Oct 2010 16:33:48 +0000 (16:33 +0000)]
More deprecated method calls
Sam Reed [Sun, 31 Oct 2010 16:20:48 +0000 (16:20 +0000)]
Update deprecated method calls
Remove some unused stuff
Platonides [Sun, 31 Oct 2010 15:35:01 +0000 (15:35 +0000)]
Remove unused globals.
Philip Tzou [Sun, 31 Oct 2010 15:12:34 +0000 (15:12 +0000)]
Followup r75719. Typo.
Philip Tzou [Sun, 31 Oct 2010 15:09:27 +0000 (15:09 +0000)]
Followup r75617. Fix spelling mistake.
Alexandre Emsenhuber [Sun, 31 Oct 2010 14:28:44 +0000 (14:28 +0000)]
* Fixed some doxygen warnings
* Made documentation cosistent with the rest of the software
Alexandre Emsenhuber [Sun, 31 Oct 2010 11:47:03 +0000 (11:47 +0000)]
* (bug 25642) A exception is now thrown instead of a fatal error when using $wgSMTP without PEAR mail package
Patch by Dmitriy (http://bug-attachment.wikimedia.org/attachment.cgi?id=7754) with correction
Alexandre Emsenhuber [Sun, 31 Oct 2010 10:12:06 +0000 (10:12 +0000)]
Added missing calls to setHeaders() and outputHeader()
Alexandre Emsenhuber [Sun, 31 Oct 2010 09:36:48 +0000 (09:36 +0000)]
* (bug 23731) Clarified "n links" message on Special:MostLinkedTemplates
Sam Reed [Sat, 30 Oct 2010 21:31:22 +0000 (21:31 +0000)]
Mark a few more methods static
Seems I forgot to commit this
Rotem Liss [Sat, 30 Oct 2010 20:35:05 +0000 (20:35 +0000)]
Localization update for he.
Bryan Tong Minh [Sat, 30 Oct 2010 20:02:53 +0000 (20:02 +0000)]
Follow-up r75702: change physicalSize to physicalDimensions per CR; commented getMediaTransformError function
Raimond Spekking [Sat, 30 Oct 2010 19:24:03 +0000 (19:24 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-31 18:53:00 UTC)
Bryan Tong Minh [Sat, 30 Oct 2010 19:11:30 +0000 (19:11 +0000)]
Follow-up r75702: stylize
Bryan Tong Minh [Sat, 30 Oct 2010 19:04:26 +0000 (19:04 +0000)]
Split BitmapHandler::doTransform in functions: transformImageMagick(), transformCustom() and transformGd(). Pass their parameters as an options array. Put common code lines into separate functions such as getClientScalingThumbnailImage(), getMediaTransformError() and logErrorForExternalProcess(). Tested all three scalers, everything appears to be still working.
Shinjiman [Sat, 30 Oct 2010 18:05:42 +0000 (18:05 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese
Chad Horohoe [Sat, 30 Oct 2010 17:47:00 +0000 (17:47 +0000)]
Per r75386 CR, use newMainPage()
Chad Horohoe [Sat, 30 Oct 2010 17:28:26 +0000 (17:28 +0000)]
Revert r75654 per CR, doEdit() already takes care of search updates
Chad Horohoe [Sat, 30 Oct 2010 17:20:41 +0000 (17:20 +0000)]
Oracle maintainer should enable E_STRICT ;-)
Chad Horohoe [Sat, 30 Oct 2010 17:17:26 +0000 (17:17 +0000)]
E_STRICT: Function signature should match parent. This newFromParams stuff should be going away soon anyway
Bryan Tong Minh [Sat, 30 Oct 2010 13:03:41 +0000 (13:03 +0000)]
(bug 23732) Clarified "n links" message on Special:MostLinkedFiles
Antoine Musso [Sat, 30 Oct 2010 11:43:03 +0000 (11:43 +0000)]
Follow up r74684 : use default path if MW_INSTALL_PATH is not present.
Philip Tzou [Sat, 30 Oct 2010 05:42:16 +0000 (05:42 +0000)]
Forgot to commit this one. parserTests fix for
r75617 (in trunk/phase3/includes/Title.php).
Antoine Musso [Fri, 29 Oct 2010 22:42:37 +0000 (22:42 +0000)]
Follow up r75682 : fix private function naming.
Fix cruise control build 2010-10-29T22:18:27
Rotem Liss [Fri, 29 Oct 2010 22:38:26 +0000 (22:38 +0000)]
Localization update for he.
Rotem Liss [Fri, 29 Oct 2010 22:35:20 +0000 (22:35 +0000)]
Localization update for he.
Antoine Musso [Fri, 29 Oct 2010 22:03:17 +0000 (22:03 +0000)]
Follow up r75627. Implements r75670 in PHP to validate emails.
* Server side validation of email according to an HTML5 specifications provided by Simetrical :
http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#e-mail-state
* This is NOT a fix of bug 959 (which wants RFC 2822 validation)
* Basic unit tests
Antoine Musso [Fri, 29 Oct 2010 20:44:26 +0000 (20:44 +0000)]
Follow up r75627 (code review comments):
* Replace background coloring with a label insertion on the right or left of input depending on language direction.
* User side validation of email according to an HTML5 specifications provided by Simetrical :
http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#e-mail-state
Code comments should be self explaining.
Possible follows up:
- use JQuery Validation plugin
- make the validation part a mediawiki validation module
- server side validation
Bryan Tong Minh [Fri, 29 Oct 2010 20:33:27 +0000 (20:33 +0000)]
r75621 copy-paste fail
Raimond Spekking [Fri, 29 Oct 2010 19:21:12 +0000 (19:21 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-30 19:05:00 UTC)
Derk-Jan Hartman [Fri, 29 Oct 2010 18:52:59 +0000 (18:52 +0000)]
Switch the hyphen in diff output to actually minus signs.
Derk-Jan Hartman [Fri, 29 Oct 2010 18:42:55 +0000 (18:42 +0000)]
Add updated release notes for r75658
Derk-Jan Hartman [Fri, 29 Oct 2010 18:28:44 +0000 (18:28 +0000)]
Add a nbsp to each empty "diff-marker".
Fixes Bug 25697
Prevent collapsed table row if both pre and post lines in the diff are totally empty.
Chad Horohoe [Fri, 29 Oct 2010 17:26:22 +0000 (17:26 +0000)]
(bug 22308) Search should find text in default main page immediately after setup. Based on patch by Josh Lerner
Krinkle [Fri, 29 Oct 2010 17:11:22 +0000 (17:11 +0000)]
$.client has been enhanced and made easier since the initial version, may aswell be used directly (r75593)
Chad Horohoe [Fri, 29 Oct 2010 16:28:50 +0000 (16:28 +0000)]
(bug 19593) $wgServer can't be set properly with --server attribute in command line tools. Also fixes regression in generateSitemap.php from maintenance rewrite. Also possible workaround for bug 18274.
Shinjiman [Fri, 29 Oct 2010 16:22:43 +0000 (16:22 +0000)]
Localisation updates Cantonese, Chinese and Literary Chinese
Bryan Tong Minh [Fri, 29 Oct 2010 16:19:35 +0000 (16:19 +0000)]
Follow-up r75621: Check for $wgEnableAPI before adding the RSD link to the head
Krinkle [Fri, 29 Oct 2010 15:30:54 +0000 (15:30 +0000)]
white-space cleanup throughout $.client and mw.util and mw.util.test (r75593)
Krinkle [Fri, 29 Oct 2010 15:27:53 +0000 (15:27 +0000)]
adding layoutversion to $.client and isLayoutVersion to mw.util. Follow-up of r75593
Krinkle [Fri, 29 Oct 2010 14:44:18 +0000 (14:44 +0000)]
Follow-up r75577
Sam Reed [Fri, 29 Oct 2010 12:20:11 +0000 (12:20 +0000)]
Followup r75554, functionise Export code, allows for return to be used "non scarily"
Remove some extra blank comment lines
Philip Tzou [Fri, 29 Oct 2010 02:55:37 +0000 (02:55 +0000)]
Fix the LanguageConverterTest to prevent test failures after the changes made on getPreferredVariant() at r75617.
Sam Reed [Thu, 28 Oct 2010 22:56:43 +0000 (22:56 +0000)]
Minor followup to r75621, add whitespace
Add getVersion to ApiFormatXmlRsd
Antoine Musso [Thu, 28 Oct 2010 21:01:56 +0000 (21:01 +0000)]
Lame user side email validator using JQuery.
See bug 22449 : MediaWiki should do validation of e-mail addresses
Raimond Spekking [Thu, 28 Oct 2010 20:10:28 +0000 (20:10 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-28 19:50:00 UTC)
Raimond Spekking [Thu, 28 Oct 2010 19:49:44 +0000 (19:49 +0000)]
Follow-up r75582: Fix wrong message key in maintenance script
Bryan Tong Minh [Thu, 28 Oct 2010 19:20:21 +0000 (19:20 +0000)]
(bug 25648) API discovery information has been added as RSD link in page <head> and by providing an API module action=rsd. Added hook ApiRsdServiceApis for extensions to add their own service to the services list.
Patch by Brion Vibber and Bryan Tong Minh.
Philip Tzou [Thu, 28 Oct 2010 17:11:21 +0000 (17:11 +0000)]
Follow up r75617. remove extra brackets.
Philip Tzou [Thu, 28 Oct 2010 16:58:39 +0000 (16:58 +0000)]
1. Revert the complicated redirection I made in r59754;
2. Add more Accept-Language XVO cache name for IE;
3. Use hreflang to specify canonical and alternate links, it's search engine friendly
when a wiki has multiple variant languages.
Max Semenik [Thu, 28 Oct 2010 13:54:43 +0000 (13:54 +0000)]
Follow-up r75611: revert release-notes too
Max Semenik [Thu, 28 Oct 2010 13:40:33 +0000 (13:40 +0000)]
Revert r66140 per CR
Antoine Musso [Thu, 28 Oct 2010 06:35:31 +0000 (06:35 +0000)]
Follow up r75585 : messages.inc entry missing
Aaron Schulz [Thu, 28 Oct 2010 02:47:48 +0000 (02:47 +0000)]
truncateHtml() comment tweaks
Sam Reed [Thu, 28 Oct 2010 00:04:48 +0000 (00:04 +0000)]
Function return type hints
Explicit class variable definition
Sam Reed [Wed, 27 Oct 2010 23:56:01 +0000 (23:56 +0000)]
More function parameter commenting
Sam Reed [Wed, 27 Oct 2010 23:50:09 +0000 (23:50 +0000)]
Parameter documentation
Krinkle [Wed, 27 Oct 2010 23:19:26 +0000 (23:19 +0000)]
porting is_opera, is_safari_win etc. to mw.util as isBrowser('..'), isPlatform('...') etc.
Platonides [Wed, 27 Oct 2010 22:27:23 +0000 (22:27 +0000)]
Do NOT use hardcoded passwords! Not even if the user agreed to run destructive tests.
The affected passwords have been disabled in r75588
Follow up r72475,r74213.
Additionally give descriptive names to the users.
Also see the mail to wikitech.
Platonides [Wed, 27 Oct 2010 22:26:39 +0000 (22:26 +0000)]
Add feature to block common (weak) passwords.
This closes the hole of passwords hardcoded in r72475,r74213. Also see r75589.
Roan Kattouw [Wed, 27 Oct 2010 22:22:10 +0000 (22:22 +0000)]
(bug 25339) Allow specifying separate base paths for local and remote paths in ResourceLoaderFileModule::__construct(). Extensions can use this to properly point the resource loader to their resources in a way that doesn't depend on the extensions/ directory being a subdirectory of phase3/ on the filesystem and that respects $wgExtensionAssetsPath. Also converted all extensions using ResourceLoader to use this approach, except MWEmbed which uses way more indirection building its module registrations than I can deal with after midnight.
What actually happens here
* Add $localBasePath, $remoteBasePath params to the FileModule constructor, defaulting to $IP and $wgScriptPath respectively
* Add getLocalPath() and getRemotePath(), which use this information to build a proper FS or URL path for a file
* Make readScriptFiles() non-static so it can use these functions
* Run every single file path we use through either getLocalPath() or getRemotePath() as appropriate
** Except file dependencies, these are already prefixed. Our inability to give them special treatment caused bugs earlier
* Kill prefixFilePathList() and resolveFilePath(), no longer needed
Platonides [Wed, 27 Oct 2010 22:10:33 +0000 (22:10 +0000)]
Use the author that really edited it, from the previously received data. This fixes the last unit test.
Also, fail with the error code if there are problems, instead of an odd message failing in the assert.
Antoine Musso [Wed, 27 Oct 2010 21:17:03 +0000 (21:17 +0000)]
Optional feature to login through HTTPS and come back to HTTP.
Based on an idea by George Herbert <george dot herbert at gmail dot com>
http://lists.wikimedia.org/pipermail/wikitech-l/2010-October/050065.html
Antoine Musso [Wed, 27 Oct 2010 21:11:36 +0000 (21:11 +0000)]
Lame documentation, code style
Bryan Tong Minh [Wed, 27 Oct 2010 21:02:58 +0000 (21:02 +0000)]
(bug 23194) Special:ListFiles now has thumbnails
Added new message listfiles_thumb
Platonides [Wed, 27 Oct 2010 20:48:07 +0000 (20:48 +0000)]
No wonder that the check -added in r75265- Blah == User:Text never succeeded.
Changing to something useful.
Krinkle [Wed, 27 Oct 2010 20:42:33 +0000 (20:42 +0000)]
whitespace cleanup in mediawiki.util.js
Krinkle [Wed, 27 Oct 2010 20:27:04 +0000 (20:27 +0000)]
changing mw.uti functionnames to follow convention + loading $.client as dependency of mw.util
Roan Kattouw [Wed, 27 Oct 2010 20:08:04 +0000 (20:08 +0000)]
Re-add maintenance script from r75555, not totally broken this time
Raimond Spekking [Wed, 27 Oct 2010 20:01:36 +0000 (20:01 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-10-27 19:25:00 UTC)
Roan Kattouw [Wed, 27 Oct 2010 19:59:10 +0000 (19:59 +0000)]
Fix regression introduced by doing data URL embedding early causing file dependencies for CSS not to be registered: the data URL embedding had modified the URL to the point where getLocalFileReferences() doesn't recognize it anymore. This is a quick&dirty fix registering dependencies in $this->fileDeps just before each remap() call
Antoine Musso [Wed, 27 Oct 2010 19:19:11 +0000 (19:19 +0000)]
Compare latency between http and https by querying localhost.
Roan Kattouw [Wed, 27 Oct 2010 18:49:18 +0000 (18:49 +0000)]
Revert unintended changes in r75555
Max Semenik [Wed, 27 Oct 2010 15:52:02 +0000 (15:52 +0000)]
Introduced $wgAdditionalMailParams to allow adjusting extra email options. Based on patch by Alejandro Mery.
Platonides [Wed, 27 Oct 2010 15:51:37 +0000 (15:51 +0000)]
r74753, r74755, r75254 added new settings, but didn't update SeleniumConfigurationTest.php breaking the tests
Roan Kattouw [Wed, 27 Oct 2010 15:51:31 +0000 (15:51 +0000)]
Whitespace fixes for r75486
Sam Reed [Wed, 27 Oct 2010 15:42:32 +0000 (15:42 +0000)]
* (bug 25463) Export header should not be shown if no pages were requested, to reduce confusion
Patch by Umherirrender, with a tweak to inverse logic to reduce nesting
Krinkle [Wed, 27 Oct 2010 15:37:47 +0000 (15:37 +0000)]
Escaping parameter for regex (Follow-up r75275)
Krinkle [Wed, 27 Oct 2010 15:35:55 +0000 (15:35 +0000)]
Fixed unfinished line from r75275, commented addPortletLink() more, moved prototypes from mediawiki.util.js to mediawiki.js, added String.prototype.escapeRE()
Roan Kattouw [Wed, 27 Oct 2010 15:30:20 +0000 (15:30 +0000)]
Followup r75548: forgot to put global $wgHandheldStyle; back in
Roan Kattouw [Wed, 27 Oct 2010 15:21:18 +0000 (15:21 +0000)]
Followup r74966, r75006: load $wgHandheldStyle again in SkinMonoBook. Can't do this the nice way (with ResourceLoader) because $wgHandheldStyle might be a URL :(
Krinkle [Wed, 27 Oct 2010 15:02:18 +0000 (15:02 +0000)]
moved jQuery.fn.enableCheckboxShiftClick to it's own file and renamed to jQuery.fn.checkboxShiftClick
Jure Kajzer [Wed, 27 Oct 2010 14:52:18 +0000 (14:52 +0000)]
* installers skips recreation of existing user
* updater for 16->17 schema changes
* i dedicate this revision to my greatest supporter ... Reedy :)
Platonides [Wed, 27 Oct 2010 14:46:58 +0000 (14:46 +0000)]
r75540 CR
Platonides [Wed, 27 Oct 2010 14:38:31 +0000 (14:38 +0000)]
Make update.php obey --quiet
Platonides [Wed, 27 Oct 2010 13:56:58 +0000 (13:56 +0000)]
Follow up r75474