Daniel Friesen [Fri, 24 Feb 2012 11:31:36 +0000 (11:31 +0000)]
Fix bug 34684 in my PathRouter code:
- Update the tests to test extra characters and patterns like like \\ and $1
- Also update the tests to make sure that matches that don't have enough data to work fail
- Replace the str_replace and preg_match based code with code based on preg_replace_callback.
Tim Starling [Fri, 24 Feb 2012 04:29:50 +0000 (04:29 +0000)]
ContribsPager can't accept multiple namespaces, passing an array causes a warning in DatabaseMysql::strencode(). Not sure if/how this worked in 1.18 but it's broken in 1.19wmf1. Tested.
Sam Reed [Fri, 24 Feb 2012 02:06:39 +0000 (02:06 +0000)]
Examples can just be a string
So if it's not false, it can be string|array, if it's a string, just put it in an array
Krinkle [Fri, 24 Feb 2012 01:00:54 +0000 (01:00 +0000)]
[JSTesting] mock/restore mw.messages as well, like mw.config
Krinkle [Fri, 24 Feb 2012 00:44:33 +0000 (00:44 +0000)]
[JSTesting] Refactor mw.loader test to be more extendable
Aaron Schulz [Thu, 23 Feb 2012 23:00:38 +0000 (23:00 +0000)]
Improved profiling of a few functions a bit
Jeroen De Dauw [Thu, 23 Feb 2012 22:58:11 +0000 (22:58 +0000)]
fix doc, this is not an array
Jeroen De Dauw [Thu, 23 Feb 2012 22:26:38 +0000 (22:26 +0000)]
docs++
Alexandre Emsenhuber [Thu, 23 Feb 2012 20:01:17 +0000 (20:01 +0000)]
Pass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and DatabaseBase::rollback()
Alexandre Emsenhuber [Thu, 23 Feb 2012 19:57:42 +0000 (19:57 +0000)]
Use local context to get messages
Krinkle [Thu, 23 Feb 2012 02:45:45 +0000 (02:45 +0000)]
Bug 34604 - [mw.config] wgActionPaths should be an object instead of a numeral array JavaScript
Krinkle [Thu, 23 Feb 2012 02:43:57 +0000 (02:43 +0000)]
release-notes-1.19
* Update some bug summaries to clearer versions (to lessen ambiguity as to whether it describes the removed behavior or the added one).
* Removed "Some deprecated presentational html attributes will now be automatically
converted to css." duplicate entry of "Most presentational html attributes like valign are now converted to inline css style rules."
* Removed bug 24037, which was reverted.
Krinkle [Thu, 23 Feb 2012 01:25:14 +0000 (01:25 +0000)]
Follow-up r112172: fix inline-block support for IE6/IE7
Sam Reed [Thu, 23 Feb 2012 01:23:53 +0000 (01:23 +0000)]
Swap Fran Rogers to Fran McCrory per request
Krinkle [Thu, 23 Feb 2012 01:00:06 +0000 (01:00 +0000)]
Follow-up r112172: embed
Brion Vibber [Thu, 23 Feb 2012 00:53:29 +0000 (00:53 +0000)]
* (bug 33045) Use locally-sourced spinner image for mediawiki.feedback module instead of Commons image
Switched from an <img> with a hardcoded Commons link to a <span>, a stylesheet, and a locally-hosted copy of the image.
Krinkle [Thu, 23 Feb 2012 00:39:15 +0000 (00:39 +0000)]
[mw.util] bug fix and minor clean up
* Fixes bug 34603 (Patch by Rainer <Rainer@Rillke.eu>) and other instances of the same bug
-- Use 'util' instead of 'this' to allow re-usage of the method in a different context
* Use ternary operator instead of the default operator in mw.util.wikiGetlink to check it for type instead of thruthy-ness (so that falsy-values such as '' work, and thruthy non-string values such as objects fail).
Brion Vibber [Thu, 23 Feb 2012 00:37:21 +0000 (00:37 +0000)]
bug 34599: special:uploadwizard loading insecure content from commons
This is in mediawiki.feedback module which is hosted in core.
A quick fix to load this spinner image protocol-relative. Should be replaced with CSS and a locally-hosted image.
Roan Kattouw [Wed, 22 Feb 2012 23:34:08 +0000 (23:34 +0000)]
Fix spacing in r111809
Roan Kattouw [Wed, 22 Feb 2012 21:43:59 +0000 (21:43 +0000)]
(bug 34600) Older skins using useHeadElement=false were broken in 1.18 . Modified patch by Vitaliy Flippov
Raimond Spekking [Wed, 22 Feb 2012 20:00:19 +0000 (20:00 +0000)]
r112128: Add new message keys to maintenance files otherwise the next run of the translatewiki.net export script would kick them.
But ignore them for translation per Nikerabbit: "I don't want these messages to be translated." https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112061#c31329
Niklas Laxström [Wed, 22 Feb 2012 19:01:02 +0000 (19:01 +0000)]
Followup, restore the irctext variable just in vase, ping r112132
Niklas Laxström [Wed, 22 Feb 2012 18:56:14 +0000 (18:56 +0000)]
Uglier than ugly hack to fix block log any many others by not having the username prepended on the messages
Rob Lanphier [Wed, 22 Feb 2012 18:29:18 +0000 (18:29 +0000)]
r112045/bug 34508: Make upload/upload and overwrite match old IRC format
Alexandre Emsenhuber [Wed, 22 Feb 2012 15:53:21 +0000 (15:53 +0000)]
Use local context to get messages
Raimond Spekking [Wed, 22 Feb 2012 11:33:56 +0000 (11:33 +0000)]
r112061: Add new message keys to maintenance files otherwise the next run of the translatewiki.net export script would kick them.
But ignore them for translation per Nikerabbit: "I don't want these messages to be translated." https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112061#c31329
Tim Starling [Wed, 22 Feb 2012 06:14:57 +0000 (06:14 +0000)]
This script uses about 550MB of RAM on 1.19wmf1. Increase memory limit appropriately.
Aaron Schulz [Wed, 22 Feb 2012 02:28:17 +0000 (02:28 +0000)]
* General log formatting fixes, like using the content language, for IRC feeds (works similar to LogPage::actionText). Use getPrefixedText() for the log title, not just the non-namespace part.
* Made patrol log IRC code behave as it did pre-r97495.
Tim Starling [Wed, 22 Feb 2012 02:09:05 +0000 (02:09 +0000)]
Output directory option, to allow messages to be put directly into /h/w/c
Aaron Schulz [Wed, 22 Feb 2012 00:36:31 +0000 (00:36 +0000)]
Made getIRCActionText() public again...since the old LogPage still uses it, ugh
Aaron Schulz [Wed, 22 Feb 2012 00:26:29 +0000 (00:26 +0000)]
Made use of new getIRCActionComment() function so that comments are back in IRC lines.
Sam Reed [Wed, 22 Feb 2012 00:00:44 +0000 (00:00 +0000)]
Move parameters were backwards
Ping r112061
Aaron Schulz [Tue, 21 Feb 2012 23:51:18 +0000 (23:51 +0000)]
r112062: updated LogEntry publish() function too
Aaron Schulz [Tue, 21 Feb 2012 23:42:10 +0000 (23:42 +0000)]
r112062: swap the getPlainActionText() for IRC with new getIRCActionText() function
Aaron Schulz [Tue, 21 Feb 2012 23:39:14 +0000 (23:39 +0000)]
Separate out an IRC actionText field for RecentChange. The two are currently the same but that will change soon.
Sam Reed [Tue, 21 Feb 2012 23:38:08 +0000 (23:38 +0000)]
Bug 34508 - [Regression] IRC string output for log messages no longer compatible
Update messages/MessagesEn.php
Add large backcompat switch conditional thing
Alexandre Emsenhuber [Tue, 21 Feb 2012 22:27:33 +0000 (22:27 +0000)]
Added $performer parameter to PatrolLog::record() and pass it from WikiPage::doEdit() and RecentChange::doMarkPatrolled() since the performer is not necessarily $wgUser
Trevor Parscal [Tue, 21 Feb 2012 22:08:23 +0000 (22:08 +0000)]
Adds a supportsURLLoading method which returns false to user tokens and user options modules. This prevents them from being linked to direction which fixes an issue where in debug mode logged in users were being served anon tokens and options. This should resolve bug #34469.
Alexandre Emsenhuber [Tue, 21 Feb 2012 22:04:43 +0000 (22:04 +0000)]
Per Aaron, follow-up r112036: add __METHOD__ to DatabaseBase::rollback() too
Arthur Richards [Tue, 21 Feb 2012 22:00:58 +0000 (22:00 +0000)]
Refactors the check if a particular IP is in the list of configured squid servers into its own function.
Sam Reed [Tue, 21 Feb 2012 21:54:27 +0000 (21:54 +0000)]
Effectively revert r112042
Followup r112045, remove the irc key name changes
Sam Reed [Tue, 21 Feb 2012 21:27:39 +0000 (21:27 +0000)]
consistently use $entry
Sam Reed [Tue, 21 Feb 2012 21:26:15 +0000 (21:26 +0000)]
First merge of the rest of the code from bug 34508 patch 1 and patch 3
Raimond Spekking [Tue, 21 Feb 2012 21:17:58 +0000 (21:17 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Sam Reed [Tue, 21 Feb 2012 21:15:05 +0000 (21:15 +0000)]
Improve documentation
Fix whitespace
Fix weird conditional loading of DB_MASTER from specials/SpecialEditWatchlist.php
Sam Reed [Tue, 21 Feb 2012 21:12:24 +0000 (21:12 +0000)]
Part 1 for bug 34508, commit all the messages added in patch 3
Daniel Friesen [Tue, 21 Feb 2012 20:23:42 +0000 (20:23 +0000)]
Followup r112034, use both selectors not just one, don't break cached pages or 3rd party skins.
Alexandre Emsenhuber [Tue, 21 Feb 2012 19:56:43 +0000 (19:56 +0000)]
Pass __METHOD__ to DatabaseBase::begin() and DatabaseBase::commit()
Alexandre Emsenhuber [Tue, 21 Feb 2012 19:49:22 +0000 (19:49 +0000)]
Use local context to get messages
Brion Vibber [Tue, 21 Feb 2012 19:25:16 +0000 (19:25 +0000)]
Followup r98045: fix bug 34504 wrt "Jump to" links in cached pages showing unexpectedly after 1.19 upgrade
Changed the updated styles to use the old (and still kept) id instead of the new (and thus not previously existing) class.
Should work on both old and new pages now.
John Du Hart [Tue, 21 Feb 2012 16:48:46 +0000 (16:48 +0000)]
Followup r105123, fix for MWDebug logging SQL queries on command line mode
Tim Starling [Mon, 20 Feb 2012 23:47:47 +0000 (23:47 +0000)]
Bug 34538 again. Bug reproduced and fix tested.
Tim Starling [Mon, 20 Feb 2012 23:29:47 +0000 (23:29 +0000)]
* Fixed failure of the edit toolbar to load when $wgResourceLoaderExperimentalAsyncLoading is enabled and module execution occurs before the edit box appears in the DOM. Similar to bug 34538.
* Also fixed breakage of byteLimit on edit in the same scenario.
* For 1.19 backport so no release notes.
Daniel Friesen [Mon, 20 Feb 2012 22:48:43 +0000 (22:48 +0000)]
Revert RDFa and Microdata improvements to addMeta in r111439 till after the git migration.
Daniel Friesen [Mon, 20 Feb 2012 22:35:14 +0000 (22:35 +0000)]
Revert CryptRand class in r111964 till after the git migration.
Daniel Friesen [Mon, 20 Feb 2012 22:32:18 +0000 (22:32 +0000)]
Revert Microdata improvements in r111891, r111898, r111899, r111901, r111903, and r111906 till after the git migration.
Alexandre Emsenhuber [Mon, 20 Feb 2012 21:48:01 +0000 (21:48 +0000)]
fix documentation: WikiPage::newFromID() can return null
Alexandre Emsenhuber [Mon, 20 Feb 2012 21:39:33 +0000 (21:39 +0000)]
Fix parse error from r111965
Alexandre Emsenhuber [Mon, 20 Feb 2012 21:36:54 +0000 (21:36 +0000)]
Pass __METHOD__ to DatabaseBase::begin() and DatabaseBase::commit()
Mark A. Hershberger [Mon, 20 Feb 2012 21:36:07 +0000 (21:36 +0000)]
fix bug #34495 — patrol log credit the user patrolled, not the user patrolling
Daniel Friesen [Mon, 20 Feb 2012 21:22:52 +0000 (21:22 +0000)]
Commit a new cryptographic random generator class for use in MediaWiki.
Waiting for it to be reviewed before actually making use of it inside code and adding a RELEASE-NOTES entry.
Alexandre Emsenhuber [Mon, 20 Feb 2012 21:14:12 +0000 (21:14 +0000)]
Use local context to get messages
Raimond Spekking [Mon, 20 Feb 2012 20:20:26 +0000 (20:20 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Max Semenik [Mon, 20 Feb 2012 19:19:52 +0000 (19:19 +0000)]
Don't output skinned errors in case of unhandled API exceptions
Aaron Schulz [Mon, 20 Feb 2012 18:39:15 +0000 (18:39 +0000)]
r99633: Fixed raw access to context field, which is lazy-loaded and thus the relevant code was broken (bug 34544)
Platonides [Mon, 20 Feb 2012 16:03:40 +0000 (16:03 +0000)]
xdiff_string_rabdiff() appeared in version 1.5.0 of xdiff extension.
PHP manual saying PECL xdiff >= 0.2.0 is wrong.
Follow-up to r111701
Robin Pepermans [Mon, 20 Feb 2012 14:43:38 +0000 (14:43 +0000)]
Remove duplicate translations also present in MessagesKs_arab.php ("ks" falls back to "ks-arab").
Aaron Schulz [Mon, 20 Feb 2012 11:00:56 +0000 (11:00 +0000)]
r111795: Split out upgradeLegacyArchiveRow() function and added NS/title to condition. The $idCol var was misleading as obviously ar_timestamp is not unique.
Siebrand Mazeland [Mon, 20 Feb 2012 10:08:41 +0000 (10:08 +0000)]
Remove obsolete and broken lang2po.php.
Siebrand Mazeland [Mon, 20 Feb 2012 10:03:13 +0000 (10:03 +0000)]
Remove trailing newlines.
Siebrand Mazeland [Mon, 20 Feb 2012 09:57:56 +0000 (09:57 +0000)]
Fixes for highlighter.
Siebrand Mazeland [Mon, 20 Feb 2012 09:57:23 +0000 (09:57 +0000)]
Remove trailing newlines.
Daniel Friesen [Mon, 20 Feb 2012 02:12:48 +0000 (02:12 +0000)]
Followup r111903; Introduce a new Tidy hack to prevent tidy from stripping the <link> and <meta> elements from the body which are used in Microdata.
We do this by replacing every <link> and <meta> with a <html-link> or <html-meta> element and adding html-link and html-meta to tidy's new-empty-tags config so that Tidy doesn't strip it, and then restoring the <html-*> elements back to normal.
Daniel Friesen [Mon, 20 Feb 2012 01:01:53 +0000 (01:01 +0000)]
Followup r111891; Update tidy.conf so that it doesn't strip out <data> and <time> elements. However this will not fix the way tidy strips out <link> and <meta> tags.
Daniel Friesen [Mon, 20 Feb 2012 00:42:24 +0000 (00:42 +0000)]
Followup r111891; Update the test to also make sure things like http-equiv and rel=stylesheet don't link through. And update the sanitizer code so that bad <link> and <meta> tags show in proper plaintext when tidy is enabled just like they do when not.
Daniel Friesen [Mon, 20 Feb 2012 00:03:24 +0000 (00:03 +0000)]
Followup r111898; Do the same for the attribute whitelist.
Daniel Friesen [Sun, 19 Feb 2012 23:40:48 +0000 (23:40 +0000)]
Followup r111891; Base the $staticInitialised variable off of the global setup so that the parser test suite is not royally screwed up by the fact that it sets globals for parsing AFTER already executing parsing code based off of different globals.
Aaron Schulz [Sun, 19 Feb 2012 23:40:02 +0000 (23:40 +0000)]
* Marked some FileBackendMultiWrite functions as protected as they should be
* Broke up a few variable declarations to make NetBeans happy
* Clarified documentation a bit
Alexandre Emsenhuber [Sun, 19 Feb 2012 22:29:51 +0000 (22:29 +0000)]
Call directly numRows() on the result object instead of DatabaseBase::numRows()
Daniel Friesen [Sun, 19 Feb 2012 21:43:37 +0000 (21:43 +0000)]
Handle one part of bug 32545 while improving MediaWiki's support for Microdata in content by adding support for the <data>, <time>, <meta>, and <link> elements. The latter two are only permitted when Microdata is enabled, and for security are only allowed to be actual elements when they have a strict set of attributes set.
Raimond Spekking [Sun, 19 Feb 2012 20:47:51 +0000 (20:47 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Derk-Jan Hartman [Sun, 19 Feb 2012 19:56:56 +0000 (19:56 +0000)]
Add support for sorting fractions in jquery.tablesorter
Fixes bug 15404
Alexandre Emsenhuber [Sun, 19 Feb 2012 19:47:14 +0000 (19:47 +0000)]
Use local context to get messages
Aaron Schulz [Sun, 19 Feb 2012 19:47:09 +0000 (19:47 +0000)]
r111795: update line to remove bogus $db argument
Derk-Jan Hartman [Sun, 19 Feb 2012 13:14:47 +0000 (13:14 +0000)]
Followup to r111861. Remove messages for highlightbroken because they are no longer in use.
Derk-Jan Hartman [Sun, 19 Feb 2012 13:06:18 +0000 (13:06 +0000)]
Bug 27619: Remove the option to show broken links as: link?
Being bold here, but otherwise it will still be there in 2016
Siebrand Mazeland [Sun, 19 Feb 2012 09:18:45 +0000 (09:18 +0000)]
Follow-up r111855: add watchlist-summary to messages.inc.
Raimond Spekking [Sun, 19 Feb 2012 09:09:51 +0000 (09:09 +0000)]
Add message keys to the message files to define that messages and show it on Special:AllMessages.
Per request of Der Umherirrende https://translatewiki.net/wiki/Thread:Support/Missing_message_keys_in_messages_files
Raimond Spekking [Sat, 18 Feb 2012 20:41:29 +0000 (20:41 +0000)]
Localisation updates for core and extension messages from translatewiki.net
Antoine Musso [Sat, 18 Feb 2012 15:34:12 +0000 (15:34 +0000)]
(bug 34421) duplicate Subject / wrong To: headers in mail
This fixup our mail sending system which duplicated the Subject and To: header.
In some conditions it used only the email address for the From: field skipping
the username ($dest in old code only contains the email address).
Mails sent to a single recipients will look alike with mail() or PEAR Mail.
For multiple recipients:
- php mail() will show the recipient email and 'undisclosed-recipients:'
- PEAR Mail will only show 'undisclosed-recipients:'
Reverts r111820
Follow r111819
Fixup r93397
Derk-Jan Hartman [Sat, 18 Feb 2012 14:35:14 +0000 (14:35 +0000)]
Add support to tablesorter to handle IP/CIDR notation
This fixes bug 34475
Sam Reed [Sat, 18 Feb 2012 14:28:38 +0000 (14:28 +0000)]
Fix extraneous quote from r111800
Doesn't fix Niklas' issue, but it tidies it up for the moment
Alexandre Emsenhuber [Sat, 18 Feb 2012 14:14:10 +0000 (14:14 +0000)]
Use local context to get messages
Alexandre Emsenhuber [Sat, 18 Feb 2012 13:21:01 +0000 (13:21 +0000)]
Removed wfDeprecated() call from LogPage::logName() and LogPage::logHeader(); they are still widely used including in core.
Antoine Musso [Sat, 18 Feb 2012 10:57:34 +0000 (10:57 +0000)]
(bug 34421) avoid duplicate Subject headers in mail
r93397 duplicated the Subject header since it was passed both as an
argument of mail() and in the additional headers array.
This is r111765 done right.
Tested using both Pear and mail() methods.
Antoine Musso [Sat, 18 Feb 2012 10:37:11 +0000 (10:37 +0000)]
revert r111765 bug 34421 avoid duplicate Subject headers
Was removing subjects when sending mails through PEAR.
Roan Kattouw [Sat, 18 Feb 2012 10:36:32 +0000 (10:36 +0000)]
Proper $=jQuery aliasing in tablesorter test
Sam Reed [Sat, 18 Feb 2012 01:07:42 +0000 (01:07 +0000)]
Fix possibly undefined variables
Move $db further up
Return something on all paths
Andrew Garrett [Sat, 18 Feb 2012 00:42:41 +0000 (00:42 +0000)]
Add missing dependency of mediawiki.user to mediawiki.api.watch. May resolve some of bug 34450
Ryan Kaldari [Sat, 18 Feb 2012 00:08:06 +0000 (00:08 +0000)]
follow-up to r111802, we dont need internal document.ready trigger since the entire js file is inside a document.ready trigger now