lhc/web/wiklou.git
11 years ago(bug 38110) provide a way to separate out schema changes
MarkAHershberger [Thu, 22 Nov 2012 03:53:24 +0000 (22:53 -0500)]
(bug 38110) provide a way to separate out schema changes

Allows update.php to be run when $wgAllowSchemaUpdates = false.

This is useful for non-WMF environments where strict DB permissions
allow database updates (which update.php performs), but no schema
changes (such as adding or dropping tables or indices which update.php
also performs).

It does this by adding the --schema and --noschema flags. Without
either of these flags, update.php will perform exactly as before.

With --noschema, all changes to the table structure or table additions
are skipped. Only data changes are made.

With --schema is used, no schema changes are made to the database, but
the schema changes are saved to a separate SQL file that can be run.

Change-Id: I96b4cfd4c02e9cbf46cc6a0499b87fb3b89020a0

11 years agoAdd EditPage hooks AlternateEditPreview, EditPage::showStandardInputs:options
Brad Jorsch [Sat, 10 Nov 2012 00:54:57 +0000 (16:54 -0800)]
Add EditPage hooks AlternateEditPreview, EditPage::showStandardInputs:options

Adds two new hooks:
* AlternateEditPreview allows an extension to override the standard
  page preview display.
* EditPage::showStandardInputs:options allows an extension to add
  additional HTML to the end of the editOptions area of the edit form.

Change-Id: Ic5d35c8e9ff71282b5ebccc87c64894a385e5836

11 years agoMerge "(bug 457) use semantic headings for the navigation menu"
Siebrand [Thu, 22 Nov 2012 00:14:36 +0000 (00:14 +0000)]
Merge "(bug 457) use semantic headings for the navigation menu"

11 years agoMerge "Fix uselang parameter in ApiWatch"
Anomie [Wed, 21 Nov 2012 23:59:41 +0000 (23:59 +0000)]
Merge "Fix uselang parameter in ApiWatch"

11 years agoFix uselang parameter in ApiWatch
Marius Hoch [Wed, 21 Nov 2012 21:17:29 +0000 (22:17 +0100)]
Fix uselang parameter in ApiWatch

It's now possible to use uselang with the watch API without
it throwing a warning (cause the parameter wasn't defined).
Idea and some code taken from ApiParse.

Change-Id: I74b7c4286c0c2f44fabc337d5fb744560f71cf71

11 years ago(bug 35031) Change decimal separators for numbers in Kurdish
Federico Leva [Tue, 20 Nov 2012 21:48:17 +0000 (22:48 +0100)]
(bug 35031) Change decimal separators for numbers in Kurdish

Change-Id: I464eb3b3ae5f6b0b8e49a353070db10ad2eea5b1

11 years ago(bug 34977) Change Spanish formatnum behavior
Federico Leva [Tue, 20 Nov 2012 21:56:56 +0000 (22:56 +0100)]
(bug 34977) Change Spanish formatnum behavior

Use non-breaking spaces as thousands separator.
Used the same $separatorTransformTable as in fr, it etc.
The format is the correct one according to official
standards and it's also currently in use "in the wild",
e.g. on Spanish Wikipedia, according to guidelines.

Change-Id: I1c9dfe1f02d907183fb671b7382f2eb706e57bab

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 21 Nov 2012 22:16:38 +0000 (22:16 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I5aa36c8f947fb85f43afd288efb63f51cdc35659

11 years agoAdditional tests to keep Parsoid in line (regressions + accuracy)
Subramanya Sastry [Wed, 21 Nov 2012 21:33:17 +0000 (15:33 -0600)]
Additional tests to keep Parsoid in line (regressions + accuracy)

* Added a td-cell wikitext syntax variant to spec PHP parser
  behavior.
* Added an image parsing test to prevent rt regressions.

Change-Id: I414d0f7368f520df4e02f310d6c82037d3c96d45

11 years agoMerge "Test handling HTML tag like structures"
Subramanya Sastry [Wed, 21 Nov 2012 21:17:54 +0000 (21:17 +0000)]
Merge "Test handling HTML tag like structures"

11 years agoTest handling HTML tag like structures
Gabriel Wicke [Wed, 21 Nov 2012 21:06:52 +0000 (13:06 -0800)]
Test handling HTML tag like structures

* Add a (disabled for the PHP parser) test for bug 40670. Passing in Parsoid.
* Add another test for html-like text.

Change-Id: I2026fb09a5e32062cec0b7f0d45dc6643d4885a9

11 years agoMerge "Release notes: Full stops and grammar."
IAlex [Wed, 21 Nov 2012 19:44:49 +0000 (19:44 +0000)]
Merge "Release notes: Full stops and grammar."

11 years ago[FileBackend] More stat caching improvements.
Aaron Schulz [Fri, 16 Nov 2012 23:25:50 +0000 (15:25 -0800)]
[FileBackend] More stat caching improvements.

* Extended negative caching to handle the "latest" parameter.
* Added a new "dstExists" parameter to some write functions to avoid
  salting the cache when a file is created at an unused path. The ability
  to do this was already mentioned in the setFileCache() doc comments.

Change-Id: Ib64e4c128e16f4d284033fff70b88686fa0593ab

11 years agoMerge "Add $wgAuth->updateExternalDB calls back into core"
Demon [Wed, 21 Nov 2012 18:34:11 +0000 (18:34 +0000)]
Merge "Add $wgAuth->updateExternalDB calls back into core"

11 years agoRelease notes: Full stops and grammar.
Timo Tijhof [Wed, 21 Nov 2012 18:30:52 +0000 (19:30 +0100)]
Release notes: Full stops and grammar.

* Follows-up I2496415f.

Change-Id: I0a9d1f3383f1d4e7b8101673edef1e26835dd21a

11 years agoMerge "(bug 30040) Update autonym for nds-nl"
SPQRobin [Wed, 21 Nov 2012 16:11:56 +0000 (16:11 +0000)]
Merge "(bug 30040) Update autonym for nds-nl"

11 years agoMerge "Follow-up I087c2729 (750936f): factorise common code"
Nikerabbit [Wed, 21 Nov 2012 15:04:13 +0000 (15:04 +0000)]
Merge "Follow-up I087c2729 (750936f): factorise common code"

11 years agoMerge "Correct documentation for "maxlag" API parameter"
IAlex [Wed, 21 Nov 2012 14:33:21 +0000 (14:33 +0000)]
Merge "Correct documentation for "maxlag" API parameter"

11 years ago(bug 30040) Update autonym for nds-nl
Federico Leva [Wed, 21 Nov 2012 14:27:48 +0000 (15:27 +0100)]
(bug 30040) Update autonym for nds-nl

Release note for I8b7f70856ab0c12026503a0b416836e3a4025799

Change-Id: I2496415f9a2f993fde634d71fa66f3d74d7bbbcf

11 years agoFollow-up I087c2729 (750936f): factorise common code
Alexandre Emsenhuber [Wed, 21 Nov 2012 14:26:15 +0000 (15:26 +0100)]
Follow-up I087c2729 (750936f): factorise common code

Change-Id: I6d06ee4df857a90517bf0d4b3a40cd7ba9842968

11 years agoMerge "[FileBackend] Added optional callback parameter to concatenate()."
Demon [Wed, 21 Nov 2012 13:01:49 +0000 (13:01 +0000)]
Merge "[FileBackend] Added optional callback parameter to concatenate()."

11 years agoMerge "(bug 30040) Update autonym for nds-nl"
SPQRobin [Wed, 21 Nov 2012 12:50:09 +0000 (12:50 +0000)]
Merge "(bug 30040) Update autonym for nds-nl"

11 years ago(bug 30040) Update autonym for nds-nl
Federico Leva [Wed, 21 Nov 2012 12:38:41 +0000 (13:38 +0100)]
(bug 30040) Update autonym for nds-nl

That's what ndl-nl.wikipedia uses now, for sure.

Change-Id: I8b7f70856ab0c12026503a0b416836e3a4025799

11 years ago[FileBackend] Added back ability to delete file HTTP headers.
Aaron Schulz [Wed, 21 Nov 2012 04:58:47 +0000 (20:58 -0800)]
[FileBackend] Added back ability to delete file HTTP headers.

* This partially reverts b80bd6159bdf946c1d4fa1e143fea221937d848a.
* Clarified 'headers' parameter documentation a bit.
* Added the "describe" function wrappers that the other ops have.

Change-Id: I7142fd4d973f5f3407d244a4cae793934083bc26

11 years agoMerge "(bug 42215) "Welcome, X" as account creation title"
Ori.livneh [Wed, 21 Nov 2012 04:15:32 +0000 (04:15 +0000)]
Merge "(bug 42215) "Welcome, X" as account creation title"

11 years agoFixed metadata-loss bug from b80bd6159bdf946c1d4fa1e143fea221937d848a.
Aaron Schulz [Wed, 21 Nov 2012 02:16:15 +0000 (18:16 -0800)]
Fixed metadata-loss bug from b80bd6159bdf946c1d4fa1e143fea221937d848a.

* Contrary to Swift docs, doing a POST seems to kill all the old metadata
  headers. I noticed this in testing due to addMissingMetadata() notices.

Change-Id: I988d7a8d38569823c9d66605b02705ee15a8bbe7

11 years agoAdd $wgAuth->updateExternalDB calls back into core
Ryan Lane [Wed, 21 Nov 2012 01:39:19 +0000 (17:39 -0800)]
Add $wgAuth->updateExternalDB calls back into core

Some time, long, long ago, in a MediaWiki much, much saner
the preferences form told wgAuth to update the external database.
That code disappeared at some point. This commit adds it back.

Change-Id: I91df44c8a8b38119c33d4a69b8c7e3c180e5c773

11 years agoTest wiki link to title with question mark
Gabriel Wicke [Wed, 21 Nov 2012 01:36:33 +0000 (17:36 -0800)]
Test wiki link to title with question mark

Percent-encode the question mark so that it is not treated as a query string
separator.

Change-Id: I8b3402df96fb783954cf6d7cd0fdffcf104bbe99

11 years agoMerge "Various simple optimizations for the chunked upload process."
Aaron Schulz [Wed, 21 Nov 2012 00:19:24 +0000 (00:19 +0000)]
Merge "Various simple optimizations for the chunked upload process."

11 years ago[FileBackend] Added support for changing headers on existing objects.
Jan Gerber [Wed, 24 Oct 2012 08:18:29 +0000 (08:18 +0000)]
[FileBackend] Added support for changing headers on existing objects.

* Added a 'describe' file operation type to doOperations()/doQuickOperations().
  This can be used by scripts to fill in headers like X-Content-Duration for
  files that already exists.
* Removed wrong comments about removing headers (they don't get removed with null).
* Added some quick unit tests.

Change-Id: I43c5907b59421beaa9487eefac0cdbf8bc6c6d85

11 years agoMerge "[FileBackend] Clear the stat cache in doQuickOperations() for sanity."
Tim Starling [Tue, 20 Nov 2012 22:49:16 +0000 (22:49 +0000)]
Merge "[FileBackend] Clear the stat cache in doQuickOperations() for sanity."

11 years agoFixed doc comment grammar.
Aaron Schulz [Tue, 20 Nov 2012 22:42:46 +0000 (14:42 -0800)]
Fixed doc comment grammar.

Change-Id: I4477794fc382b3575cad5f344d909ec9ba1f0991

11 years ago[FileRepo] Quashed melodious 4-tuples into silence.
Aaron Schulz [Tue, 20 Nov 2012 22:37:58 +0000 (14:37 -0800)]
[FileRepo] Quashed melodious 4-tuples into silence.

Change-Id: I55c6ddd5d2e8999578ca45f523e99ab6cd4e9d52

11 years ago[FileRepo] [FileBackend] Added support for custom file headers.
Aaron Schulz [Tue, 20 Nov 2012 01:38:17 +0000 (17:38 -0800)]
[FileRepo] [FileBackend] Added support for custom file headers.

* For backends that support it, custom HTTP headers can be set on files.
* Added a getStreamHeaders() function to MediaHandler to let subclasses
  recommend header name/value pairs to be used for responses to GET/HEAD
  requests. For example, an OGG handler could set "X-Content-Duration".
* Made LocalFile use this function to set HTTP headers of new uploads.

Change-Id: I1b017e1342513f0097fe6d142aae18e819403293

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 20 Nov 2012 20:44:49 +0000 (20:44 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Idf7d9fa911d3354237775c6a3536196152b3f6f0

11 years agoMerge "Always return something nice in Language::translateBlockExpiry()"
Nikerabbit [Tue, 20 Nov 2012 17:22:23 +0000 (17:22 +0000)]
Merge "Always return something nice in Language::translateBlockExpiry()"

11 years agoTest un-closed noinclude, onlyinclude and includeonly tags
Gabriel Wicke [Tue, 20 Nov 2012 16:55:00 +0000 (08:55 -0800)]
Test un-closed noinclude, onlyinclude and includeonly tags

Change-Id: I328d1e2f5c1362caa0cb32efcd7b81dab7bab8c5

11 years agoAlways return something nice in Language::translateBlockExpiry()
Liangent [Tue, 20 Nov 2012 12:13:37 +0000 (20:13 +0800)]
Always return something nice in Language::translateBlockExpiry()

Change-Id: I30a1950df5ae018cb9124392dc8d6e99ca3b98b8

11 years agoMerge "(bug 36053) Login returnto doesn't work if title isn't in the URI"
Anomie [Tue, 20 Nov 2012 13:46:18 +0000 (13:46 +0000)]
Merge "(bug 36053) Login returnto doesn't work if title isn't in the URI"

11 years ago(bug 36053) Login returnto doesn't work if title isn't in the URI
Marius Hoch [Tue, 23 Oct 2012 23:18:08 +0000 (01:18 +0200)]
(bug 36053) Login returnto doesn't work if title isn't in the URI

Returnto after login didn't work if title wasn't given as URI
parameter. I'm using $this->getTitle() to find it out, in case
the user got read rights (per code comment above my change).

Change-Id: I14d92581ce790355404d3c184fa6542a24f7a130

11 years agoMerge "(bug 40632) Remove CleanupPresentationalAttributes feature"
Anomie [Tue, 20 Nov 2012 13:30:53 +0000 (13:30 +0000)]
Merge "(bug 40632) Remove CleanupPresentationalAttributes feature"

11 years agoTest non-ASCII / URL pseudo-tags
Gabriel Wicke [Tue, 20 Nov 2012 00:56:59 +0000 (16:56 -0800)]
Test non-ASCII / URL pseudo-tags

Make sure these are rendered and round-tripped properly.

* Tags with names outside [a-zA-Z][a-zA-Z0-9]* are rendered as plain text
* Angle brackets around URLs render as angle brackets around URL links

Change-Id: I7f0653cbbbb6ccb9a9aa0ecfa29a0c2e78091343

11 years agoJavaScriptContentHandler: Fix typo in comment block (actual: 'CSS'; intended: 'JS')
Ori Livneh [Mon, 19 Nov 2012 23:33:21 +0000 (15:33 -0800)]
JavaScriptContentHandler: Fix typo in comment block (actual: 'CSS'; intended: 'JS')

Change-Id: Iaef21f0c864222aee7c970012e8163741d6310ca

11 years agoCorrect documentation for "maxlag" API parameter
Kevin Israel [Mon, 19 Nov 2012 22:46:13 +0000 (17:46 -0500)]
Correct documentation for "maxlag" API parameter

Replication lag above the number of seconds specified in the "maxlag"
parameter causes index.php to send HTTP status code 503, yet that is
not the case for the API. See bug 31156.

Change-Id: I3847629d3a34633d8e319a055a1e3252bd4ec638

11 years ago(bug 40632) Remove CleanupPresentationalAttributes feature
Timo Tijhof [Thu, 1 Nov 2012 18:08:54 +0000 (19:08 +0100)]
(bug 40632) Remove CleanupPresentationalAttributes feature

Removed $wgCleanupPresentationalAttributes, the associated
code it toggles and references to those in src and tests.

Also fixes bug 40329.

This was originally introduced in r94465 (released in REL1_19) but
disabled by default. Then enabled in r98053, after which several
bugs were filed and eventually the decision was made to remove
this feature.

Removed obsolete release-note entry, as this is to be backported
to REL1_20.

Change-Id: I4e86305520a3b22ef88381caab55d24abac932e3

11 years agoMerge "Fix PHP notice in Category.php"
Aaron Schulz [Mon, 19 Nov 2012 20:49:25 +0000 (20:49 +0000)]
Merge "Fix PHP notice in Category.php"

11 years agoMerge "Follow-up I214a988e (42a8daa): move documentation to the correct block"
Hashar [Mon, 19 Nov 2012 20:46:22 +0000 (20:46 +0000)]
Merge "Follow-up I214a988e (42a8daa): move documentation to the correct block"

11 years agoFix PHP notice in Category.php
Vitaliy Filippov [Mon, 19 Nov 2012 20:28:46 +0000 (00:28 +0400)]
Fix PHP notice in Category.php

Change-Id: I52838a1125298da330f60ef1e761130ff0e4faba

11 years agoFollow-up I214a988e (42a8daa): move documentation to the correct block
Alexandre Emsenhuber [Mon, 19 Nov 2012 20:26:53 +0000 (21:26 +0100)]
Follow-up I214a988e (42a8daa): move documentation to the correct block

These lines belongs to the whole file, not only to that class.

Change-Id: Ib61eae1e8f7d50d29a929c6034ede08a851105c9

11 years agoMerge "(bug 26280) all files should have GPL header"
IAlex [Mon, 19 Nov 2012 20:24:34 +0000 (20:24 +0000)]
Merge "(bug 26280) all files should have GPL header"

11 years agoMerge "profileinfo links now have anchors"
IAlex [Mon, 19 Nov 2012 20:19:28 +0000 (20:19 +0000)]
Merge "profileinfo links now have anchors"

11 years agoMerge "profileinfo now has lower lines heights"
IAlex [Mon, 19 Nov 2012 20:16:54 +0000 (20:16 +0000)]
Merge "profileinfo now has lower lines heights"

11 years agoMerge "Localisation updates from http://translatewiki.net."
IAlex [Mon, 19 Nov 2012 20:11:57 +0000 (20:11 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 19 Nov 2012 20:00:27 +0000 (20:00 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I9083fea439c7bf545a7d2971d204513fab51c04c

11 years agoMerge "Lint: Pass jquery.tablesorter."
Hashar [Mon, 19 Nov 2012 19:56:36 +0000 (19:56 +0000)]
Merge "Lint: Pass jquery.tablesorter."

11 years agoLint: Pass jquery.tablesorter.
Timo Tijhof [Mon, 19 Nov 2012 18:50:15 +0000 (19:50 +0100)]
Lint: Pass jquery.tablesorter.

Added tolerance for "onevar" (hard to dissect, many out-of-scope
usage, probably better to be done by someone who knows this code
better).

Errors:
* Strings must use singlequote
* '$cell' is defined but never used.
* 's' is defined but never used.
* Unnecessary semicolon.
* '$document' is defined but never used.
* 'sortOrder' is defined but never used.
* 'shiftDown' is defined but never used.
* 'table' is defined but never used.
* 'table' is defined but never used.

Change-Id: I2e0abc41a79922a1810519705237ae3bd60ed679

11 years agoLint: Pass mediawiki.language.
Timo Tijhof [Mon, 19 Nov 2012 18:33:31 +0000 (19:33 +0100)]
Lint: Pass mediawiki.language.

Maybe they'll get closures soon, but for now just fix the
warnings so we can get on with enforcing jshint from jenkins like
we do phplint/puppetlint.

Added tolerance for "onecase" and disabled "noempty" in a few
files. Keeps these files easier to update. Though they should be
restructured, I'm not going to do that now.

Change-Id: Ie3535f22fc88ea5272d7387cef870c8c042a9393

11 years agoMerge "Add release note for Ieec65c90"
Reedy [Mon, 19 Nov 2012 18:10:52 +0000 (18:10 +0000)]
Merge "Add release note for Ieec65c90"

11 years agoAdd release note for Ieec65c90
Brad Jorsch [Mon, 19 Nov 2012 18:06:54 +0000 (13:06 -0500)]
Add release note for Ieec65c90

Gerrit change Ieec65c90 did not update RELEASE-NOTES-1.21.

Change-Id: I4820060b8459682ed28c05c2b69a89321b01183e

11 years agoCleanup: Fix yoda and indentation in SpecialUserlogin.php
Timo Tijhof [Mon, 19 Nov 2012 16:33:31 +0000 (17:33 +0100)]
Cleanup: Fix yoda and indentation in SpecialUserlogin.php

Change-Id: I0bde21a8da679350559779132dbd7b1ba85116d1

11 years agoprofileinfo links now have anchors
Antoine Musso [Mon, 19 Nov 2012 14:34:34 +0000 (15:34 +0100)]
profileinfo links now have anchors

Whenever expanding a section in profileinfo, the browser would sent us
to the top again which would force us to browse down to where we were.
Adding basic anchors send the user directly where he was browsing.

Note that HTML5 let you specify anything as an id as long as there is at
least one character.

Change-Id: I5b55297ce25d5c07b29610798fb39eae16d27f6a

11 years agoprofileinfo now has lower lines heights
Antoine Musso [Mon, 19 Nov 2012 14:31:15 +0000 (15:31 +0100)]
profileinfo now has lower lines heights

The 8px padding was a bit too tall, "reduced" that to 0.1em which is
good enough. I have also dropped the line-height which does not have any
purpose when you already apply a padding.

Change-Id: I271eb932e4c70f940ebe3da39731f09c998610bc

11 years agoMerge "add SpecialUndeleteLogEntry hook"
Daniel Kinzler [Mon, 19 Nov 2012 13:17:31 +0000 (13:17 +0000)]
Merge "add SpecialUndeleteLogEntry hook"

11 years agoMerge "Log profiling data when tests have finished."
Hashar [Mon, 19 Nov 2012 13:12:16 +0000 (13:12 +0000)]
Merge "Log profiling data when tests have finished."

11 years agoMerge "Clean up database cloning for tests."
Hashar [Mon, 19 Nov 2012 13:04:40 +0000 (13:04 +0000)]
Merge "Clean up database cloning for tests."

11 years agoupdate.php now create profiling table when needed
aude [Sun, 7 Oct 2012 12:15:57 +0000 (12:15 +0000)]
update.php now create profiling table when needed

When enabling $wgProfileToDatabase, one would have to manually apply a
patch to the database that would add the `profiling` table. This patch
let update.php creates the table whenever $wgProfileToDatabase is true.

This also provide a SQL patch for SQLite backend and update
profileinfo.php to give some clue about enabling the global and running
update.php

Change-Id: If68a25f7ec2b0fbb61f82a318427abe58a89dae7

11 years ago(bug 42215) "Welcome, X" as account creation title
S Page [Mon, 19 Nov 2012 10:37:50 +0000 (02:37 -0800)]
(bug 42215) "Welcome, X" as account creation title

Use "Welcome, <user>" as title on successful account creation.
Create separate displaySuccessfulAccountCreation() function that
uses new welcomeuser and welcomecreation-agora messages split from
existing welcomecreation message.

Change-Id: I087c272952e5b2a271411764d368f723719cd0e3

11 years agoadd SpecialUndeleteLogEntry hook
aude [Fri, 16 Nov 2012 17:10:53 +0000 (17:10 +0000)]
add SpecialUndeleteLogEntry hook

- allows extensions to perform some action at time that a undeletion log entry is performed,
or skip the insertion of a log entry.

Change-Id: I5b0caaddfe5d7262612a60946d9f5c4af2679141

11 years agoFix typo (manuall -> manually)
Ori Livneh [Mon, 19 Nov 2012 10:18:13 +0000 (02:18 -0800)]
Fix typo (manuall -> manually)

Change-Id: Ia6101ea84faf9a4420afe9568b5e3904fffa61b1

11 years agoMerge "Use wfBCP47() to format language code for IE in Accept-Language."
IAlex [Mon, 19 Nov 2012 08:51:02 +0000 (08:51 +0000)]
Merge "Use wfBCP47() to format language code for IE in Accept-Language."

11 years ago(bug 39067) Add support for HTML5 <mark> element.
Daniel Friesen [Mon, 6 Aug 2012 10:02:49 +0000 (03:02 -0700)]
(bug 39067) Add support for HTML5 <mark> element.

* whitelist <mark> in tidy and sanitizer
* provides a default styling for mark elements

Change-Id: I23fc2fc558ff0590be04771ef1e75fcfdf240aac

11 years agosupport for HTML5/Microdata elements
Daniel Friesen [Wed, 4 Apr 2012 06:54:39 +0000 (23:54 -0700)]
support for HTML5/Microdata elements

Patch let us handle the <data>, <time>, <meta>, and <link> elements.

* handles one part of bug 32545 requesting us to support the <time>
  element in WikiText.
* Partially fix bug 28776 about whitelisting global HTML5 semantic
  attributes and inline meta element.
* <meta> and <link> are only permitted when Microdata is enabled using
* the global $wgAllowMicrodataAttributes. For for security reason, the
  links are only allowed to be actual elements when they have a
  strict set of attributes set.

Change-Id: Ica11be186bd62eb154e1ebc400acb515c10fb65f

11 years agoTest horizontal rulers followed by content on same line
Gabriel Wicke [Mon, 19 Nov 2012 00:56:27 +0000 (16:56 -0800)]
Test horizontal rulers followed by content on same line

Change-Id: I165975fe5faf0205f8f94ab9f55f083b7d48dcaa

11 years ago[FileBackend] Added optional callback parameter to concatenate().
Aaron Schulz [Sun, 18 Nov 2012 22:02:45 +0000 (14:02 -0800)]
[FileBackend] Added optional callback parameter to concatenate().

* This lets callers update the cache/db with the operation progress so that
  APIs can be made to use this and expose this information to client polling.

Change-Id: I9a86c1c5ffccf029be5a150e5998c3ce4740ec62

11 years agoMerge "(bug 26617) clean up usages of list-style in Vector&Monobook CSS"
Ori.livneh [Sun, 18 Nov 2012 21:50:42 +0000 (21:50 +0000)]
Merge "(bug 26617) clean up usages of list-style in Vector&Monobook CSS"

11 years ago(bug 26617) clean up usages of list-style in Vector&Monobook CSS
MatmaRex [Sat, 17 Nov 2012 17:54:51 +0000 (18:54 +0100)]
(bug 26617) clean up usages of list-style in Vector&Monobook CSS

* remove list-style-*: none from non-list elements
* remove duplicate declarations
* always use list-style-type:none; list-style-image:none; instead of
  list-style:none to work around an IE bug
* set list-style-type to square for Monobook and to disc for Vector
  to resemble the icons used

Change-Id: I0d10acc9f07f1bf4239c70b476baea9a0ae40391

11 years agoVarious simple optimizations for the chunked upload process.
Aaron Schulz [Sun, 18 Nov 2012 10:32:50 +0000 (02:32 -0800)]
Various simple optimizations for the chunked upload process.

* This adds an UnregisteredLocalFile::setLocalReference()
  function, which is used to avoid an extra GET request.
* This removes the useless rename() in stashFile(). We just
  need to make sure the stashed file has the right extension.
  Getting rid of the rename makes setLocalReference() usable.
* Also adds some debug logging with ellapsed time.

Change-Id: I087701ad0c27a4eba74591e6b49f5667b011424c

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 18 Nov 2012 20:22:25 +0000 (20:22 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Idddaf093a4bc45e3cb634176f83a40ae1f047a4e

11 years ago(bug 26280) all files should have GPL header
Antoine Musso [Sun, 18 Nov 2012 14:34:00 +0000 (15:34 +0100)]
(bug 26280) all files should have GPL header

MediaWiki is licensed under GPL so we should really add the header to
our PHP code unless reusing code licensed differently.

Tested using:
  ack-grep --php -L 'This program is free software' \
    includes/ maintenance/ mw-config/ resources/ skins/

Output the following files:
 includes/ExternalEdit.php (public domain)

Various other licenses:
 includes/json/Services_JSON.php
 includes/libs/CSSMin.php
 includes/libs/IEContentAnalyzer.php
 includes/libs/JavaScriptMinifier.php
 includes/libs/jsminplus.php
 includes/normal/Utf8Case.php
 includes/objectcache/MemcachedClient.php

File autogenerated from a GPL file and Unicode data:
 includes/ZhConversion.php

A few lines coming from stack overflow:
 maintenance/mwdoc-filter.php

Message files do not have any license :-/

Change-Id: I214a988edfa9e2dfcc762612a0f7d47eee8bcb74

11 years agoMerge "updater now shows the SQLite file being used"
MaxSem [Sun, 18 Nov 2012 13:02:09 +0000 (13:02 +0000)]
Merge "updater now shows the SQLite file being used"

11 years agoMerge "Replace deprecated HTML attributes"
IAlex [Sun, 18 Nov 2012 07:04:14 +0000 (07:04 +0000)]
Merge "Replace deprecated HTML attributes"

11 years agoMerge "Undefined offset in ApiQueryLogEvents"
IAlex [Sun, 18 Nov 2012 06:54:53 +0000 (06:54 +0000)]
Merge "Undefined offset in ApiQueryLogEvents"

11 years agoReplace deprecated HTML attributes
robin [Sun, 18 Nov 2012 02:52:39 +0000 (03:52 +0100)]
Replace deprecated HTML attributes

Replace deprecated bgcolor="" with style="background-color:;", and remove deprecated cellpadding and cellspacing (which is not needed since the wikitable class is used).

Change-Id: I0f332fb520ea88e3d3f1abce3c423f95a5c224c8

11 years agoMerge "Set correct language for page content in action=historysubmit&revisiondelete=1"
SPQRobin [Sat, 17 Nov 2012 22:26:17 +0000 (22:26 +0000)]
Merge "Set correct language for page content in action=historysubmit&revisiondelete=1"

11 years agoSet correct language for page content in action=historysubmit&revisiondelete=1
Liangent [Sat, 17 Nov 2012 18:32:57 +0000 (02:32 +0800)]
Set correct language for page content in action=historysubmit&revisiondelete=1

Change-Id: Iabfb9a58e023b56556100b340f8ebdb0bdc51d8f

11 years agoUndefined offset in ApiQueryLogEvents
umherirrender [Sat, 17 Nov 2012 21:02:07 +0000 (22:02 +0100)]
Undefined offset in ApiQueryLogEvents

Follow up Ie188bc6f: Necessary changes to api for rights log changes

Getting for new style logs:
Notice: Undefined offset: 1 in \includes\api\ApiQueryLogEvents.php on
line 245
Notice: Undefined offset: 0 in \includes\api\ApiQueryLogEvents.php on
line 245

Added a legacy part as seen by patrol and move for the rights log action

Change-Id: I1d0bdfb483dba30572e8dcf8faac331a77eb04c6

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 17 Nov 2012 20:30:29 +0000 (20:30 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ifa31cb11727543cf607fc06aea877dd4d11bc346

11 years agoUse wfBCP47() to format language code for IE in Accept-Language.
Liangent [Sat, 17 Nov 2012 20:00:12 +0000 (04:00 +0800)]
Use wfBCP47() to format language code for IE in Accept-Language.

It's reported that IE is actually sending language code in BCP 47
format (like zh-Hans), instead of uppercasing the whole 2nd part.

Change-Id: I6761191f299373d9267660a7eb14dc0b34cd5a38

11 years ago[FileBackend] Clear the stat cache in doQuickOperations() for sanity.
Aaron Schulz [Sat, 17 Nov 2012 18:47:49 +0000 (10:47 -0800)]
[FileBackend] Clear the stat cache in doQuickOperations() for sanity.

Change-Id: Id3fcc9b0bbb881947734edaa6799d71d9adb9881

11 years ago(bug 457) use semantic headings for the navigation menu
MatmaRex [Sat, 27 Oct 2012 18:34:15 +0000 (20:34 +0200)]
(bug 457) use semantic headings for the navigation menu

This changes the current scheme of using (varies per skin) <h4>, <h5>
and/or <h6> tags (with nothing apart from the main <h1> above them in
the hierarchy) to <h2> above the entire navigation and <h3>s as portlet
headings.

The <h2> is hidden for normal browsers, but accessible for screen-readers
or text browsers. Its content comes from a new message called
"navigation-heading".

The changes were applied to Vector, Monobook, Modern and CologneBlue. The
change to Monobook also resulted in the heading appearing in Chick and
MySkin (I intentionally didn't implement hiding it in these skins, as they
are intended respectively as a super-lightweight one and a skim "template")
and in Simple (where I did hide it, but didn't bother with further CSS fixups).

Related changes and technical notes:
* Monobook had various styles for apparently all heading levels inside of a
  .portlet, but only <h5>s (now <h3>s) could ever be generated.
  The styles were also ancient, straight from 2004 (I git-blamed),
  so I removed them, as they were almost certainly completely unused.
* Modern lacked font-size for .portlet h5 (now h3). It worked mostly okay
  before (font-size of h5 is similar to size of regular text), but after
  headings were changed to <h3>s, they became too large. I used
  font-size:0.83em (copied from Opera's user-agent stylesheet), but this
  might result in slight font-size changes on various browsers.
* Vector's variant menu is deeply broken. I changed the bonkers structure
  to two <h3>s, one with id=mw-vector-current-variant. This is still
  broken, but I don't really know how to do it properly.
* In Vector's CSS, the height for div.vectorMenu h3 a (previously h5 a)
  had to be changed. I used 1.9em, the same as used for div.vectorTabs li a,
  but this probably shouldn't be measured in ems anyway.
* CologneBlue and Vector lacked wrappers over the entire navigation;
  I added <div id="mw-navigation"> to both of them. In CologneBlue this
  also required moving <div id="toplinks"> to the bottom of the generated
  HTML, which is a good idea anyway.

Change-Id: I9a2ebd503ec9dd901802a9b3b1f5137a85990373

11 years agoRecentChangeTest now uses 'colon-separator' msg
Alexandre Emsenhuber [Tue, 6 Nov 2012 11:11:24 +0000 (12:11 +0100)]
RecentChangeTest now uses 'colon-separator' msg

LogFormatter uses "colon-separator" message instead of an hardcoded
string. Since the RecentChangeTest use hardcoded colon, tests would
break whenever the message in the site language is not exactly the same
as the english version.

Change-Id: I6360584caff53fda0b2688964ae614bc9fdcc97e

11 years ago(bug 35204) set wgLanguageCode in unit tests
Alexandre Emsenhuber [Mon, 5 Nov 2012 10:10:42 +0000 (11:10 +0100)]
(bug 35204) set wgLanguageCode in unit tests

Setting $wgContLang without changing $wgLanguageCode accordingly is a
very bad idea.

This caused about 20 exceptions when using LanguageCode set to 'fr'
on my installation:

"MWException: Error in MediaWikiLangTestCase::setUp(): $wgLanguageCode
('fr') is different from $wgContLang->getCode() (en)"

Follow-up of I2987db68 (2b0edc8).

Change-Id: I56d3f1bfc78d6a2e40460533524e82f360490206

11 years agoMerge "Delete more thumbnails after (new) parser tests."
IAlex [Sat, 17 Nov 2012 07:18:17 +0000 (07:18 +0000)]
Merge "Delete more thumbnails after (new) parser tests."

11 years agoMerge "Output special page name before attempting to run function"
IAlex [Sat, 17 Nov 2012 07:09:20 +0000 (07:09 +0000)]
Merge "Output special page name before attempting to run function"

11 years agoFix typo (cointent => content)
Ori Livneh [Sat, 17 Nov 2012 05:19:48 +0000 (21:19 -0800)]
Fix typo (cointent => content)

Change-Id: I4d6702d0b2a6c4fe224a8c59808a579b6c6916a0

11 years agoMerge "Update jQuery to 1.8.3"
Krinkle [Sat, 17 Nov 2012 04:30:46 +0000 (04:30 +0000)]
Merge "Update jQuery to 1.8.3"

11 years agoUpdate jQuery to 1.8.3
Reedy [Sat, 17 Nov 2012 00:50:03 +0000 (00:50 +0000)]
Update jQuery to 1.8.3

http://blog.jquery.com/2012/11/13/jquery-1-8-3-released/

Change-Id: I0bda71044ff6ea41e946d34e48fa279101f4bf90

11 years agoAdditional tests to spec behavior of wikitext in extlink-brackets.
Subramanya Sastry [Sat, 17 Nov 2012 00:57:31 +0000 (18:57 -0600)]
Additional tests to spec behavior of wikitext in extlink-brackets.

* Mostly to keep Parsoid in line.

Change-Id: I1629b156f66cb3f1b511fbe26feb1bee1e1e0e59

11 years agoOutput special page name before attempting to run function
Reedy [Fri, 16 Nov 2012 23:20:58 +0000 (23:20 +0000)]
Output special page name before attempting to run function

Related to bug 42210, we don't have a blank line, not knowing what it's actually running

QueryPage updates do this already!

Change-Id: I18eb0fb4c316744d92a81f5e64e201508b27eb27

11 years agoDelete more thumbnails after (new) parser tests.
umherirrender [Fri, 16 Nov 2012 22:28:39 +0000 (23:28 +0100)]
Delete more thumbnails after (new) parser tests.

Same as I0a0e757a only for the new parser tests (under phpunit)

Change-Id: If2198676da7e8a621d02227b42da0713f67a1de0