lhc/web/wiklou.git
10 years agoImprove OutputPage::showErrorPage method documentation
Dereckson [Wed, 29 Jan 2014 15:30:40 +0000 (16:30 +0100)]
Improve OutputPage::showErrorPage method documentation

- Added the most usual case of call
- Fixed the incoherence between -Object and -Obj

Change-Id: I81207f4ef46a43529974e3ada194f2948a1e9017

10 years agoMerge "Removed "Justify paragraphs" from MW user Preference."
jenkins-bot [Wed, 29 Jan 2014 05:13:27 +0000 (05:13 +0000)]
Merge "Removed "Justify paragraphs" from MW user Preference."

10 years agoMerge "Made Special:Contributions includable"
jenkins-bot [Wed, 29 Jan 2014 02:51:22 +0000 (02:51 +0000)]
Merge "Made Special:Contributions includable"

10 years agoMade Special:Contributions includable
aalekhN [Wed, 8 Jan 2014 20:05:00 +0000 (01:35 +0530)]
Made Special:Contributions includable

This commit make Special:Contributions transcludable by changing
extended class SpecialPage to IncludableSpecialPage also it adds if
condition in execute function to avoid the inclusion of form when
Special:Contributions is transcluded into other appropriate MediaWiki pages.

Bug: 4365
Change-Id: I25c5cc3775b91fdc17c1209953d425c640e5bc77

10 years agoMerge "Add oldRev parameter to DiffRevisionTools hook"
jenkins-bot [Wed, 29 Jan 2014 01:44:01 +0000 (01:44 +0000)]
Merge "Add oldRev parameter to DiffRevisionTools hook"

10 years agoAdd oldRev parameter to DiffRevisionTools hook
Jackmcbarn [Fri, 3 Jan 2014 21:11:48 +0000 (16:11 -0500)]
Add oldRev parameter to DiffRevisionTools hook

Add a third parameter to the DiffRevisionTools hook, containing the old
revision.

Bug: 57721
Change-Id: I6ee956c5b9901033f618d7e4d09f8f416f3d72cb

10 years agoMerge "Propagate the favicon information to getInfo() for local repos"
jenkins-bot [Wed, 29 Jan 2014 00:19:27 +0000 (00:19 +0000)]
Merge "Propagate the favicon information to getInfo() for local repos"

10 years agoMerge "Split Title and User ArrayFromResult classes to own files"
jenkins-bot [Tue, 28 Jan 2014 23:50:33 +0000 (23:50 +0000)]
Merge "Split Title and User ArrayFromResult classes to own files"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 28 Jan 2014 21:09:31 +0000 (21:09 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Icb726976f02aaed49f1b1e83a429c6a05c8ae103

10 years agoUse PHPUnit filter/whitelist to select the files that need testing.
Jan Zerebecki [Fri, 18 Oct 2013 19:03:12 +0000 (21:03 +0200)]
Use PHPUnit filter/whitelist to select the files that need testing.

This has the effect of excluding the tests themselves from the code coverage
and including files that no test loads.

Change-Id: I65674ca3569d1ae6484b6769366213d71c0bdbc4

10 years agoMerge "(bug 47070) check content model namespace on import."
jenkins-bot [Tue, 28 Jan 2014 20:56:02 +0000 (20:56 +0000)]
Merge "(bug 47070) check content model namespace on import."

10 years agoMerge "Remove math specific code from ParserOptions"
jenkins-bot [Tue, 28 Jan 2014 20:46:59 +0000 (20:46 +0000)]
Merge "Remove math specific code from ParserOptions"

10 years agoMerge "Removed version check for mysql 4.1.0 from SqlBahOStuff::createTables"
jenkins-bot [Tue, 28 Jan 2014 19:17:59 +0000 (19:17 +0000)]
Merge "Removed version check for mysql 4.1.0 from SqlBahOStuff::createTables"

10 years agoMerge "Removed unused postConnectionBackoff() from LoadMonitor"
jenkins-bot [Tue, 28 Jan 2014 19:15:13 +0000 (19:15 +0000)]
Merge "Removed unused postConnectionBackoff() from LoadMonitor"

10 years agoRemoved unused postConnectionBackoff() from LoadMonitor
Aaron Schulz [Fri, 3 Jan 2014 04:43:29 +0000 (20:43 -0800)]
Removed unused postConnectionBackoff() from LoadMonitor

* This setting proved to be not terrible useful

Change-Id: I58b18947ff0edb8937229d0f130d7d10e846125e

10 years agoMerge "Remove setting referrer from HttpFunctions"
jenkins-bot [Tue, 28 Jan 2014 18:52:05 +0000 (18:52 +0000)]
Merge "Remove setting referrer from HttpFunctions"

10 years agoMerge "Avoid variable naming conflicts in DatabasePostgres::selectSQLText"
jenkins-bot [Tue, 28 Jan 2014 17:45:19 +0000 (17:45 +0000)]
Merge "Avoid variable naming conflicts in DatabasePostgres::selectSQLText"

10 years agoMerge "Correct sequence name for fresh Postgres installation"
jenkins-bot [Tue, 28 Jan 2014 17:00:38 +0000 (17:00 +0000)]
Merge "Correct sequence name for fresh Postgres installation"

10 years agoAvoid variable naming conflicts in DatabasePostgres::selectSQLText
umherirrender [Tue, 28 Jan 2014 16:52:57 +0000 (17:52 +0100)]
Avoid variable naming conflicts in DatabasePostgres::selectSQLText

Spotted by gebhkla on bug 60531

Bug: 60531
Change-Id: Iaf100ea0db05b142549bd98da108e48eae8b9101

10 years agoIgnore certain tidy warnings in assertValidHtmlDocument
Marius Hoch [Thu, 23 Jan 2014 20:02:34 +0000 (21:02 +0100)]
Ignore certain tidy warnings in assertValidHtmlDocument

Those aren't really useful, especially as tidy often
cries about parameters missing which have been
deprecated since HTML 4, so that these warnings have
no value for us.

Change-Id: Ic27c597aa988079ed08e152861bf1dee9581b829

10 years agoRemoved version check for mysql 4.1.0 from SqlBahOStuff::createTables
tonythomas01 [Tue, 28 Jan 2014 09:56:11 +0000 (15:26 +0530)]
Removed version check for mysql 4.1.0 from SqlBahOStuff::createTables

Presently mysql v5.0.2 or later is supported.

Bug: 59125
Change-Id: I9043a6f792c6479a85411addbe9fd448ed5e02a6

10 years agoMerge "skin: Remove the id "anonlogin" and merge pt-anonlogin with pt-login"
jenkins-bot [Tue, 28 Jan 2014 06:32:23 +0000 (06:32 +0000)]
Merge "skin: Remove the id "anonlogin" and merge pt-anonlogin with pt-login"

10 years agoMerge "Config: Add Config and GlobalConfig classes"
jenkins-bot [Tue, 28 Jan 2014 05:15:26 +0000 (05:15 +0000)]
Merge "Config: Add Config and GlobalConfig classes"

10 years agoConfig: Add Config and GlobalConfig classes
Kunal Mehta [Fri, 24 Jan 2014 01:45:11 +0000 (17:45 -0800)]
Config: Add Config and GlobalConfig classes

Allows configuration options to be fetched from context.

Only one implementation, GlobalConfig, is provided, which
simply returns $GLOBALS[$name]. There can be more classes
in the future, possibly a database-based one. For convinience
the "wg" prefix is automatically added.

Ironically, this adds the $wgConfigClass global variable
which is used to determine which implementation of Config
to use by default.

The ContextSource getConfig and setConfig methods were introduced
in I23194d1ba (1.23), but have no uses in Gerrit, so they can safely
be re-purposed.

Change-Id: I13baec0b6d4ea7badf20b9c5f9b40846348838e4

10 years agoDon't include empty categories in Special:Mostlinkedcategories
Brian Wolff [Thu, 26 Dec 2013 22:47:01 +0000 (15:47 -0700)]
Don't include empty categories in Special:Mostlinkedcategories

We never delete things from the category table, so there are
entries in it with 0 members, which really shouldn't show up
on the special page.

Bug: 58967
Change-Id: I6bdf5a5196724f7970fb79497ef912cf8268ec3e

10 years agoskin: Remove the id "anonlogin" and merge pt-anonlogin with pt-login
Waldir Pimenta [Sat, 25 May 2013 12:25:31 +0000 (13:25 +0100)]
skin: Remove the id "anonlogin" and merge pt-anonlogin with pt-login

This was used as an alternative id for the login link in the
personal tools at the top right for ShowIPinHeader context.

This seems to have been inherited since the days of the
PHPTal-based skins (at least git-blame shows their presence back
in Brion's rewrite of the skin in november 2004).

I've asked several maintainers about this and nobody could figure
out why it would need a different id. After all, whenever the
user sees the login link it means they are using the wiki as an
anonymous user.

My best guess is that this was meant to allow the ability to
style the login differently when the (anonymous) user has
already made an edit (or if we init a session for other reasons).

This is also what toggles the anon userlinks are shown (i.e. the
links to the IP userpage and talkpage), but I see no evidence of
this, and in any case it would be better to change the class of
the whole personal tools div instead of changing the IDs.

Change-Id: Ib3445934853db5361c3c6fecfe75623b0b921400

10 years agoMerge "Release notes for I9359682c"
jenkins-bot [Tue, 28 Jan 2014 01:32:02 +0000 (01:32 +0000)]
Merge "Release notes for I9359682c"

10 years agoMerge "Make preference "Email me when a page or file on my watchlist is changed"...
jenkins-bot [Tue, 28 Jan 2014 01:31:19 +0000 (01:31 +0000)]
Merge "Make preference "Email me when a page or file on my watchlist is changed" true by default"

10 years agoRelease notes for I9359682c
Bartosz Dziewoński [Mon, 27 Jan 2014 19:38:12 +0000 (20:38 +0100)]
Release notes for I9359682c

Forgotten earlier.

Change-Id: I8e2cad1bfb5f98916baaba104e3a34c8abd51dad

10 years agoRemove setting referrer from HttpFunctions
Chad Horohoe [Tue, 28 Jan 2014 00:39:20 +0000 (16:39 -0800)]
Remove setting referrer from HttpFunctions

It was introduced in 5d210b50 but no callers have ever been updated
so this always falls back on $wgTitle (which is usually wrong). It
only works on cURL, and is marginally useful at best.

Change-Id: Ic498108af9f466cefbd0072f94f0efa4055cd169

10 years agoIgnore 'unknown' in XFF
umherirrender [Mon, 27 Jan 2014 20:00:21 +0000 (21:00 +0100)]
Ignore 'unknown' in XFF

Can come from Squid
http://www.squid-cache.org/Doc/config/forwarded_for/

Bug: 57467
Change-Id: I3fd3170d31a1aff2e748302c30dd6e364ed3bdcd

10 years agoMake preference "Email me when a page or file on my watchlist is changed" true by...
Federico Leva [Thu, 12 Dec 2013 07:41:53 +0000 (08:41 +0100)]
Make preference "Email me when a page or file on my watchlist is changed" true by default

Consistent with the recent work in making vanilla MediaWiki closer to what a standard site
would do, with more obvious defaults, and bug 45020.

WMF can sort out its special problems separately and is not affected by this, see Iad6d13509.

Bug: 45022
Change-Id: I9757cff9728f377363c540b1ab809679a1bfa01d

10 years agoRemove IE80Fixes.css
Fomafix [Mon, 27 Jan 2014 14:10:07 +0000 (14:10 +0000)]
Remove IE80Fixes.css

Reverts e30edaf0 (r62191).

Bug: 60237
Change-Id: Iba648a8bd6e917cec2e9906a6e412aa4d538cb60

10 years agoMerge "Use box-sizing:border-box for textarea"
jenkins-bot [Mon, 27 Jan 2014 20:07:24 +0000 (20:07 +0000)]
Merge "Use box-sizing:border-box for textarea"

10 years agoCorrect sequence name for fresh Postgres installation
umherirrender [Mon, 27 Jan 2014 19:38:59 +0000 (20:38 +0100)]
Correct sequence name for fresh Postgres installation

Spotted by gebhkla on bug 60083

Bug: 60083
Change-Id: I34283c2539f4ce9d1b85756b3e1c16d255000ed5

10 years agoPut expensive info action count behind $wgMiserMode
Aaron Schulz [Mon, 27 Jan 2014 19:38:21 +0000 (11:38 -0800)]
Put expensive info action count behind $wgMiserMode

Change-Id: Ie0507b9ed62556f8caaaaf9499a4a40b3342b5af

10 years agoMerge "Always return an array from SwiftFileBackend::addMissingMetadata"
jenkins-bot [Mon, 27 Jan 2014 17:59:48 +0000 (17:59 +0000)]
Merge "Always return an array from SwiftFileBackend::addMissingMetadata"

10 years agoAlways return an array from SwiftFileBackend::addMissingMetadata
Bryan Davis [Mon, 27 Jan 2014 17:25:29 +0000 (09:25 -0800)]
Always return an array from SwiftFileBackend::addMissingMetadata

Correct the behavior of SwiftFileBackend::addMissingMetadata to match
the documentation and calling code expectations by always returning an
array.

Bug: 60477
Change-Id: I8d12888a6ebfa23502f8cf3a28866dcb00a18ec8

10 years agoDon't override limits and offsets in SearchEngine::create()
Chad Horohoe [Mon, 27 Jan 2014 16:52:47 +0000 (08:52 -0800)]
Don't override limits and offsets in SearchEngine::create()

The class default is 10/0, it doesn't make sense to set that
as 0/0 here. Nor does it make sense to really override it
here at all, as class defaults should take precedent unless
explicitly overriden by callers.

Bug: 60475
Change-Id: I4a48fd3c55908b52c8b0ab081d856874d16b876e

10 years agoMerge "Fix phpdoc in SwiftFileBackend"
jenkins-bot [Mon, 27 Jan 2014 16:12:01 +0000 (16:12 +0000)]
Merge "Fix phpdoc in SwiftFileBackend"

10 years agoFix phpdoc in SwiftFileBackend
addshore [Sun, 26 Jan 2014 18:47:42 +0000 (19:47 +0100)]
Fix phpdoc in SwiftFileBackend

Docs for $status and $code were swapped.

Change-Id: I88bd81b671f0e9a4176483fb744e45f2477672b5

10 years agoCreate jquery.fullscreen
theopolisme [Tue, 3 Dec 2013 03:52:43 +0000 (21:52 -0600)]
Create jquery.fullscreen

New plugin for making elements go fullscreen.
Incorporates some code from MultimediaViewer.

Bug: 56477
Change-Id: I58138afa05c43f5a24e74fa3a30a658428c39ce0

10 years agoMerge "Localisation updates from https://translatewiki.net."
Raimond Spekking [Mon, 27 Jan 2014 00:41:40 +0000 (00:41 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoMerge "Initial Tests for TitleArrayFromResult"
jenkins-bot [Sun, 26 Jan 2014 20:57:53 +0000 (20:57 +0000)]
Merge "Initial Tests for TitleArrayFromResult"

10 years agoMerge "Fix rebuildall.php fatal error with PostgreSQL"
jenkins-bot [Sun, 26 Jan 2014 20:55:46 +0000 (20:55 +0000)]
Merge "Fix rebuildall.php fatal error with PostgreSQL"

10 years agoMerge "Remove unused globals"
jenkins-bot [Sun, 26 Jan 2014 20:04:34 +0000 (20:04 +0000)]
Merge "Remove unused globals"

10 years agoMerge "ChangesListSpecialPage: Implement execute()"
jenkins-bot [Sun, 26 Jan 2014 20:03:47 +0000 (20:03 +0000)]
Merge "ChangesListSpecialPage: Implement execute()"

10 years agoMerge "No longer display the number of rows shown on Special:Watchlist"
jenkins-bot [Sun, 26 Jan 2014 20:03:00 +0000 (20:03 +0000)]
Merge "No longer display the number of rows shown on Special:Watchlist"

10 years agoRemove unused globals
addshore [Sun, 26 Jan 2014 18:59:23 +0000 (19:59 +0100)]
Remove unused globals

Change-Id: Id1c27653650f1d60892a9fddf4f6fa5dd534615f

10 years agoChangesListSpecialPage: Implement execute()
Bartosz Dziewoński [Sun, 22 Dec 2013 13:47:36 +0000 (14:47 +0100)]
ChangesListSpecialPage: Implement execute()

Merging common content from SpecialRecentChanges and SpecialWatchlist
plus some cleanup.

Change-Id: Ic4bbedf2015a9f20a6e63ec53a72df91f1e3a2fe

10 years agoNo longer display the number of rows shown on Special:Watchlist
Bartosz Dziewoński [Sun, 22 Dec 2013 14:53:13 +0000 (15:53 +0100)]
No longer display the number of rows shown on Special:Watchlist

My rationale for doing this is that passing this several functions
down is awkward and arguably bad design.

It's still a better rationale than the one used to add this in 2004,
which was replacing another value to fix HTML injection bug (r4728).

Change-Id: Iada3a93762dd25fdaf35fb707304abc40bd4a5b1

10 years agoFix typo: "oaram" --> "param"
Kunal Mehta [Sun, 26 Jan 2014 19:49:25 +0000 (11:49 -0800)]
Fix typo: "oaram" --> "param"

Change-Id: Iff06f32c05cc83657770857b48d6201d1285eb07

10 years agoMerge "Add initial tests for UserArrayFromResult"
jenkins-bot [Sun, 26 Jan 2014 18:41:49 +0000 (18:41 +0000)]
Merge "Add initial tests for UserArrayFromResult"

10 years agoSplit Title and User ArrayFromResult classes to own files
addshore [Sun, 26 Jan 2014 17:49:18 +0000 (18:49 +0100)]
Split Title and User ArrayFromResult classes to own files

Change-Id: I8744627330eb9c8f183a8d418d6eb168e6c5407b

10 years agoInitial Tests for TitleArrayFromResult
addshore [Sun, 26 Jan 2014 17:46:20 +0000 (18:46 +0100)]
Initial Tests for TitleArrayFromResult

Change-Id: I18635ed25a09e4646f68db4678179d437a700659

10 years agoAdd initial tests for UserArrayFromResult
addshore [Sun, 26 Jan 2014 17:40:46 +0000 (18:40 +0100)]
Add initial tests for UserArrayFromResult

Change-Id: I92498011be44cd765cf336191810f47b61a0fd7e

10 years agoFix rebuildall.php fatal error with PostgreSQL
lethosor [Sun, 26 Jan 2014 16:49:16 +0000 (11:49 -0500)]
Fix rebuildall.php fatal error with PostgreSQL

The fix for 47055 introduced a fatal error when running rebuildall.php. This
is a workaround suggested by gebhkla on Bugzilla (idle for 10+ days). It just
checks to make sure $options is actually an array before calling array_search
on it.

Bug: 60094
Change-Id: Ib54420b5a749c60b82a4757a9f5fa511f48fdb72

10 years agoMerge "Expand MWTimestamp tests"
jenkins-bot [Sun, 26 Jan 2014 17:07:17 +0000 (17:07 +0000)]
Merge "Expand MWTimestamp tests"

10 years agoExpand MWTimestamp tests
addshore [Sat, 25 Jan 2014 15:48:54 +0000 (16:48 +0100)]
Expand MWTimestamp tests

Change-Id: I00215ecd85b7403a05a75d5eaccbbd2819343624

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 26 Jan 2014 15:54:15 +0000 (15:54 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I8187963fdb3b2cb88ee7afc1cc3b32cf8672e20b

10 years agoMerge "SpecialWantedcategories: Actually strike the category if it was emptied"
jenkins-bot [Sun, 26 Jan 2014 15:25:36 +0000 (15:25 +0000)]
Merge "SpecialWantedcategories: Actually strike the category if it was emptied"

10 years agoMerge "Add Special:Diff as an internally-linkable redirect to diff pages"
jenkins-bot [Sun, 26 Jan 2014 04:52:59 +0000 (04:52 +0000)]
Merge "Add Special:Diff as an internally-linkable redirect to diff pages"

10 years agoMerge "+Test for Status->CleanParams with a callback"
jenkins-bot [Sat, 25 Jan 2014 22:24:00 +0000 (22:24 +0000)]
Merge "+Test for Status->CleanParams with a callback"

10 years agoMerge "Add test that covers Status::fatal"
jenkins-bot [Sat, 25 Jan 2014 22:23:47 +0000 (22:23 +0000)]
Merge "Add test that covers Status::fatal"

10 years agoMerge "Add test for Status->merge with overrideValue true"
jenkins-bot [Sat, 25 Jan 2014 22:23:02 +0000 (22:23 +0000)]
Merge "Add test for Status->merge with overrideValue true"

10 years agoMerge "Cleanup RefreshLinksPartitionTest"
jenkins-bot [Sat, 25 Jan 2014 22:15:11 +0000 (22:15 +0000)]
Merge "Cleanup RefreshLinksPartitionTest"

10 years agoRemove math specific code from ParserOptions
physikerwelt [Mon, 20 Jan 2014 09:00:54 +0000 (09:00 +0000)]
Remove math specific code from ParserOptions

There is some math specific code in ParserOptions.
To allow extensions like math to change the cache key in a reasonable matter,
they need to get access to the information which options were used. Therefore,
optionUsed is public now and the additional argument $forOptions was added to
the PageRenderingHash hook.

Bug: 60234
Change-Id: Ieecb27216c39b7e6e354b4a1904fbff06506307d

10 years agoMerge "Add release notes for removed RdfMetaData class"
jenkins-bot [Sat, 25 Jan 2014 21:23:54 +0000 (21:23 +0000)]
Merge "Add release notes for removed RdfMetaData class"

10 years agoAdd Special:Diff as an internally-linkable redirect to diff pages
Jérémie Roquet [Sun, 12 May 2013 22:10:47 +0000 (00:10 +0200)]
Add Special:Diff as an internally-linkable redirect to diff pages

This is similar to Special:PermanentLink added in r79036 and has been
asked for several times in different places, including:
- on the English Wikipedia (oldid=539308532)
- on mediawiki.org (lqt_oldid=31691)
- on the French Wikipedia (oldid=93029892)
- on the English Wikipedia again (oldid=588408888)

A notable use-case is linking to diffs in the edit summaries, where
external links are not yet allowed (bug 14892).

All of the following are valid usages:
- [[Special:Diff/12345]] (diff of a revision with the previous one)
- [[Special:Diff/12345/prev]] (diff of a revision with the previous one as well)
- [[Special:Diff/12345/next]] (diff of a revision with the next one)
- [[Special:Diff/12345/cur]] (diff of a revision with the latest one of that page)
- [[Special:Diff/12345/98765]] (diff between arbitrary two revisions)

Co-authored-by: Jérémie Roquet <jroquet@arkanosis.net>
Co-authored-by: Bartosz Dziewoński <matma.rex@gmail.com>
Change-Id: I77fdaf8e04375caa1d67ca4a3ec3bd93920c3309

10 years agoAdd release notes for removed RdfMetaData class
umherirrender [Fri, 24 Jan 2014 16:23:41 +0000 (17:23 +0100)]
Add release notes for removed RdfMetaData class

Follow-Up: I3454d605a741bc97a51a1ad471a17eb3053d662f
Change-Id: Id1a04ea330da90ed84dae692bde7c64a5ac06cd5

10 years agoSplit Timestamp.php into class and exception files
addshore [Sat, 25 Jan 2014 15:21:09 +0000 (16:21 +0100)]
Split Timestamp.php into class and exception files

Change-Id: I438adfe5479a1017baee8f2b663f3fb2e49c685a

10 years ago+Test for Status->CleanParams with a callback
addshore [Sat, 25 Jan 2014 15:14:49 +0000 (16:14 +0100)]
+Test for Status->CleanParams with a callback

Change-Id: I4e7570ea041d28303388c630b3ca07225faf8551

10 years agoAdd test that covers Status::fatal
addshore [Sat, 25 Jan 2014 15:11:57 +0000 (16:11 +0100)]
Add test that covers Status::fatal

Change-Id: I7cb1e19569f77df5230808d7b35200b0ec9a6698

10 years agoAdd test for Status->merge with overrideValue true
addshore [Sat, 25 Jan 2014 15:08:49 +0000 (16:08 +0100)]
Add test for Status->merge with overrideValue true

Change-Id: I049c67e80277f8dbbbadae6e7a8f30d66066e7bf

10 years agoCleanup RefreshLinksPartitionTest
addshore [Sat, 25 Jan 2014 13:15:42 +0000 (14:15 +0100)]
Cleanup RefreshLinksPartitionTest

Change-Id: I9c8e66b7370f8ea8d9b4f8843718b29e992b1180

10 years agoMerge "Improve organization of TestsAutoLoader"
jenkins-bot [Sat, 25 Jan 2014 08:42:10 +0000 (08:42 +0000)]
Merge "Improve organization of TestsAutoLoader"

10 years agoUpdate jStorage
Niklas Laxström [Fri, 24 Jan 2014 21:20:32 +0000 (21:20 +0000)]
Update jStorage

Contains bugfixes, new license and smaller file size: mw.loader.inspect
went from 16.6 to 11.9. This is still bigger than what they claim:
"jStorage is really small, just about 7kB when minified (4kB when gzipped)!"

Change-Id: I0b6f083a72a27af1e3fd367f61e8f98f74fea5d8

10 years agoAdd .gitignore to the /skins directory
huji [Wed, 1 Jan 2014 00:25:54 +0000 (19:25 -0500)]
Add .gitignore to the /skins directory

To make it easier to work on 3rd party skins.

Bug: 55486
Change-Id: I986b6fe71bba429d1274bd86822448838601af64

10 years agoAdded some constants to speed up Setup.php
Aaron Schulz [Sun, 22 Dec 2013 23:19:23 +0000 (15:19 -0800)]
Added some constants to speed up Setup.php

Change-Id: I528b362d6ef3d07c6c301e7a1767a1be0fc93725

10 years agoAdd support for "tabindex" in HTMLFormField subclasses
Alexandre Emsenhuber [Thu, 2 May 2013 18:27:44 +0000 (20:27 +0200)]
Add support for "tabindex" in HTMLFormField subclasses

It is already set for some fields in Special:Block, but are
discarded by HTMLForm and its fields.

Some notes:
- fields with multiple inputs (radio, select and other, select
  or other) will have the same tabindex set on all elements
- Some items such as multi-select and check matrix are not yet
  implemented

Change-Id: I3e1ba7f16f3a3183f231afcf60dd392ce6d6eb6b

10 years agoRemoved "Justify paragraphs" from MW user Preference.
tonythomas01 [Thu, 5 Dec 2013 04:48:07 +0000 (10:18 +0530)]
Removed "Justify paragraphs" from MW user Preference.

Removed the option 'Justify paragraphs' from MW Preferences
as it is not a necessary option there.
Added RELEASE NOTES.

Bug: 52810
Change-Id: I1fe6a5857070828726077e6ba229b786c017c858

10 years agoAdd direct links to translation interface on Special:AllMessages
Federico Leva [Wed, 6 Nov 2013 23:08:02 +0000 (00:08 +0100)]
Add direct links to translation interface on Special:AllMessages

The local Special:AllMessages page is the first and most friendly place
where average users will look for the message and try to translate it:
when they find it, add a link to translatewiki.net so that they can start
translating without searching for it from scratch.

Special:SearchTranslations is the only target usable for this: the solr
search is smart enough to present the most relevant results first and the
translation interface is directly available in place.
On the bright side, similar messages popping up from other projects or areas
of the code will provide suggestions and help find other occurrences of
translations which can similarly be improved.

More specifically, we are using a combined language, key and text search:
* the English text is the only thing guaranteed to exist, if the message is
  available, though quoting it can give some false negatives and not quoting
  it would give it too much weight if it's long;
* the key can be used thanks to the feature revealed by Niklas Laxström in
  comments to this patch: it is simpler to handle but allows only exact matches
  and can be wrong if TWN adds a prefix for the extension, so it can't be used
  alone, but in the best case it's what we're looking for;
* the language makes sense in combination with the key match.
We boost key and language to get the current translation of the message where
possible; if it's not, the first result will usually be English text.
https://wiki.apache.org/solr/SolrQuerySyntax
https://lucene.apache.org/core/2_9_4/queryparsersyntax.html

From the initial search, the user can further refine its search and navigate
the interface to find the message(s) and editor where to add or edit the
translation.

Change-Id: I8de3faba829c50cdc0f2d09726f738c585792e00

10 years agoi18n: Native digits on #wpLocalTime
Ebrahim Byagowi [Sat, 14 Dec 2013 18:07:11 +0000 (18:07 +0000)]
i18n: Native digits on #wpLocalTime

Change-Id: Ief3c4700247809e59dda30b9b224e3f9dfaa5e62

10 years agoMerge "Little change of readability in Title::secureAndSplit"
jenkins-bot [Sat, 25 Jan 2014 00:41:54 +0000 (00:41 +0000)]
Merge "Little change of readability in Title::secureAndSplit"

10 years agoMerge "StatusTest is language dependant"
jenkins-bot [Fri, 24 Jan 2014 23:57:43 +0000 (23:57 +0000)]
Merge "StatusTest is language dependant"

10 years agoMerge "More use of Title::hasFragment"
jenkins-bot [Fri, 24 Jan 2014 23:57:41 +0000 (23:57 +0000)]
Merge "More use of Title::hasFragment"

10 years agoMerge "Add hints to two function comments in Title.php"
jenkins-bot [Fri, 24 Jan 2014 23:56:53 +0000 (23:56 +0000)]
Merge "Add hints to two function comments in Title.php"

10 years agoMerge "Replace <i> and <b> by <em> and <strong> in i18n"
jenkins-bot [Fri, 24 Jan 2014 23:51:43 +0000 (23:51 +0000)]
Merge "Replace <i> and <b> by <em> and <strong> in i18n"

10 years agoAdd hints to two function comments in Title.php
umherirrender [Fri, 24 Jan 2014 21:35:52 +0000 (22:35 +0100)]
Add hints to two function comments in Title.php

Change-Id: I47627892c6450396cfb658ddef7617046fdf4209

10 years agoLittle change of readability in Title::secureAndSplit
umherirrender [Fri, 24 Jan 2014 21:30:33 +0000 (22:30 +0100)]
Little change of readability in Title::secureAndSplit

Move init of mArticleId to bottom, where other fields are filled and
change ternary operator to a simple if for better readability.
Break a double assignment in two statements.

Change-Id: Ib61435e62e883142dd0c5dcb40e0e50e7ca18439

10 years agoMore use of Title::hasFragment
umherirrender [Fri, 24 Jan 2014 21:22:45 +0000 (22:22 +0100)]
More use of Title::hasFragment

Missing two places for the new method.

Also change a remaining var access of Title::mFragment to accessor.

Follow-Up: I27d9c3e40e6de6800f4488de167cf06e83c88ce6
Change-Id: I5d26b9a7662673b902e3f7147cbc95ca0626d721

10 years agoMerge "Ignore testRunLegacyHooks in findHooks.php"
jenkins-bot [Fri, 24 Jan 2014 21:09:33 +0000 (21:09 +0000)]
Merge "Ignore testRunLegacyHooks in findHooks.php"

10 years agoMerge "Remove preference "Show table of contents (for pages with more ...)""
jenkins-bot [Fri, 24 Jan 2014 21:08:08 +0000 (21:08 +0000)]
Merge "Remove preference "Show table of contents (for pages with more ...)""

10 years agoRemove preference "Show table of contents (for pages with more ...)"
tonythomas01 [Thu, 5 Dec 2013 17:54:27 +0000 (23:24 +0530)]
Remove preference "Show table of contents (for pages with more ...)"

The table of contents box is auto-inserted, can trivially be hidden or
exposed on a per-page basis with __MAGICWORDS__, includes a sticky
[show|hide] link, and can be easily hidden with site-wide CSS as
necessary. It needlessly adds complexity and user interface clutter.

Bug: 52813
Change-Id: If2139317dae4aa980b373c73d7b81dac627b5af8

10 years agoReplace <i> and <b> by <em> and <strong> in i18n
Siebrand Mazeland [Thu, 12 Dec 2013 12:34:19 +0000 (13:34 +0100)]
Replace <i> and <b> by <em> and <strong> in i18n

Change-Id: If84e78e413fd042ef9451c68df2321fd52a35c79

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Fri, 24 Jan 2014 20:18:35 +0000 (20:18 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 24 Jan 2014 20:00:37 +0000 (20:00 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Idf89d2bff84d9c4e74be06a2532222891b0fb30e

10 years agoMerge "Change behavior of Special:Watchlist when user's watchlist is empty"
jenkins-bot [Fri, 24 Jan 2014 19:45:43 +0000 (19:45 +0000)]
Merge "Change behavior of Special:Watchlist when user's watchlist is empty"

10 years agoMerge "Fix comment on JobQueue::push"
jenkins-bot [Fri, 24 Jan 2014 19:34:24 +0000 (19:34 +0000)]
Merge "Fix comment on JobQueue::push"

10 years agoFix comment on JobQueue::push
Marius Hoch [Fri, 24 Jan 2014 19:14:11 +0000 (20:14 +0100)]
Fix comment on JobQueue::push

Change-Id: I2a7e570ee29ca9dcab2e5c92616ecb69310ae7d5