lhc/web/wiklou.git
11 years agoMerge "HTMLForm entity labels are now optional and escaped"
jenkins-bot [Wed, 1 May 2013 01:02:06 +0000 (01:02 +0000)]
Merge "HTMLForm entity labels are now optional and escaped"

11 years agoHTMLForm entity labels are now optional and escaped
Matt Walker [Tue, 16 Apr 2013 18:05:50 +0000 (11:05 -0700)]
HTMLForm entity labels are now optional and escaped

Things like checkboxes have no label, yet a label div gets generated
anyway. This is annoying when maybe I don't want that empty div hanging
around (i.e., it looks like it's part of other option groups when I
have left margins on all .mw-input).

This patch will now also escape 'label' fields by default. For the old
functionality you must now explicitly use the 'label-raw' field.

Change-Id: I8f8340911b7495a91c93e7f2eb7c041b2a7f2179

11 years agoMerge "HTMLTextAreaField: Allow sizes to be overridden by child classes"
jenkins-bot [Wed, 1 May 2013 00:49:28 +0000 (00:49 +0000)]
Merge "HTMLTextAreaField: Allow sizes to be overridden by child classes"

11 years agoClarify wfRandomString release note
Kevin Israel [Tue, 30 Apr 2013 22:02:42 +0000 (18:02 -0400)]
Clarify wfRandomString release note

Change-Id: I54b39488eeab0ca54cc44c6ba592da311604a39b
Follows-Up: Ic19b5b97c582485780b24fd35ffef2111cc8b3ca

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 30 Apr 2013 21:29:58 +0000 (21:29 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoSECURITY: Check SVG xml encoding against whitelist
csteipp [Tue, 23 Apr 2013 21:15:01 +0000 (14:15 -0700)]
SECURITY: Check SVG xml encoding against whitelist

Some browsers will interpret obscure xml encodings as UTF-8, while
PHP/expat will interpret the given encoding in the xml declaration.

bug: 47304
Change-Id: I3b311a7078d977ae89c51e95e625d79fba183cfc

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 30 Apr 2013 19:57:00 +0000 (19:57 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I3fec933fed1e61dded7aa5a538865a9c98ba1663

11 years agoUpdate language maintenance files
raymond [Tue, 30 Apr 2013 19:38:56 +0000 (21:38 +0200)]
Update language maintenance files

per
https://gerrit.wikimedia.org/r/#/c/59572/13/languages/messages/MessagesEn.php,unified
https://gerrit.wikimedia.org/r/#/c/61073/4/maintenance/language/messages.inc,unified

Change-Id: I2c863b2a8db5f9b3c7630abb4b843845dbe4fa79

11 years agoMerge "ApiResult::setContent is static"
jenkins-bot [Tue, 30 Apr 2013 18:57:17 +0000 (18:57 +0000)]
Merge "ApiResult::setContent is static"

11 years agoMerge "Reimplement Special:Filepath as a redirect through Special:Redirect/File."
jenkins-bot [Tue, 30 Apr 2013 18:37:04 +0000 (18:37 +0000)]
Merge "Reimplement Special:Filepath as a redirect through Special:Redirect/File."

11 years agoMerge "Create a Special:Redirect page."
jenkins-bot [Tue, 30 Apr 2013 18:34:11 +0000 (18:34 +0000)]
Merge "Create a Special:Redirect page."

11 years agoApiResult::setContent is static
umherirrender [Tue, 30 Apr 2013 18:16:36 +0000 (20:16 +0200)]
ApiResult::setContent is static

Change-Id: Ifee10208e8b79928ecaa47f541bb61dd6e9c29e4

11 years agoskins: Ensure headings are not smaller than body text
MatmaRex [Tue, 30 Apr 2013 09:30:15 +0000 (11:30 +0200)]
skins: Ensure headings are not smaller than body text

A heading that's 80% the size of regular text? That's just weird.

Scaled the sizes slightly to give h6 100% of body text size.

Change-Id: I45bf6e8c8ec01cb5fdc8392b4944e970e130ce38

11 years agoMerge "Use 'recent contributors' instead of 'contributors this month'."
Swalling [Tue, 30 Apr 2013 17:41:38 +0000 (17:41 +0000)]
Merge "Use 'recent contributors' instead of 'contributors this month'."

11 years agoReimplement Special:Filepath as a redirect through Special:Redirect/File.
C. Scott Ananian [Fri, 26 Apr 2013 21:42:33 +0000 (17:42 -0400)]
Reimplement Special:Filepath as a redirect through Special:Redirect/File.

Reduces code duplication (and some ugly deprecated code patterns in the
Special:Filepath implementation).  In the long term, reduces the need for
one-off redirection pages (Special:PermanentLink, Special:Filepath, etc)
in favor of an extensible system based around Special:Redirect.

Change-Id: I42d5879342bc18412f0383c538e83c68b1c3cc2a

11 years agoCreate a Special:Redirect page.
C. Scott Ananian [Sat, 13 Apr 2013 01:52:05 +0000 (21:52 -0400)]
Create a Special:Redirect page.

The primary purpose of this page is to redirect to a user page given a
numeric id.  The numeric User ID is stable across renames, and is
therefore an appropriate primary key for identifying the user
associated with a given revision.  The Parsoid API would like to
export semantic RDFa in its DOM identifying the author of a revision
by their userid, but in order to do so requires a MW redirect from
userid to the appropriate User page.  (A "permalink" for the user.)

This patch adds that redirect, as
  http://somewiki/Special:Redirect/user/1234

(https://bugzilla.wikimedia.org/show_bug.cgi?id=45206 is the related
Parsoid feature.)

Rather than adding a set of ad-hoc redirection pages, this patch
sets up an infrastructure for redirections.  Special:Redirect also
subsumes the functions of:

* Special:Filepath (Special:Redirect/file/xxxx)
* Special:PermanentLink (Special:Redirect/revision/xxxxx)

This structure is extensible for other redirect types.

Change-Id: I8b0785f4fbdb3dd438a7a45263c5f375ff9d2208

11 years ago(bug 47219) Allow specifying change type of Wikipedia feed items
kaligula [Tue, 30 Apr 2013 16:01:00 +0000 (18:01 +0200)]
(bug 47219) Allow specifying change type of Wikipedia feed items

It exposes field /rc_type/ as ApiQueryRecentChanges does thus allowing
user to define which (edit, external, new, log) changes to show in feed.

Bug: 47219
Change-Id: If22827129b04d423711f921307dc820d4840d9d1

11 years agoMerge "Remove spurious 'h7' in commonPrint.css"
jenkins-bot [Tue, 30 Apr 2013 16:11:04 +0000 (16:11 +0000)]
Merge "Remove spurious 'h7' in commonPrint.css"

11 years agoMerge "vector: Remove useless HTML comments from output"
jenkins-bot [Tue, 30 Apr 2013 16:08:09 +0000 (16:08 +0000)]
Merge "vector: Remove useless HTML comments from output"

11 years agovector: Remove useless HTML comments from output
MatmaRex [Mon, 15 Apr 2013 19:30:04 +0000 (21:30 +0200)]
vector: Remove useless HTML comments from output

They pretty much just repeat the element ids and bloat the code.

Change-Id: I812b1a0456a623db0c32860ab46a332f4d349343

11 years agoRemove spurious 'h7' in commonPrint.css
MatmaRex [Tue, 30 Apr 2013 09:23:53 +0000 (11:23 +0200)]
Remove spurious 'h7' in commonPrint.css

There is no such element, silly.

Change-Id: I0a58278c1d2ff97463eddc15c701193cfd25757e

11 years agoAdd new message key to maintenace file
raymond [Tue, 30 Apr 2013 07:40:19 +0000 (09:40 +0200)]
Add new message key to maintenace file

https://gerrit.wikimedia.org/r/#/c/58281/17/languages/messages/MessagesEn.php,unified

Change-Id: I5306382841a74a850d92283252dab7d5cce6cc3a

11 years agoClean up the class building logic in OutputPage
MatmaRex [Mon, 22 Apr 2013 13:57:44 +0000 (15:57 +0200)]
Clean up the class building logic in OutputPage

Build the classes using an array that is finally imploded, instead of
concatenating strings repeatedly.

Change-Id: I2a09282d5ba33f131a4311c58e49dab5eefce418

11 years agoMerge "Add chosen support to HTMLForm's multiselect field"
jenkins-bot [Tue, 30 Apr 2013 04:51:47 +0000 (04:51 +0000)]
Merge "Add chosen support to HTMLForm's multiselect field"

11 years agoMerge "Bug 44855, Bug 37743: Improved vector button styles for jquery.ui"
Trevor Parscal [Mon, 29 Apr 2013 22:37:12 +0000 (22:37 +0000)]
Merge "Bug 44855, Bug 37743: Improved vector button styles for jquery.ui"

11 years agoMerge "Call jQuery.ready() before </body>"
Timo Tijhof [Mon, 29 Apr 2013 20:31:11 +0000 (20:31 +0000)]
Merge "Call jQuery.ready() before </body>"

11 years agoAdd chosen support to HTMLForm's multiselect field
Ryan Lane [Tue, 9 Apr 2013 07:48:21 +0000 (00:48 -0700)]
Add chosen support to HTMLForm's multiselect field

For very large multiselects, the list of checkboxes is
overwhelming. This change adds support for using jquery.chosen
conditionally on multiselect fields, if 'chosen' is used for the
cssclass parameter.

Change-Id: If1eba7fb705089deb4cff7a326db0ac803a522ec

11 years agoCall jQuery.ready() before </body>
Timo Tijhof [Thu, 25 Apr 2013 08:12:07 +0000 (10:12 +0200)]
Call jQuery.ready() before </body>

mw.loader defaults to async=false. Overridden when $.isReady=true
or a mw.loader call sets async=true.

The problem is in calls to mw.loader.load that are not in
the HTML output but occur *before* the DOMContentReady event.

In those cases we want to use async (creating a script tag)
instead of synchronous (document.write) because in Firefox
DOMContentReady is emitted some time after it is no longer safe
to use document.write (bug 47457).

This also optimises the dom ready event cross-browser.

Bug: 34542
Bug: 47457
Change-Id: Ic3d0c937268d0943d2f770f3ca18bcf4e1eed346

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 29 Apr 2013 19:03:34 +0000 (19:03 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I5ccb7171071ba2443c392257d8bb0456949bfeb2

11 years agoBug 44855, Bug 37743: Improved vector button styles for jquery.ui
isarra [Sun, 17 Mar 2013 18:48:20 +0000 (11:48 -0700)]
Bug 44855, Bug 37743: Improved vector button styles for jquery.ui

Removed the orange because orange is an evil colour, made the other colours
brighter with softer gradients, added specific support for active and focus
states, made disabled buttons all grey.

Looks like this: http://jsfiddle.net/vPaM2/12/

Bug: 44855
Bug: 37743
Change-Id: I6f28ce6c9c3403d8377b4b3aaa7495b01853ee0e

11 years agoRevert "Creating new WMF 1.22wmf3 branch"
Reedy [Mon, 29 Apr 2013 18:19:32 +0000 (19:19 +0100)]
Revert "Creating new WMF 1.22wmf3 branch"

This reverts commit 98c77dd229d8a0b77d63c12c7aecc7fd51554083.

Change-Id: I01d0416822d85e45c1bda63d475826c805167d82

11 years agoRevert "Commit of various live hacks"
Reedy [Mon, 29 Apr 2013 18:19:13 +0000 (19:19 +0100)]
Revert "Commit of various live hacks"

This reverts commit c6af934ae65b8c7dbd878a376f9e46dc28bff941.

Change-Id: I3e863bb632531d7cd4ec0614325a7c4a7ba9aa3d

11 years agoRevert "Update wikidata extensions to versions in 1.22wmf2"
Reedy [Mon, 29 Apr 2013 18:11:31 +0000 (18:11 +0000)]
Revert "Update wikidata extensions to versions in 1.22wmf2"

This reverts commit bac30003c96388b7545a621bda5074429812b8c5

Change-Id: Id561d227deab388bf733d79f16a54a7a358f356a

11 years agoUpdate wikidata extensions to versions in 1.22wmf2
Reedy [Mon, 29 Apr 2013 17:32:01 +0000 (18:32 +0100)]
Update wikidata extensions to versions in 1.22wmf2

Change-Id: Ibc067012b1031f0ffad579364018de5508aae3de

11 years agoCommit of various live hacks
Reedy [Tue, 10 Apr 2012 18:27:59 +0000 (18:27 +0000)]
Commit of various live hacks

Disable of MessageBlobStore clear

Reset $wgAutopromote (should be moved to a config change!!)

Disable setting of wgStyleSheetPath

Throttle page_touched

Add apc htcp packet numbers to SquidUpdate

Disable set names binary/utf8

Commment out searchindex table indexes

Was c532e81d583d3d0439fe76eea4d105d675461b56

Original revision Change-Id I42c4f859e55eb198f6c6841e582b3552aad7b31f
https://gerrit.wikimedia.org/r/#/c/7606

Change-Id: I5ec8dd53188e9e4128f99ceaff38ebf9dcf570bb

11 years agoCreating new WMF 1.22wmf3 branch
Reedy [Mon, 29 Apr 2013 15:44:47 +0000 (15:44 +0000)]
Creating new WMF 1.22wmf3 branch

11 years ago(bug 45535) Hook for changing language links.
daniel [Fri, 19 Apr 2013 11:19:06 +0000 (13:19 +0200)]
(bug 45535) Hook for changing language links.

This adds a new hook called LanguageLinks which is called
whenever a list of language links is returned to the user.
This gives extensions the option to manipulate the links
on the fly.

Note that this change only covers the language links used
in OutputPage and by ApiParse. Adapting ApiQueryLangLinks is
left as a follow-up task.

As explained on bugzilla, this is a precondition to
allowing Wikibase/Wikidata to update languagelinks without
forcing a (redundant) re-parse of the page content.

This change also introduces the notion of link flags that
can be used to associate flags with language links. This
will be integrated with ParserOutput and OutputPage in a
follow-up.

Change-Id: Iaec0faa131413a291fc8f77496e4f371addb3b99

11 years agoMerge "Clean-up to global overrides in NewParserTest"
jenkins-bot [Mon, 29 Apr 2013 12:31:17 +0000 (12:31 +0000)]
Merge "Clean-up to global overrides in NewParserTest"

11 years agoMerge "Add input checks for Language::sprintfDate()"
jenkins-bot [Mon, 29 Apr 2013 08:50:08 +0000 (08:50 +0000)]
Merge "Add input checks for Language::sprintfDate()"

11 years agoMerge "(bug 47483) update file metadata in importImages"
jenkins-bot [Mon, 29 Apr 2013 06:58:01 +0000 (06:58 +0000)]
Merge "(bug 47483) update file metadata in importImages"

11 years agoMerge "wfRandomString: Correct bias toward digits 1-7"
jenkins-bot [Mon, 29 Apr 2013 06:24:24 +0000 (06:24 +0000)]
Merge "wfRandomString: Correct bias toward digits 1-7"

11 years agoSplit line and fixed spacing in skins folder
umherirrender [Sat, 27 Apr 2013 10:26:17 +0000 (12:26 +0200)]
Split line and fixed spacing in skins folder

Change-Id: I669033b45f34353e201ffe2718ee54fed41fa450

11 years agowfRandomString: Correct bias toward digits 1-7
Kevin Israel [Mon, 29 Apr 2013 04:33:06 +0000 (00:33 -0400)]
wfRandomString: Correct bias toward digits 1-7

Two problems with a single line of code:

* dechex() does not include leading zeros, so the first digit
  generated in each iteration cannot be zero unless the return
  value of mt_rand() is 0.

  This also means wfRandomString() is extremely unlikely to
  start a string with '0'.

* mt_rand() does not actually uniformly distribute values over
  [0,2^32-1]; it actually right-shifts one of the bits off (just
  because "[...] the previous php_rand only returns 31 at most"),
  so the maximum value is 0x7fffffff, not 0xffffffff.

  This means wfRandomString() will never start a string with
  any of the digits 8-f.

Including leading zeros and using only the 28 LSBs to form seven
hex digits at a time is the simplest fix.

Change-Id: Ic19b5b97c582485780b24fd35ffef2111cc8b3ca

11 years ago[JobQueue] Added a delayedJobsEnabled() function.
Aaron Schulz [Thu, 25 Apr 2013 21:45:49 +0000 (14:45 -0700)]
[JobQueue] Added a delayedJobsEnabled() function.

Change-Id: I7fe6e04aa5c51a61facd5a7327c5544dadb4108b

11 years ago(bug 41729) Move section edit links to after the headings
MatmaRex [Wed, 6 Mar 2013 20:10:15 +0000 (21:10 +0100)]
(bug 41729) Move section edit links to after the headings

This requires minor changes in various parts of MediaWiki, and
being extra careful about cached rendered pages' HTML.

Fun fact: editsection links are not made in Parser. They're made in
Linker, in Skin *and* in ParserOutput.

Client-side code and screen-scrapers will have to be adjusted to
handle both cases (old HTML will still be visible on cached page
renders until they are purged); extensions using the DoEditSectionLink
or EditSectionLink hooks might need adjustments as well.

* Linker: Change the HTML of pages to move the link itself from the
  beginning of the heading (before <span class="mw-headline">) to the end
  of the  heading (after the span).
* Skin: Change the class from .editsection to .mw-editsection; we use this
  opportunity to clean up old cruft, and this makes it much easier to
  handle cached renders (by just detecting the old class).
* ParserOutput: Implement a horrible hack to support cached parser
  outputs with the old order of items.
* Ensure everything that should support both classes supports both
  classes (this includes print stylesheets and some scripts).
* Implement styles for the new look for all the skins (did this in
  shared.css; the styles are non-intrusive and can be overridden
  easily, and all of the skins were using the same look before).

Change-Id: I6a6c12a90de3604012420b20c1f520e0ece170ab

11 years agoCreated ProfileSection class to avoid wfProfileOut() whack-a-mole.
Aaron Schulz [Thu, 25 Apr 2013 06:56:04 +0000 (23:56 -0700)]
Created ProfileSection class to avoid wfProfileOut() whack-a-mole.

Change-Id: I9f7e0638edd99e1ac07b83054e8f7ef255179281

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 28 Apr 2013 19:33:56 +0000 (19:33 +0000)]
Localisation updates from translatewiki.net.

Change-Id: If64ce665b16822b743659a0914fafb034e7a97c8

11 years agoMerge "Don't underline a elements with the mw-ui-button class:"
jenkins-bot [Sun, 28 Apr 2013 17:48:09 +0000 (17:48 +0000)]
Merge "Don't underline a elements with the mw-ui-button class:"

11 years agoFixed spacing around parenthesis in languages/tests/maintenance
umherirrender [Sat, 27 Apr 2013 11:23:52 +0000 (13:23 +0200)]
Fixed spacing around parenthesis in languages/tests/maintenance

Change-Id: Idd4299d17f1fcf98ab1d635484cb4e880f35ee24

11 years agoFixed spacing around parenthesis in includes
umherirrender [Sat, 27 Apr 2013 12:02:08 +0000 (14:02 +0200)]
Fixed spacing around parenthesis in includes

Change-Id: Ie8adc00f4ee8ecec4554e584c18d5d2073415397

11 years agoFix email address formatting in API credits.
Victor Vasiliev [Sun, 28 Apr 2013 14:06:57 +0000 (10:06 -0400)]
Fix email address formatting in API credits.

Change-Id: I9d295d5b07558e2b28105899c3c40331cea06adf

11 years agoMerge "jquery.makeCollapsible: minor fixes to togglingHandler()"
TheDJ [Sun, 28 Apr 2013 14:06:21 +0000 (14:06 +0000)]
Merge "jquery.makeCollapsible: minor fixes to togglingHandler()"

11 years agoFix PHPUnit ORM Tests to work with Postgres
Brent Garber [Tue, 9 Apr 2013 21:20:53 +0000 (21:20 +0000)]
Fix PHPUnit ORM Tests to work with Postgres

Change-Id: Ia4321727f6f1eab65c91d9876f87d51b545a72c2

11 years agoDon't underline a elements with the mw-ui-button class:
Matthew Flaschen [Sun, 28 Apr 2013 03:17:55 +0000 (23:17 -0400)]
Don't underline a elements with the mw-ui-button class:

This is in addition to an existing 'text-decoration: none' on the class
itself.  This is being kept for other elements (e.g. button), but is
not specific enough to beat a conflicting declaration in commonElements.css

Change-Id: I8ec7efd97abad0ca75dea9b1c28e1fb91323741f

11 years agoUse 'recent contributors' instead of 'contributors this month'.
Matthew Flaschen [Sun, 28 Apr 2013 01:42:30 +0000 (21:42 -0400)]
Use 'recent contributors' instead of 'contributors this month'.

Bug: 47753
Change-Id: Ic3a9bf025cca338218a7dde2fe02d0409d3db2d5

11 years ago{{PAGESIZE:{{FULLPAGENAME}}}}, {{{{FULLPAGENAME}}}} not outdated
Brian Wolff [Tue, 15 Jan 2013 21:38:29 +0000 (17:38 -0400)]
{{PAGESIZE:{{FULLPAGENAME}}}}, {{{{FULLPAGENAME}}}} not outdated

Previously, when parsing {{PAGESIZE:{{FULLPAGENAME}}}} or
{{ {{FULLPAGENAME}} }} (a self-transclusion), we used the
version currently in the db, which is outdated because
the moment we save the page there will be a new version.

This often causes confusion when testing templates that
often have examples of template use in the doc section
which would be one version out of date.

This change causes those variables to give results for
the most recent version of the page. For self-templates
that's done by reparsing the page after save. For
self page sizes this is done by taking the size
of the input to Parser::parse.

Note that {{subst:PAGESIZE:{{subst:FULLPAGENAME}}}}
will still yield previous revision like before.

bug: 39590
Change-Id: Idfac13de37d05317f65e4131534543e66cf74873

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 27 Apr 2013 19:29:17 +0000 (19:29 +0000)]
Localisation updates from translatewiki.net.

Change-Id: If59e0ce436bc12b557ddf62be574cd0cabe32ed4

11 years agoMerge "Web installer: always autoselect some DB type"
MarkAHershberger [Sat, 27 Apr 2013 16:30:00 +0000 (16:30 +0000)]
Merge "Web installer: always autoselect some DB type"

11 years agoPass array to Title::getLocalURL instead of an urlencoded string
umherirrender [Fri, 19 Apr 2013 12:53:20 +0000 (14:53 +0200)]
Pass array to Title::getLocalURL instead of an urlencoded string

This makes code easier to read and the urlencode is done inside
getLocalURL or friends

Change-Id: I21b988890356d11835eedba12a90a347bf0905b2

11 years agoUse wfShellExec in parserTest.inc
umherirrender [Fri, 26 Apr 2013 15:45:18 +0000 (17:45 +0200)]
Use wfShellExec in parserTest.inc

This avoids shell execution with backticks

Change-Id: Ib0db0c2ac36ae615f280ed9db82d2ca6aad744b5

11 years agoAvoid use of __METHOD__ in closures.
Aaron Schulz [Fri, 26 Apr 2013 22:50:06 +0000 (15:50 -0700)]
Avoid use of __METHOD__ in closures.

Change-Id: If633400bc915e3e0582d420826c30761678f4878

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 26 Apr 2013 21:52:36 +0000 (21:52 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I2ae1cf4d6dfd73f031edb225b2a9095f697fe258

11 years agoUpdated wikitext-escaping tests to reflect Parsoid's latest output
Subramanya Sastry [Thu, 25 Apr 2013 09:52:30 +0000 (15:22 +0530)]
Updated wikitext-escaping tests to reflect Parsoid's latest output

* Changed wikitext (input) portion of several html2wt-centric tests
  to match how Parsoid adds the nowiki tags. We are not as concerned
  about the wt -> html direction.

* Changed 'disabled' flag to 'parsoid' on several tests since that was
  the original intention of these disabled tests.  Since then, we have
  the parsoid option to indicate the same thing which is more accurate
  than 'disabled'.

* Added few more escaping tests based on recent Parsoid fixes and
  discovery of new bugs.

* Disabled one test known to not pass because of absence of
  data-parsoid flags.

Change-Id: Icd10a9bccbcc27715914b9f00a20afb06ed275d1

11 years agoMerge "Move list generation out of TablePager::getLimitSelect()"
jenkins-bot [Fri, 26 Apr 2013 15:20:47 +0000 (15:20 +0000)]
Merge "Move list generation out of TablePager::getLimitSelect()"

11 years agoMerge "Remove subpage from form target on Special:BlockList"
jenkins-bot [Fri, 26 Apr 2013 15:16:29 +0000 (15:16 +0000)]
Merge "Remove subpage from form target on Special:BlockList"

11 years agoMerge "Simplify the logic to decide whether to show "variant" and "noconvertlink...
jenkins-bot [Fri, 26 Apr 2013 15:12:38 +0000 (15:12 +0000)]
Merge "Simplify the logic to decide whether to show "variant" and "noconvertlink" on Special:Preferences"

11 years agoMerge "Fix HTMLForm's documentation example"
jenkins-bot [Fri, 26 Apr 2013 15:08:40 +0000 (15:08 +0000)]
Merge "Fix HTMLForm's documentation example"

11 years agoMerge "Fix TimestampTest broken by 7e3386d4"
jenkins-bot [Fri, 26 Apr 2013 15:05:20 +0000 (15:05 +0000)]
Merge "Fix TimestampTest broken by 7e3386d4"

11 years agoMerge "Added space after switch/Removed spaces after unset"
jenkins-bot [Fri, 26 Apr 2013 15:01:41 +0000 (15:01 +0000)]
Merge "Added space after switch/Removed spaces after unset"

11 years agoAdded space after switch/Removed spaces after unset
umherirrender [Fri, 26 Apr 2013 14:42:31 +0000 (16:42 +0200)]
Added space after switch/Removed spaces after unset

While at it, added/removed some other spaces in the same files

Change-Id: I84d8001aa123a008807ad5eb76f396aed7c899a4

11 years agoMerge "Added a function to LoginForm to show the "return to" page."
jenkins-bot [Fri, 26 Apr 2013 14:41:32 +0000 (14:41 +0000)]
Merge "Added a function to LoginForm to show the "return to" page."

11 years agoClean-up to global overrides in NewParserTest
Alexandre Emsenhuber [Sat, 20 Apr 2013 20:15:20 +0000 (22:15 +0200)]
Clean-up to global overrides in NewParserTest

- Move definitions of constant values from NewParserTest::setupGlobals()
  to NewParserTest::setUp() so that the former only defines values
  depending on the test
- Remove duplicate definitions
- Use setMwGlobals() to override the globals in NewParserTest::setUp()
- Change the overriding of $wgNamespaceProtection to use the normal
  procedure instead of the "weirdglobal" thing
- Only define $wgUser, $wgOut and $wgRequest in NewParserTest::setupGlobals()

Change-Id: I1362932db2230455b23e469759ff3f9946da0392

11 years agoUpdate code formatting
Siebrand Mazeland [Fri, 26 Apr 2013 12:00:22 +0000 (14:00 +0200)]
Update code formatting

Change-Id: I16a9b42651f1cfb1a70dffbb67b7b83dfeb90d03

11 years agoUpdate messages.inc and rebuild MessagesEn.php.
Alexandre Emsenhuber [Tue, 23 Apr 2013 13:53:56 +0000 (15:53 +0200)]
Update messages.inc and rebuild MessagesEn.php.

Change-Id: I5af753e9db10abc5e991a546649a7280a9fed8a2

11 years agoUpdate maintenance file with new message keys slipped in sometime...
raymond [Fri, 26 Apr 2013 13:51:01 +0000 (15:51 +0200)]
Update maintenance file with new message keys slipped in sometime...

Change-Id: I1103ebd965790cf9b60dbc9f4c302534576c4221

11 years agoRemoved space after isset
umherirrender [Fri, 26 Apr 2013 12:18:06 +0000 (14:18 +0200)]
Removed space after isset

While at it, added/removed some other spaces in the same files

Change-Id: Iabb23a448f6f53eb6020155f9c744f74f8b11786

11 years agoMerge "Remove unused local variables in tests"
jenkins-bot [Fri, 26 Apr 2013 10:54:23 +0000 (10:54 +0000)]
Merge "Remove unused local variables in tests"

11 years agoIgnore message 'today-at' for translation
raymond [Fri, 26 Apr 2013 08:25:32 +0000 (10:25 +0200)]
Ignore message 'today-at' for translation

Spotted by Beta16 and ToliƱo
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Today-at/en
https://translatewiki.net/wiki/Thread:Translating_talk:MediaWiki/About_MediaWiki:Today-at/en

Change-Id: Ic5a4b576fe0143c65e7b6582d11c071918d68a2a

11 years agoAdd input checks for Language::sprintfDate()
Siebrand Mazeland [Thu, 25 Apr 2013 07:58:39 +0000 (09:58 +0200)]
Add input checks for Language::sprintfDate()

Check if the timestamp has a length of 14 characters and if it is numeric.
Throw an exception otherwise. Includes tests.

Bug: 47629
Change-Id: I9a4fd0af88cf20c2a6bd72fd7048743466c1600f

11 years agoRemove unused local variables in tests
Siebrand Mazeland [Fri, 26 Apr 2013 07:48:46 +0000 (09:48 +0200)]
Remove unused local variables in tests

Change-Id: I71318eb7d8c00bfc1ce6d2fc636b498f7a695f42

11 years agoMerge "Fix "contributors this month" # in signup form"
jenkins-bot [Fri, 26 Apr 2013 05:25:59 +0000 (05:25 +0000)]
Merge "Fix "contributors this month" # in signup form"

11 years agoFix "contributors this month" # in signup form
S Page [Fri, 26 Apr 2013 05:08:59 +0000 (22:08 -0700)]
Fix "contributors this month" # in signup form

Switch createacct-benefit-head3 from {{NUMBEROFUSERS}} to`
{{NUMBEROFACTIVEUSERS}}.

Bug: 47693

Change-Id: Icbbdf90830dd74bdf0d53a1bf07c3c9cddaa50e4

11 years agoCreate account-specific header for its error box
S Page [Fri, 26 Apr 2013 01:53:38 +0000 (18:53 -0700)]
Create account-specific header for its  error box

new message createacct-error

Bug: 47691
Change-Id: I47d87858cd0e9dc3c668351283234388294872bb

11 years agoMoved RC purge logic to RecentChange::purgeExpiredChanges().
Aaron Schulz [Wed, 24 Apr 2013 01:31:06 +0000 (18:31 -0700)]
Moved RC purge logic to RecentChange::purgeExpiredChanges().

* Also deferred the change to onTransactionIdle().

Change-Id: Ife8a06c0ac9230bfe564d17c33f16cb989c8bc24

11 years agoChanged on-request job running to shell out instead of doing a loop.
Aaron Schulz [Thu, 18 Apr 2013 05:05:47 +0000 (22:05 -0700)]
Changed on-request job running to shell out instead of doing a loop.

* Also factored out a new wfShellExecDisabled() function.
* This will keep the process in the background if possible to avoid
  killing site performance, especially with slow jobs.
* This also keep fatals and uncatcheable exceptions from
  hitting the user.
* If $wgPhpCli is not set to an actual path or safe mode
  is on, then the old code will be used.

Change-Id: I6a28152251659ee53eee2604f16d5bf02c85a44f

11 years agoMerge "MyISAM warning when InnoDB is not available"
Kaldari [Thu, 25 Apr 2013 23:21:41 +0000 (23:21 +0000)]
Merge "MyISAM warning when InnoDB is not available"

11 years agoMyISAM warning when InnoDB is not available
ebernhardson [Thu, 25 Apr 2013 21:34:17 +0000 (14:34 -0700)]
MyISAM warning when InnoDB is not available

Bug: 34430
Change-Id: I68e79a8efe7cd625c12b5993074de9c3479e760b

11 years agoMerge "Updated onTransactionIdle() docs a bit."
jenkins-bot [Thu, 25 Apr 2013 20:58:41 +0000 (20:58 +0000)]
Merge "Updated onTransactionIdle() docs a bit."

11 years agoFixed maintenance/tables.sql (typo i guess)
freakolowsky [Wed, 17 Apr 2013 08:30:58 +0000 (10:30 +0200)]
Fixed maintenance/tables.sql (typo i guess)

Change-Id: Ib1e90f9bf1bd728d1a263d65f2f869abf2f6c294

11 years agoUpdated onTransactionIdle() docs a bit.
Aaron Schulz [Thu, 25 Apr 2013 20:32:55 +0000 (13:32 -0700)]
Updated onTransactionIdle() docs a bit.

Change-Id: I12063991393a0db064488a72cfda70911fec3755

11 years agoMerge "test: describe the parser tests recorder"
jenkins-bot [Thu, 25 Apr 2013 20:20:29 +0000 (20:20 +0000)]
Merge "test: describe the parser tests recorder"

11 years agoMerge "Add linkprefix test to parserTests.txt."
jenkins-bot [Thu, 25 Apr 2013 20:08:34 +0000 (20:08 +0000)]
Merge "Add linkprefix test to parserTests.txt."

11 years agotest: describe the parser tests recorder
Antoine Musso [Tue, 19 Mar 2013 14:09:04 +0000 (15:09 +0100)]
test: describe the parser tests recorder

How to best describe the myriad of parser tests recorder we have?  PHP
come with interfaces which let us express what a developer should expect
from all those common classes.

The ITestRecorder interface represent our parser test recorders.

Change-Id: I58e10e7ebcb7ae1c4598a4f7e3bd4f11a7f713c4

11 years agoUse wfShellExec in MimeMagic
umherirrender [Sun, 21 Apr 2013 14:59:18 +0000 (16:59 +0200)]
Use wfShellExec in MimeMagic

This avoids shell execution with backticks

Change-Id: I37ca19f4b19a3a7f2834a234051e4044653fcfb1

11 years agoAdd linkprefix test to parserTests.txt.
C. Scott Ananian [Thu, 25 Apr 2013 18:35:47 +0000 (14:35 -0400)]
Add linkprefix test to parserTests.txt.

This example is taken from is:Finnland.

Change-Id: I730e0a1e16d0f1283db3da90d3ab9c039355eb3f

11 years agoFixed dumpBlocks fcn
freakolowsky [Wed, 17 Apr 2013 12:18:17 +0000 (14:18 +0200)]
Fixed dumpBlocks fcn

Change-Id: I5db9105a38ffd968cf6a6bac0d723db40ec1f518

11 years agoAdd parserTests for tilde and equals signs in links.
C. Scott Ananian [Thu, 25 Apr 2013 15:55:59 +0000 (11:55 -0400)]
Add parserTests for tilde and equals signs in links.

The Parsoid team stumbled over bugs here; adding to parserTests to prevent
future regressions.

Change-Id: Iad599aef9e3a6e62bb8a447bf955eb98230e81cf

11 years ago(Bug 44357) Update checkStorage.php to not use deprecated Revision::getText()
Platonides [Sat, 26 Jan 2013 14:36:54 +0000 (15:36 +0100)]
(Bug 44357) Update checkStorage.php to not use deprecated Revision::getText()

Change-Id: Id632867207960ba5c25d2b6eaba06f051fb1e681

11 years agoMerge "Remove globals unneeded after 47d1060"
jenkins-bot [Thu, 25 Apr 2013 14:47:37 +0000 (14:47 +0000)]
Merge "Remove globals unneeded after 47d1060"

11 years agoRemove globals unneeded after 47d1060
Platonides [Thu, 25 Apr 2013 14:31:01 +0000 (16:31 +0200)]
Remove globals unneeded after 47d1060

Change-Id: I39b6fa829e0d6ea7861b06edd8f5c599edcf4b76