Alexandre Emsenhuber [Tue, 18 Oct 2011 14:08:48 +0000 (14:08 +0000)]
* Use local context instead of global variables
* Pass the context between Special:Userlogin and Special:ChangePassword when calling the other one
Alexandre Emsenhuber [Tue, 18 Oct 2011 13:53:27 +0000 (13:53 +0000)]
Fix for r97314: add HttpError to the AutoLoader
Antoine Musso [Tue, 18 Oct 2011 09:01:05 +0000 (09:01 +0000)]
Qunit coverage for mw.Title.js
Follow up comment on r93702 asking to cover:
new mw.Title( 'user:NeilK' );
Also added a case conversion test
Krinkle [Mon, 17 Oct 2011 22:57:50 +0000 (22:57 +0000)]
Fix svn props, r99919
Platonides [Mon, 17 Oct 2011 21:11:28 +0000 (21:11 +0000)]
Remove unused global $wgLoadScript
Platonides [Mon, 17 Oct 2011 21:00:42 +0000 (21:00 +0000)]
Remove global added in 2005 by vibber (r11563). There's a new one added in r99349.
Raimond Spekking [Mon, 17 Oct 2011 19:32:40 +0000 (19:32 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Alexandre Emsenhuber [Mon, 17 Oct 2011 19:16:33 +0000 (19:16 +0000)]
* (bug 31692) "summary" parameter now also work when undoing revisions
Rotem Liss [Mon, 17 Oct 2011 16:31:26 +0000 (16:31 +0000)]
Localization update for he.
Happy-melon [Mon, 17 Oct 2011 16:16:26 +0000 (16:16 +0000)]
(bug 31405) block reason preload. Patch by Brad Jorsch.
Antoine Musso [Mon, 17 Oct 2011 15:57:47 +0000 (15:57 +0000)]
add useful comments about portlet ids
comments comes from r95571 commit log by Krinkle
Happy-melon [Mon, 17 Oct 2011 15:56:25 +0000 (15:56 +0000)]
Type hinting
Alexandre Emsenhuber [Mon, 17 Oct 2011 14:33:04 +0000 (14:33 +0000)]
Added a User parameter to SpecialPageFactory::getUsablePages() so that it does not need to depend on $wgUser; updated the only call to it
Alexandre Emsenhuber [Mon, 17 Oct 2011 14:17:52 +0000 (14:17 +0000)]
Use local context to get messages
Raimond Spekking [Mon, 17 Oct 2011 10:29:16 +0000 (10:29 +0000)]
Fix native name of Ligurian: translatewiki.net/wiki/Thread:Support/Wrong_name_for_language!!!!
Compare with http://www.ethnologue.com/show_language.asp?code=lij and https://lij.wikipedia.org/wiki/Lengoa_ligure
Antoine Musso [Mon, 17 Oct 2011 09:46:05 +0000 (09:46 +0000)]
adding note to code snippet
This small comment will avoid us using pathinfo() again and reimplement
bug 30219.
follow up r94171
Raimond Spekking [Mon, 17 Oct 2011 09:11:07 +0000 (09:11 +0000)]
Old link is not always known, it depends on $createRedirect
Russ Nelson [Sun, 16 Oct 2011 23:03:17 +0000 (23:03 +0000)]
StoreBatchTest counts even MORE correct than before.
Daniel Friesen [Sun, 16 Oct 2011 22:56:14 +0000 (22:56 +0000)]
Followup r99404, remove <sup> tags.
Krinkle [Sun, 16 Oct 2011 22:33:04 +0000 (22:33 +0000)]
Fix broken test by r99321
Krinkle [Sun, 16 Oct 2011 22:30:28 +0000 (22:30 +0000)]
Adding missing test for isEmpty
Chad Horohoe [Sun, 16 Oct 2011 22:25:41 +0000 (22:25 +0000)]
Forgot lowercase again, arrggghhhh
Chad Horohoe [Sun, 16 Oct 2011 22:25:18 +0000 (22:25 +0000)]
Do a test for 1K
Chad Horohoe [Sun, 16 Oct 2011 22:24:30 +0000 (22:24 +0000)]
Add another test case for shorthand to integer (lowercase too)
Chad Horohoe [Sun, 16 Oct 2011 22:24:13 +0000 (22:24 +0000)]
Add another test case for shorthand to integer
Russ Nelson [Sun, 16 Oct 2011 22:18:18 +0000 (22:18 +0000)]
StoreBatchTest counts now correct, and using assertEquals
Sam Reed [Sun, 16 Oct 2011 22:14:23 +0000 (22:14 +0000)]
After merging r98374 into REL1_18 in r99980, move RELEASE-NOTES to 1.18
Sam Reed [Sun, 16 Oct 2011 22:01:10 +0000 (22:01 +0000)]
Few bits of documentation
Platonides [Sun, 16 Oct 2011 19:53:30 +0000 (19:53 +0000)]
Parse error (missing ';') in r99938.
Sam Reed [Sun, 16 Oct 2011 19:52:46 +0000 (19:52 +0000)]
Remove duplicate setting of From
Raimond Spekking [Sun, 16 Oct 2011 19:48:07 +0000 (19:48 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Chad Horohoe [Sun, 16 Oct 2011 18:35:32 +0000 (18:35 +0000)]
Initial tests for wfShorthandToInteger(). Definitely needs more
Max Semenik [Sun, 16 Oct 2011 15:08:38 +0000 (15:08 +0000)]
Fixed bug in r99914, also reverted accidental tabs->spaces conversion
Alexandre Emsenhuber [Sun, 16 Oct 2011 13:16:45 +0000 (13:16 +0000)]
Per Nikerabbit, fix for r99863: removed copy/paste error in method documentation
Alexandre Emsenhuber [Sun, 16 Oct 2011 12:39:05 +0000 (12:39 +0000)]
* Send "undisclosed-recipients" in "To" header when sending the mail to more than one user instead of checking $wgEnotifImpersonal. This was causing Special:EmailUser to send mails with that header when $wgEnotifImpersonal is true
* Fix for r91662: Return-Path must an e-mail address and only a e-mail address, it cannot be "Name <address@...>"
* Code simplification
Alexandre Emsenhuber [Sun, 16 Oct 2011 09:53:41 +0000 (09:53 +0000)]
* Do magic word parsing after parameter replacement in MediaWiki:Enotif_body and MediaWiki:Enotif_subject
* Fix link to Special:EmailUser in case $wgEnotifUseRealName was true and the user defined a real name, link was pointing to Special:EmailUser/Real_Name instead of Special:EmailUser/User_Name
* Simplified the code of EmailNotification::composeCommonMailtext()
Sam Reed [Sun, 16 Oct 2011 03:32:39 +0000 (03:32 +0000)]
svn:eol-style native
Sam Reed [Sun, 16 Oct 2011 03:27:12 +0000 (03:27 +0000)]
Fixup some assignments in conditionals
Add/normalise some more return statements
Krinkle [Sat, 15 Oct 2011 23:51:24 +0000 (23:51 +0000)]
Add 'padding: 0;' for '.catlinks ul' in commonPrint as well
* Follows-up r97381 adding it to shared.css
* Reason: Several browsers have defaults like padding-left: 40px; for unordered lists. That looks rather ugly if the list is used with inline list items (as is the case for cat links)
Krinkle [Sat, 15 Oct 2011 23:48:14 +0000 (23:48 +0000)]
Drop IE5.x support
-- except for fixalpha/IE5.5 (iirc this is for IE6 as well)
Krinkle [Sat, 15 Oct 2011 23:33:47 +0000 (23:33 +0000)]
CSS clean up
* Apply code conventions (mostly whitespace and missing semi-colons)
* Minor other nitpicks
-- '! important' -> '!important'
-- Ucfirst -> lc; for color names and keywords
-- Remove uses of system color keywords (they are deprecated) [1] Most had fixed fallbacks already. Using those now.
-- Remove version query string (foo.png?2), last modified in r66151. Now obsolete with ResourceLoader
-- 0px to 0 where possible
-- Remove commented out css rules and declarations without any comment (debug stuff like /*div{ border:1px solid Red !important;}*/)
-- Remove empty blocks ( .foo { } )
[1] https://developer.mozilla.org/en/CSS/color_value#System_Colors
Sam Reed [Sat, 15 Oct 2011 23:24:32 +0000 (23:24 +0000)]
Bug 31249 - Special:BrokenRedirects broken since 1.18
Roan Kattouw [Sat, 15 Oct 2011 23:16:26 +0000 (23:16 +0000)]
Followup r99923: add missing dependency
Roan Kattouw [Sat, 15 Oct 2011 23:13:26 +0000 (23:13 +0000)]
Move jquery.validate plugin from branches/salvatoreingala to core
Roan Kattouw [Sat, 15 Oct 2011 23:08:01 +0000 (23:08 +0000)]
Followup r99923: spaces->tabs, add @embed
Sam Reed [Sat, 15 Oct 2011 22:58:42 +0000 (22:58 +0000)]
Fix whitespace, braces
Fix return items
Mark A. Hershberger [Sat, 15 Oct 2011 22:51:59 +0000 (22:51 +0000)]
Re: r86786 … add a RELEASE-NOTES entry
Roan Kattouw [Sat, 15 Oct 2011 22:41:45 +0000 (22:41 +0000)]
Add jquery.farbtastic module to core, copied from branches/salvatoreingala
Sam Reed [Sat, 15 Oct 2011 22:30:23 +0000 (22:30 +0000)]
And 100
Sam Reed [Sat, 15 Oct 2011 22:23:50 +0000 (22:23 +0000)]
Refactor out duplicate code
Add 10 subscribers. Can we have 10 of the same?
Sam Reed [Sat, 15 Oct 2011 22:15:36 +0000 (22:15 +0000)]
Rudimentary hook benchmarks
Max Semenik [Sat, 15 Oct 2011 22:08:42 +0000 (22:08 +0000)]
Fix typo in r99914
Bryan Tong Minh [Sat, 15 Oct 2011 21:40:30 +0000 (21:40 +0000)]
Revert unrelated changes from r99916
Bryan Tong Minh [Sat, 15 Oct 2011 21:38:53 +0000 (21:38 +0000)]
Follow-up r99911: fix tests
Add NullRepo to autoloader
Max Semenik [Sat, 15 Oct 2011 21:06:34 +0000 (21:06 +0000)]
(bug 31674) Can't edit watchlist if it contains special pages
Brion Vibber [Sat, 15 Oct 2011 20:56:56 +0000 (20:56 +0000)]
Followup r79867: re-animate the spinner during Special:Upload's thumbnail init (was lost by drawing the spinner to a canvas).
Switched from an <img> on the pre-canvas code to mw-small-spinner class so the CSS can worry about the path. :)
Bryan Tong Minh [Sat, 15 Oct 2011 20:36:02 +0000 (20:36 +0000)]
Per bug 28135, disable $wgMaxImageArea check when transforming using a hook, and enable the check for non IM scalers.
Bryan Tong Minh [Sat, 15 Oct 2011 20:30:37 +0000 (20:30 +0000)]
Per r97671, add $wgEnableAutoRotation setting that can be used to explicitly disable auto-rotation.
Brion Vibber [Sat, 15 Oct 2011 20:21:52 +0000 (20:21 +0000)]
Followup r80375: let PreprocessorTest work on Preprocessor_Hash etc as well as Preprocessor_Dom
Using same technique as ApiExpandTemplates to serialize the object tree back to XML, rather than asking for the DOM implementation's internal XML return function.
Have to also perform normalization on the test cases, as they aren't normalized to what libxml2 serializes. :P
Note that there are 4 test failures currently with Preprocessor_Hash, as it makes a separate <equals> element around = which doesn't appear to be in Preprocessor_Dom's output.
Raimond Spekking [Sat, 15 Oct 2011 19:40:05 +0000 (19:40 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Alexandre Emsenhuber [Sat, 15 Oct 2011 19:22:05 +0000 (19:22 +0000)]
Fix E_WARNING from r99863
Chad Horohoe [Sat, 15 Oct 2011 19:06:31 +0000 (19:06 +0000)]
Self revert r99899....I HATE YOU PHPUNIT YOU @#Q**#(#@(#@@#(!!!
Chad Horohoe [Sat, 15 Oct 2011 19:02:07 +0000 (19:02 +0000)]
Temporarily reverting r99863 to see if I can pin down test failures
Markus Glaser [Sat, 15 Oct 2011 18:14:25 +0000 (18:14 +0000)]
* restored category page (some references to Title object were missing)
Happy-melon [Sat, 15 Oct 2011 17:59:42 +0000 (17:59 +0000)]
(bug 31361) broken messages on Special:GlobalBlock.
Sam Reed [Sat, 15 Oct 2011 17:46:37 +0000 (17:46 +0000)]
Seems some base class refactoring has move mTitle
/www/w/includes/CategoryPage.php on line 59
-rakkaus/#mediawiki-i18n- [15-Oct-2011 17:23:57] PHP Fatal error: Call to a member function getNamespace() on a non-object in /www/w/includes/CategoryPage.php on line 59
Also changed return, as parent::view() doesn't return anything
Sam Reed [Sat, 15 Oct 2011 17:37:05 +0000 (17:37 +0000)]
Move CategoryViewer to it's own file
Aaron Schulz [Sat, 15 Oct 2011 17:07:53 +0000 (17:07 +0000)]
Refactored cleanupDeletedBatch() by splitting out the file usage check functions
Alexandre Emsenhuber [Sat, 15 Oct 2011 09:43:30 +0000 (09:43 +0000)]
Use local context instead of global variables
Alexandre Emsenhuber [Sat, 15 Oct 2011 09:32:03 +0000 (09:32 +0000)]
* Added Language::userDate(), Language::userTime() and Language::userTimeAndDate() as new versions of respectively Language::date(), Language::time() and Language::timeanddate(), which take a User object in the second parameter to get time correction and format instead of having to do this when calling the methods and not wanting to user $wgUser's parameters.
* Moved Language::userAdjust() near other related function
* Updated ENotif stuff to use that functions so that the date format is not taken from the sending user but the receiver
* Removed $PAGEEDITDATEANDTIME parameter, unsed and not present in impersonal notification
* Also fixed the debug line in UserMailer::send()
Alexandre Emsenhuber [Sat, 15 Oct 2011 09:11:29 +0000 (09:11 +0000)]
* Timezones are now recognised in user preferences when offset is different due to DST
Brion Vibber [Sat, 15 Oct 2011 02:23:22 +0000 (02:23 +0000)]
Followup to r99653 (bug 31643) -- reenable client-side thumbnailing of SVGs on Special:Upload, with workaround for Firefox 7 regression.
Upstream firefox bug for hang loading some SVGs via data URI: https://bugzilla.mozilla.org/show_bug.cgi?id=694165
A fix may land as soon as Firefox 8.
This rev works around the bug by using window.URL.createObjectURL() instead of loading a data URI via FileReader; the object URL loads more cleanly and doesn't have the same hanging bug.
Needs to be replicated to UploadWizard (or moved to a shared lib!), some other fixes coming so no rush.
Markus Glaser [Sat, 15 Oct 2011 01:33:19 +0000 (01:33 +0000)]
follow-up to r98020. Throw MWException on attempt to serialize database.
Sam Reed [Fri, 14 Oct 2011 21:19:25 +0000 (21:19 +0000)]
Update documentation, returns
Sam Reed [Fri, 14 Oct 2011 21:18:38 +0000 (21:18 +0000)]
Update some deprecated code
Documentation
Fix "/*" comments to "/**"
Flesh out some missing returns, change some return types
Raimond Spekking [Fri, 14 Oct 2011 20:06:14 +0000 (20:06 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Jeremy Postlethwaite [Fri, 14 Oct 2011 18:04:12 +0000 (18:04 +0000)]
Fixed spelling mistake in comments.
Alexandre Emsenhuber [Fri, 14 Oct 2011 16:01:48 +0000 (16:01 +0000)]
Per Siebrand, fix for r99678: use word-separator and parentheses messages
Alexandre Emsenhuber [Fri, 14 Oct 2011 14:57:06 +0000 (14:57 +0000)]
* Moved wfViewPrevNext() to Language::viewPrevNext() so that it can be used in the context and not always relying on $wgLang
* modified the parameters order in Language::viewPrevNext() in comparaison of wfViewPrevNext() and changed it to require a Title object and extra parameter to be passed as array
* Use more modern methods to genrate i18n and HTML
* Removed wfNumLink(), not used anymore, only referenced in a comment in MetavidWiki extension
* Inlinised wfShowingResults(); I don't see any reason why only this message should get its own function
* Replaced all calls to wfViewPrevNext() and wfShowingResults() in core
* Simply use OutputPage::addWikiMsg() to display 'specialpage-empty' message
* Moved wfSpecialList() near wfViewPrevNext() in GlobalFunction.php
Alexandre Emsenhuber [Fri, 14 Oct 2011 14:20:02 +0000 (14:20 +0000)]
In WantedQueryPage:
* Call Linker methods statically
* Use $this->msg() to simplify parameter formatting and escaping
* Link to Special:Whatlinkshere/Page instead of Special:Whatlinkshere?target=Page for consistency
Sam Reed [Fri, 14 Oct 2011 08:06:54 +0000 (08:06 +0000)]
Documentation
Trim trailing whitespace
Make returns return values where appropriate (ie other paths in the same method do)
Aaron Schulz [Thu, 13 Oct 2011 22:23:13 +0000 (22:23 +0000)]
(bug 31679) Fixed use of 'allowusertalk'
Raimond Spekking [Thu, 13 Oct 2011 19:52:53 +0000 (19:52 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Sam Reed [Thu, 13 Oct 2011 18:44:26 +0000 (18:44 +0000)]
Documentation
Swap a lot of "@returns" to "@return"
Amir E. Aharoni [Thu, 13 Oct 2011 16:48:30 +0000 (16:48 +0000)]
Fixes bug 31496. Patch by Tomer A. I tested it by trying to upload a file with a very long name.
Sam Reed [Thu, 13 Oct 2011 16:40:22 +0000 (16:40 +0000)]
Followup r85756
Update code to use boolean, as it's not going to be null
Amir E. Aharoni [Thu, 13 Oct 2011 13:43:02 +0000 (13:43 +0000)]
Made the arrow point in the correct direction according to the user's language, which may be different from the wiki language.
Alexandre Emsenhuber [Thu, 13 Oct 2011 12:34:39 +0000 (12:34 +0000)]
Use same case for the setListoutput() call than the definition
Alexandre Emsenhuber [Thu, 13 Oct 2011 11:46:21 +0000 (11:46 +0000)]
Moved wfSpecialList() to Language::specialList() so that it can be used in the context of special pages instead of relying unconditionally of $wgLang. Updated all calls in core and added a @deprecated comment to wfSpecialList() but not a wfDeprecated() call since it's still used in SiteMatrix and StalePages extensions.
Brion Vibber [Wed, 12 Oct 2011 22:46:31 +0000 (22:46 +0000)]
Temporarily disable pre-upload SVG thumbnailing in Special:Upload and Special:UploadWizard; workaround for worst part so far of bug 31643: some SVG files hanging Firefox during pre-upload thumbnail generation.
It's possible that this isn't SVG-specific though; large JPEGs are so far known to take a couple seconds and still pause the browser UI, but some SVGs hang Firefox 7/8/9 indefinitely when loaded as a data URI.
Upstream Firefox bug: https://bugzilla.mozilla.org/show_bug.cgi?id=694165
Thomas Gries [Wed, 12 Oct 2011 21:39:32 +0000 (21:39 +0000)]
convenience function call addExtensionField was lacking the true parameter for the sqlPath. I added that
Raimond Spekking [Wed, 12 Oct 2011 20:32:07 +0000 (20:32 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Alexandre Emsenhuber [Wed, 12 Oct 2011 15:42:42 +0000 (15:42 +0000)]
Removed unused method SpecialMergeHistory::getPageLink() that would throw an error because SpecialMergeHistory::userCan() does not exist
Alexandre Emsenhuber [Wed, 12 Oct 2011 15:09:04 +0000 (15:09 +0000)]
* Added User paremeter to Revision::userCan(), Revision::userCanBitfield(), LogEventsList::userCan(), LogEventsList::userCanBitfield(), File::userCan() and its subclasses so that they can check against any user instead of always $wgUser.
* Updated callers that have a context or may use another user than $wgUser
* Revision::getUser(), Revision::getUserText(), Revision::getComment() and Revision::getText() also have a User as parameter, but it will be used only when Revision::FOR_THIS_USER is passed in the first parameter
Brian Wolff [Wed, 12 Oct 2011 14:13:06 +0000 (14:13 +0000)]
(bug 31637) Do not extract tiff:Orientation from XMP data, since then it will be used to rotate images, which is kind of unexpected.
Most people only really expect the Exif data to be used for rotating images (if that), so its unexpected when the xmp property causes an image to be rotated. So disable extracting that property from XMP.
Niklas Laxström [Wed, 12 Oct 2011 13:05:25 +0000 (13:05 +0000)]
namespaceGenderAliases for gl
Ref: http://translatewiki.net/wiki/Thread:Support/Gender_in_namespace_names
Ping bug 31622
Amir E. Aharoni [Wed, 12 Oct 2011 09:17:44 +0000 (09:17 +0000)]
Gender updates.
Alexandre Emsenhuber [Wed, 12 Oct 2011 09:12:22 +0000 (09:12 +0000)]
* Use local context instead of global variables
* Fixed case of Language::timeanddate() call
Alexandre Emsenhuber [Wed, 12 Oct 2011 09:09:00 +0000 (09:09 +0000)]
Check for read only database after checking if the user is logged in, so that anonymous users accessing this page while the wiki is read only won't think this is a temporary error
Mark A. Hershberger [Tue, 11 Oct 2011 21:54:10 +0000 (21:54 +0000)]
Remove hardcoded commit statements for pg installer.