lhc/web/wiklou.git
10 years agoIntroducing TitleValue
daniel [Thu, 9 Jan 2014 14:35:16 +0000 (15:35 +0100)]
Introducing TitleValue

TitleValue is intended to be a light weight alternative to the Title
class. Any operations on TitleValue are implemented in separate
service classes, like TitleFormatter and PageLinkRenderer. See
<https://www.mediawiki.org/wiki/Requests_for_comment/TitleValue>
for more information.

This change updates SpecialCategories and SpecialLinkSearch to use
TitleValue instead of Title, to demonstrate how TitleValue would be
used, and how the necessary services can be injected and applied.

The intention is to improve testability and reusability; these
advantages will however only become apparent with further refactoring
of the respective special pages. This will be done in follow-up
changes.

More work will be needed to migrate essential functionality from
Title and Linker classes into the respective service classes,
MediaWikiTitleCodec and MediaWikiPageLinkRenderer.

Change-Id: I8eef5a165de4ffcacfbc4911fdacdb15d502fff4

10 years agoMerge "mediawiki.util: Fix jsduck syntax and minor clean up"
jenkins-bot [Fri, 28 Mar 2014 18:26:46 +0000 (18:26 +0000)]
Merge "mediawiki.util: Fix jsduck syntax and minor clean up"

10 years agoMerge "Update OOjs UI to v0.1.0-pre (23fb1b6144)"
jenkins-bot [Fri, 28 Mar 2014 16:54:05 +0000 (16:54 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (23fb1b6144)"

10 years agoMerge "Clean up access points"
jenkins-bot [Fri, 28 Mar 2014 03:42:56 +0000 (03:42 +0000)]
Merge "Clean up access points"

10 years agoresourceloader: Return a promise from mw.loader.using()
Helder.wiki [Tue, 23 Jul 2013 21:21:30 +0000 (18:21 -0300)]
resourceloader: Return a promise from mw.loader.using()

This implements support for:

    mw.loader.using( 'foo' ).done( callback );

Cleanup:
- Validate array input using $.isArray
- Simplify code

Change-Id: I9e145cfde24f582b123707ed20cb0fca60fccb2c

10 years agoClean up access points
Waldir Pimenta [Fri, 15 Feb 2013 07:31:48 +0000 (07:31 +0000)]
Clean up access points

* Harmonize spacing
* Use // for comments rather than #
* Harmonize call style for 'require', 'include' etc.
* Add missing profileinfo.php5
* Use "./" for path to api.php in api.php5 (to match other php5 files).
* Move documentation related to Setup.php from index.php to WebStart.php
* Remove "Initialise common code." comment in api.php (was already remove
  in most entry points)

Change-Id: I8dc4a79fd13cee49e34f250a4039b3666bd42aca

10 years agoMerge "Fix path in findHooks.php script"
jenkins-bot [Thu, 27 Mar 2014 23:51:19 +0000 (23:51 +0000)]
Merge "Fix path in findHooks.php script"

10 years agoMerge "Follow-up to typography changes to Vector"
Swalling [Thu, 27 Mar 2014 22:21:32 +0000 (22:21 +0000)]
Merge "Follow-up to typography changes to Vector"

10 years agoMerge "Add jquery.autoEllipsis to jsduck"
jenkins-bot [Thu, 27 Mar 2014 22:12:33 +0000 (22:12 +0000)]
Merge "Add jquery.autoEllipsis to jsduck"

10 years agoMerge "Remove unused $wgLicenseTerms"
jenkins-bot [Thu, 27 Mar 2014 22:09:49 +0000 (22:09 +0000)]
Merge "Remove unused $wgLicenseTerms"

10 years agoAdd jquery.autoEllipsis to jsduck
Mark Holmquist [Wed, 26 Mar 2014 20:59:08 +0000 (13:59 -0700)]
Add jquery.autoEllipsis to jsduck

Change-Id: I2c1c1eb3e0f92a78e50f8fe89f47d10e3a732325

10 years agoFollow-up to typography changes to Vector
kaldari [Thu, 27 Mar 2014 18:12:54 +0000 (11:12 -0700)]
Follow-up to typography changes to Vector

Getting rid of pre rule per discussion.

Changing line-height: 0 for sup tags to line-height: 1 per
suggestion at https://gerrit.wikimedia.org/r/#/c/120978/ and
also adding sub.

Also update release notes.

Bug: 49965
Change-Id: Ic9dc071d1868b16a46eef1d7c41dc6abe12fa7b7

10 years agoUpdate OOjs UI to v0.1.0-pre (23fb1b6144)
James D. Forrester [Thu, 27 Mar 2014 21:49:35 +0000 (14:49 -0700)]
Update OOjs UI to v0.1.0-pre (23fb1b6144)

New changes:
41e01ca Add documentation explaining what's going on in GroupWidget
de8cd1d intro/outro: Keep local reference to OO inside closure
8bc207e Localisation updates from https://translatewiki.net.
5e1422e [BREAKING CHANGE] Use registry for tool group types
5d3ac51 Basic toolbar demo
ad53af5 Styling for disabled toolgroups
3529d6f Force visible label for MenuToolGroups

Change-Id: Ifdda408c17e257ffb3de2474bd64f5e2689e94d6

10 years agoAdd jquery.badge to the jsduck config
Mark Holmquist [Wed, 26 Mar 2014 22:46:10 +0000 (15:46 -0700)]
Add jquery.badge to the jsduck config

Imported examples from https://www.mediawiki.org/wiki/ResourceLoader/Default_modules#jquery.badge

Change-Id: I6ddd4b836fd8fd459bf803baab8fc26bac9fbe55

10 years agoMerge "SECURITY: Add CSRF token on Special:ChangePassword"
Mglaser [Thu, 27 Mar 2014 21:01:46 +0000 (21:01 +0000)]
Merge "SECURITY: Add CSRF token on Special:ChangePassword"

10 years agoAdd jquery.byteLimit to jsduck
Mark Holmquist [Wed, 26 Mar 2014 23:05:54 +0000 (16:05 -0700)]
Add jquery.byteLimit to jsduck

Change-Id: I1dd21fccd93fed03748d3a71e53e8d27e6a9a5dd

10 years agoSECURITY: Add CSRF token on Special:ChangePassword
csteipp [Mon, 10 Mar 2014 19:26:17 +0000 (12:26 -0700)]
SECURITY: Add CSRF token on Special:ChangePassword

Use a login token when logged out user is using Special:ChangePassword
(should only happen when a user is forced to reset their password to
complete the login process).

Logged in users are not logged in as an effect of resetting their
password, and for them, the edit token check should be sufficient.

Bug: 62497
Change-Id: I08afed3e1aeeb8c97d24fe9858a3ba2c03e92adf

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Thu, 27 Mar 2014 20:29:00 +0000 (20:29 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ica6fa7fc2d685a655e07b24cd54c7ec42d10f214

10 years agoUse {{FULLPAGENAME}} in 'missing-revision' message.
Alexandre Emsenhuber [Thu, 27 Mar 2014 19:46:52 +0000 (20:46 +0100)]
Use {{FULLPAGENAME}} in 'missing-revision' message.

Otherwise the namespace is lost if the page does not belong to the
main namespace.

Fix for Ibe60c84cfe (d24a4d7).

Change-Id: I9f8d6a593b7f55028fcd6f30184baf223b0aa2da

10 years agoFix path in findHooks.php script
Alexandre Emsenhuber [Thu, 27 Mar 2014 19:10:29 +0000 (20:10 +0100)]
Fix path in findHooks.php script

Follow-up I4c8a2b421 (9ffd4f0): include/job was renamed
to include/jobqueue.

bug: 63186
Change-Id: I47d594adbaa6d944724a32ca1c701a5bfd297205

10 years agoUpdate OOjs UI to v0.1.0-pre (e9e435be5e)
James D. Forrester [Thu, 27 Mar 2014 18:42:51 +0000 (11:42 -0700)]
Update OOjs UI to v0.1.0-pre (e9e435be5e)

New changes:
e9e435b Move padding rules for OutlineItemWidget from core to skins.

Change-Id: I114530e2c63ad5ec8c1c69092e17a8c1ec2a4f3d

10 years agoMerge "Update set of files cleaned up after parserTests"
jenkins-bot [Thu, 27 Mar 2014 17:15:36 +0000 (17:15 +0000)]
Merge "Update set of files cleaned up after parserTests"

10 years agomediawiki.util: Fix jsduck syntax and minor clean up
Timo Tijhof [Wed, 19 Mar 2014 21:34:14 +0000 (22:34 +0100)]
mediawiki.util: Fix jsduck syntax and minor clean up

* Fix indentation of @param comment to not trigger <pre> context.
* Clean up descriptions.
* Apply coding conventions
  - Function call one one line, or one line per argument.
    Avoid arbitrary splitting mid-line when purely for the sake
    of line length.
* Combine string concatenation in one expression instead of
  adding twice.

Change-Id: Id9f2a7cef1c8bf1c01584fbb293d0605fc91337e

10 years agomw.loader: Update addScript() to match latest jQuery
Timo Tijhof [Mon, 10 Mar 2014 20:00:23 +0000 (21:00 +0100)]
mw.loader: Update addScript() to match latest jQuery

* Optimise for modern browsers by using the quick document.head
  when available.
* Fallback to documentElement (<html>) instead of <body>.
* Prepend instead of append, per upstream jQuery.

Change-Id: I00ddceea531114704a3aa64961dec90181315c19

10 years agoUpdate OOjs UI to v0.1.0-pre (e697490c9b)
James D. Forrester [Thu, 27 Mar 2014 00:40:17 +0000 (17:40 -0700)]
Update OOjs UI to v0.1.0-pre (e697490c9b)

New changes:
2889665 Fixes bug where InlineMenuWidget would "steal" DOM labels on selection
997e1a6 Increase width of toggle switch widget
2240802 Use less variable for travel distance
62efbdf Add disabled styling to InlineMenuWidget
93182d2 Promote zIndex of InlineMenuWidget options list
fc7143b Fix padding on icon in TextInputWidget
c9b6234 Add display: block; property to labelElement to make the text-overflow: ellipsis work correctly
e697490 Don't use transitions for opacity on hover for now

Change-Id: I457090c19e5e090185021f0b979277a42fe567de

10 years agoMerge "Typography update to Vector skin"
jenkins-bot [Thu, 27 Mar 2014 00:41:24 +0000 (00:41 +0000)]
Merge "Typography update to Vector skin"

10 years agoTypography update to Vector skin
kaldari [Wed, 26 Mar 2014 01:18:17 +0000 (18:18 -0700)]
Typography update to Vector skin

See https://www.mediawiki.org/wiki/Typography_refresh

See also: I7dcb65c52ec7d8995763e2227731729d19537c08
Change-Id: Ic5ba836364d04b2c3814777b69b5f47fce25292a

10 years agoMerge "Replace wfMessage() with this->msg()"
jenkins-bot [Wed, 26 Mar 2014 23:16:54 +0000 (23:16 +0000)]
Merge "Replace wfMessage() with this->msg()"

10 years agoMerge "ResourceLoaderStartUpModule: Use hashMtime to detect config changes"
jenkins-bot [Wed, 26 Mar 2014 22:36:45 +0000 (22:36 +0000)]
Merge "ResourceLoaderStartUpModule: Use hashMtime to detect config changes"

10 years agoMerge "resourceloader: Sanitize lang code before creating Language object"
jenkins-bot [Wed, 26 Mar 2014 22:31:08 +0000 (22:31 +0000)]
Merge "resourceloader: Sanitize lang code before creating Language object"

10 years agoMerge "Minor fixes for existing jsduck documentation in resources/mediawiki/*"
jenkins-bot [Wed, 26 Mar 2014 21:59:41 +0000 (21:59 +0000)]
Merge "Minor fixes for existing jsduck documentation in resources/mediawiki/*"

10 years agoMinor fixes for existing jsduck documentation in resources/mediawiki/*
Timo Tijhof [Wed, 26 Mar 2014 21:18:05 +0000 (14:18 -0700)]
Minor fixes for existing jsduck documentation in resources/mediawiki/*

mw.loader.store:
* Turn url into a link.

mediawiki.language:
* Turn url into a link.
* Fix whitespace.

mediawiki.Title:
* Fix broken <pre> rendering.

mediawiki.Uri:
* Add protocol to url, otherwise <> won't link it.
* Remove bogus dependency listing.
* Turn url into a link.

Change-Id: Ie8e2d1869843bcf594763250c7a9bf94bf874298

10 years agoMerge "mwjsduck-gen: Fix duplicate resources link"
jenkins-bot [Wed, 26 Mar 2014 21:21:57 +0000 (21:21 +0000)]
Merge "mwjsduck-gen: Fix duplicate resources link"

10 years agoMerge "Add jquery.arrowSteps to jsduck"
jenkins-bot [Wed, 26 Mar 2014 21:21:40 +0000 (21:21 +0000)]
Merge "Add jquery.arrowSteps to jsduck"

10 years agomwjsduck-gen: Fix duplicate resources link
Mark Holmquist [Wed, 26 Mar 2014 20:42:16 +0000 (13:42 -0700)]
mwjsduck-gen: Fix duplicate resources link

If jsduck failed, it would make a second symlink to ../../resources/
in resources/ which made no sense.

Change-Id: Iedf10466acdbd8e70a751ae898dc453a9be62275

10 years agoMerge "mediawiki.html: Fix jsduck syntax for list, backtick html, link url"
jenkins-bot [Wed, 26 Mar 2014 21:13:02 +0000 (21:13 +0000)]
Merge "mediawiki.html: Fix jsduck syntax for list, backtick html, link url"

10 years agoAdd jquery.arrowSteps to jsduck
Mark Holmquist [Wed, 26 Mar 2014 20:30:43 +0000 (13:30 -0700)]
Add jquery.arrowSteps to jsduck

It's probably a doomed module, but we may as well document it.

Change-Id: I5c28d1abc5364de839806ed21c2edc0d1d655f86

10 years agomediawiki.html: Fix jsduck syntax for list, backtick html, link url
Timo Tijhof [Wed, 26 Mar 2014 20:44:24 +0000 (13:44 -0700)]
mediawiki.html: Fix jsduck syntax for list, backtick html, link url

* For the list to render as a list (instead of a paragraph
  with hyphens in it and collapsed linebreak whitespace), it has
  to be in block context. Meaning, a line break first.

* Backtick the <br> tag, otherwise it becomes an actual line
  break as Markdown supports <br>.

* Turn the url into an actual link (unlike wikitext, Markdown
  doesn't do magic linking of urls).

Change-Id: I0e3913cd5f97bf37381a99cbdc6af651a8872c70

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Wed, 26 Mar 2014 20:37:55 +0000 (20:37 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I31ee0d1685cdf6b315cb5336b30e548c76d67a95

10 years agoReplace wfMessage() with this->msg()
rillke [Wed, 26 Mar 2014 18:55:28 +0000 (19:55 +0100)]
Replace wfMessage() with this->msg()

QueryPage inherits from SpecialPage and thus $this->msg() returns
a message with context set to the appropriate request context
(language and title).

Bug: 63110
Change-Id: Iaf9252e5a25eb618d7c1975fdb6e5ff96a50225b

10 years agoMerge "Remove button styles from mediawiki.ui"
jenkins-bot [Wed, 26 Mar 2014 18:28:05 +0000 (18:28 +0000)]
Merge "Remove button styles from mediawiki.ui"

10 years agoMerge "Suppress section edit links with action=render"
jenkins-bot [Wed, 26 Mar 2014 18:23:01 +0000 (18:23 +0000)]
Merge "Suppress section edit links with action=render"

10 years agoMerge "Stop make kss from opening browser"
jenkins-bot [Wed, 26 Mar 2014 18:11:43 +0000 (18:11 +0000)]
Merge "Stop make kss from opening browser"

10 years agoMerge "Use Agora oojs-ui theme on mobile"
jenkins-bot [Wed, 26 Mar 2014 18:11:26 +0000 (18:11 +0000)]
Merge "Use Agora oojs-ui theme on mobile"

10 years agoMerge "Update OOjs UI to v0.1.0-pre (1c7875205a)"
jenkins-bot [Wed, 26 Mar 2014 18:10:24 +0000 (18:10 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (1c7875205a)"

10 years agoStop make kss from opening browser
Juliusz Gonera [Wed, 5 Mar 2014 23:32:00 +0000 (15:32 -0800)]
Stop make kss from opening browser

Instead add make kssopen that opens the browser with the styleguide.
Most people will probably keep the style guide open in the browser and
refresh it themselves if they need to.

Change-Id: I5fd82d01da1c7f4bbf48ad921c2e7cb0407974b3

10 years agoUse Agora oojs-ui theme on mobile
Juliusz Gonera [Sat, 22 Mar 2014 00:09:54 +0000 (17:09 -0700)]
Use Agora oojs-ui theme on mobile

Change-Id: I53e15fca1facfc8b55eace07de42fced4d07efcc

10 years agoUpdate OOjs UI to v0.1.0-pre (1c7875205a)
James D. Forrester [Wed, 26 Mar 2014 16:53:56 +0000 (09:53 -0700)]
Update OOjs UI to v0.1.0-pre (1c7875205a)

New changes:
a14026f Move some styles to the Apex theme
9df7af9 Add basic styling for Agora theme
deefcf3 Localisation updates from https://translatewiki.net.
1c78752 Add initially enabled ToggleButtonWidget to demo

Local changes:
* Change local update script so that it also copies oojs-ui-agora.css.

Change-Id: I77e6876899809db3f6e246579f82c1bf8bc51a45

10 years agoMerge "Have ?download parameter trigger Content-Disposition: attachment"
jenkins-bot [Wed, 26 Mar 2014 17:45:21 +0000 (17:45 +0000)]
Merge "Have ?download parameter trigger Content-Disposition: attachment"

10 years agoMerge "Comment generated code to explain the i18n JSON migration."
jenkins-bot [Wed, 26 Mar 2014 17:45:04 +0000 (17:45 +0000)]
Merge "Comment generated code to explain the i18n JSON migration."

10 years agoComment generated code to explain the i18n JSON migration.
Adam Roses Wight [Tue, 25 Mar 2014 20:53:06 +0000 (13:53 -0700)]
Comment generated code to explain the i18n JSON migration.

Change-Id: I4d41be5a70eab5ceeec3be0bd544e4a87504572a

10 years agoMerge "Declare visibility on class properties of SpecialRevisionDelete"
jenkins-bot [Wed, 26 Mar 2014 17:28:12 +0000 (17:28 +0000)]
Merge "Declare visibility on class properties of SpecialRevisionDelete"

10 years agoMerge "Declare visibility on class properties of SpecialUndelete"
jenkins-bot [Wed, 26 Mar 2014 17:24:07 +0000 (17:24 +0000)]
Merge "Declare visibility on class properties of SpecialUndelete"

10 years agoMerge "Make CodeSniffer checks pass on includes/specialpages/"
jenkins-bot [Wed, 26 Mar 2014 17:22:50 +0000 (17:22 +0000)]
Merge "Make CodeSniffer checks pass on includes/specialpages/"

10 years agoMerge "Declare visibility on class properties of RedirectSpecialPage"
jenkins-bot [Wed, 26 Mar 2014 17:21:42 +0000 (17:21 +0000)]
Merge "Declare visibility on class properties of RedirectSpecialPage"

10 years agoMerge "Add a 'revdelete-selected-file' message on Special:RevisionDelete"
jenkins-bot [Wed, 26 Mar 2014 17:18:57 +0000 (17:18 +0000)]
Merge "Add a 'revdelete-selected-file' message on Special:RevisionDelete"

10 years agoDeclare visibility on class properties of SpecialRevisionDelete
Siebrand Mazeland [Sun, 23 Mar 2014 00:25:12 +0000 (01:25 +0100)]
Declare visibility on class properties of SpecialRevisionDelete

All class properties are used solely in the class itself.
SpecialRevisionDelete is not being subclassed, so made all properties
private. Also:
* Added missing class properties.
* Renamed $list to $revDelList to be more specific.
* Updated some documentation.

Change-Id: I9f989a020d46173cb313d4d3dddc33f6b92b1942

10 years agoDeclare visibility on class properties of SpecialUndelete
Siebrand Mazeland [Sun, 23 Mar 2014 00:05:21 +0000 (01:05 +0100)]
Declare visibility on class properties of SpecialUndelete

All class properties are used solely in the class itself. SpecialUndelete
is not being subclassed, so made all properties private.

Change-Id: I32792fb5d21178d850764c0efe3024d957fca2a8

10 years agoMake CodeSniffer checks pass on includes/specialpages/
Siebrand Mazeland [Sat, 22 Mar 2014 22:12:47 +0000 (23:12 +0100)]
Make CodeSniffer checks pass on includes/specialpages/

Fixes the one remaining warning.

Change-Id: Id54a1eb148aaf6953db61e8900a9253591f05208

10 years agoDeclare visibility on class properties of RedirectSpecialPage
Siebrand Mazeland [Sat, 22 Mar 2014 22:11:08 +0000 (23:11 +0100)]
Declare visibility on class properties of RedirectSpecialPage

Change-Id: I54c0300af1ff62be7cc5a9519e97b7f825ddf09c

10 years agoMerge "Remove "include redirects" option from search"
jenkins-bot [Wed, 26 Mar 2014 16:45:30 +0000 (16:45 +0000)]
Merge "Remove "include redirects" option from search"

10 years agoMerge "Update formatting for includes/specialpage"
jenkins-bot [Wed, 26 Mar 2014 16:33:49 +0000 (16:33 +0000)]
Merge "Update formatting for includes/specialpage"

10 years agoRemove "include redirects" option from search
Chad Horohoe [Thu, 13 Mar 2014 20:39:47 +0000 (13:39 -0700)]
Remove "include redirects" option from search

Always include redirects. Search results are worse without them
and MWSearch has never respected this option anyway.

Change-Id: I0ebe321a3b14e7960aa98e3225dc5a19ba916e7d

10 years agoUpdate formatting for includes/specialpage
Siebrand Mazeland [Sat, 22 Mar 2014 22:07:19 +0000 (23:07 +0100)]
Update formatting for includes/specialpage

Change-Id: I6f5ebe5408464cde78fae3584e19392b26d2b2a1

10 years agoMerge "Fix CodeSniffer errors and warnings in includes/specials (2)"
jenkins-bot [Wed, 26 Mar 2014 16:14:13 +0000 (16:14 +0000)]
Merge "Fix CodeSniffer errors and warnings in includes/specials (2)"

10 years agoMerge "Try to make a dent in CodeSniffer reports on includes/ (1)"
jenkins-bot [Wed, 26 Mar 2014 16:14:11 +0000 (16:14 +0000)]
Merge "Try to make a dent in CodeSniffer reports on includes/ (1)"

10 years agoFix CodeSniffer errors and warnings in includes/specials (2)
Siebrand Mazeland [Sat, 22 Mar 2014 23:59:36 +0000 (00:59 +0100)]
Fix CodeSniffer errors and warnings in includes/specials (2)

Change-Id: I9787d2a1515b2a8d9310ea636650e20d041acc3d

10 years agoMerge "Fix CodeSniffer errors and warnings in includes/specials (1)"
jenkins-bot [Wed, 26 Mar 2014 15:51:42 +0000 (15:51 +0000)]
Merge "Fix CodeSniffer errors and warnings in includes/specials (1)"

10 years agoMerge "Declare visibility on class properties of LoginForm"
jenkins-bot [Wed, 26 Mar 2014 15:49:49 +0000 (15:49 +0000)]
Merge "Declare visibility on class properties of LoginForm"

10 years agoMerge "Set visibility for some methods and remove unused ones"
jenkins-bot [Wed, 26 Mar 2014 15:49:30 +0000 (15:49 +0000)]
Merge "Set visibility for some methods and remove unused ones"

10 years agoFix/update inline documentations in GlobalFunctions
Thiemo Mättig [Tue, 25 Mar 2014 18:52:26 +0000 (19:52 +0100)]
Fix/update inline documentations in GlobalFunctions

I mainly fixed PHPDoc comments that are highlighted by PHPStorm
as being wrong or incomplete.

* Fixed some wrong inline documentations, e.g. wrong @return types.
* Used the style suggested by the Doxygen and phpDocumentor
  documentations: @param type [$optional,...]
* Doxygen and phpDocumentor suggest the order: @param type $var
* Avoid unclear "varargs" and "mixed" if possible.
* Lowercased "array" and such, they are no classes.

Change-Id: Iff16e05fed6652cefec29e3d254807f52d84c9ab

10 years agoMerge "Revert "New Hook rc/watchlist hook ChangesListBegin""
jenkins-bot [Wed, 26 Mar 2014 14:36:29 +0000 (14:36 +0000)]
Merge "Revert "New Hook rc/watchlist hook ChangesListBegin""

10 years agoRevert "New Hook rc/watchlist hook ChangesListBegin"
Siebrand [Wed, 26 Mar 2014 14:07:44 +0000 (14:07 +0000)]
Revert "New Hook rc/watchlist hook ChangesListBegin"

This reverts commit 01798c3813b602bd3e8f9a666249e6da58526109.

The patch set changed a RecentChanges interface used in at least the
extension CleanChanges so that it was generating a lot of warnings.
Additional parameters to existing methods that are used elsewhere
should have defaults to not break backward compatibility.

Change-Id: I1851e23e186ba7aaeb001ba212e56888657a3ae0

10 years agoMerge "Use /usr/bin/ as default folder for DjVu tools in unit tests"
jenkins-bot [Wed, 26 Mar 2014 13:40:51 +0000 (13:40 +0000)]
Merge "Use /usr/bin/ as default folder for DjVu tools in unit tests"

10 years agoMerge "Fix/update inline documentation in WikiPage class"
jenkins-bot [Wed, 26 Mar 2014 12:33:43 +0000 (12:33 +0000)]
Merge "Fix/update inline documentation in WikiPage class"

10 years agoMerge "Fix custom local MediaWiki:Helppage values"
jenkins-bot [Wed, 26 Mar 2014 12:20:28 +0000 (12:20 +0000)]
Merge "Fix custom local MediaWiki:Helppage values"

10 years agoMerge "New Hook rc/watchlist hook ChangesListBegin"
jenkins-bot [Wed, 26 Mar 2014 11:55:13 +0000 (11:55 +0000)]
Merge "New Hook rc/watchlist hook ChangesListBegin"

10 years agoSet visibility for some methods and remove unused ones
Siebrand Mazeland [Sun, 23 Mar 2014 01:20:36 +0000 (02:20 +0100)]
Set visibility for some methods and remove unused ones

* private: checkUnicodeCompliantBrowser(), makesafe(), unmakesafe().
* protected: safeUnicodeInput(), safeUnicodeOutput().
* unused and deleted: safeUnicodeText(), sectionAnchor().

Also updated documentation for touched methods.

Change-Id: I1a46113a6380505aeea71150b6d106ec68423002

10 years agoFix custom local MediaWiki:Helppage values
Matthew Flaschen [Wed, 26 Mar 2014 03:15:59 +0000 (23:15 -0400)]
Fix custom local MediaWiki:Helppage values

Followup to 3a6ea89d4aa4a0fbc36a209fa13b1c6134110ca9

Change-Id: I7effec352d263f536d1d1763e9cd56d2f5154f13

10 years agoMerge "Reduce connect timeout in MediaWiki::triggerJobs"
jenkins-bot [Tue, 25 Mar 2014 23:15:30 +0000 (23:15 +0000)]
Merge "Reduce connect timeout in MediaWiki::triggerJobs"

10 years agoReduce connect timeout in MediaWiki::triggerJobs
Erik Bernhardson [Tue, 25 Mar 2014 22:31:56 +0000 (15:31 -0700)]
Reduce connect timeout in MediaWiki::triggerJobs

The fifth parameter to fsockopen is the number of seconds
to wait before declaring the connection a failure. When not
provided it defaults to the php ini value of 'default_socket_timeout'
which is 60s.  Under no circumstances should we wait 60s to
connect to ourselves,  100ms seems like a reasonable timeout
since its explicitly connecting to itself, but the exact timeout
could be slightly longer.

Change-Id: I18d328274ddf1e0848fce40ebf39e0466b5c4d5d

10 years agoMerge "Remove wfDebugLog() call from wfSetupSession()"
jenkins-bot [Tue, 25 Mar 2014 21:31:42 +0000 (21:31 +0000)]
Merge "Remove wfDebugLog() call from wfSetupSession()"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Tue, 25 Mar 2014 20:49:35 +0000 (20:49 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I083069e8633deaa49055a255e05692dcb1072193

10 years agoRemove unused $wgLicenseTerms
Alexandre Emsenhuber [Tue, 25 Mar 2014 19:38:36 +0000 (20:38 +0100)]
Remove unused $wgLicenseTerms

Follow-up I3454d605a7 (4ebd4de).

Change-Id: I1e22e24a2de686371967f3951a4c8b8c553c3f0b

10 years agoMerge "Sync up with Parsoid parserTests."
jenkins-bot [Tue, 25 Mar 2014 19:04:20 +0000 (19:04 +0000)]
Merge "Sync up with Parsoid parserTests."

10 years agoMerge "Handle exceptions when testing row validity"
jenkins-bot [Tue, 25 Mar 2014 19:03:17 +0000 (19:03 +0000)]
Merge "Handle exceptions when testing row validity"

10 years agoUpdate set of files cleaned up after parserTests
C. Scott Ananian [Tue, 25 Mar 2014 17:13:50 +0000 (13:13 -0400)]
Update set of files cleaned up after parserTests

The parser tests now include more generated thumbnails, so we need to
update the list of thumbnail files we clean up after a run.

Change-Id: Ibabab27ecb895a61f57fff265c8d6d3147666e0d

10 years agoRemove wfDebugLog() call from wfSetupSession()
Alexandre Emsenhuber [Tue, 25 Mar 2014 18:41:18 +0000 (19:41 +0100)]
Remove wfDebugLog() call from wfSetupSession()

Since Iffba121a99 (00b7f76) with the removal of wfHttpOnlySafe(),
session cookie's parameters are based only on configuration
settings, so there is no point to spam the "cookie" log group
with predicitible values.

Change-Id: I8b1cdea929cefc32dd8b01c2ecbf2d76bb64189f

10 years agoFix/update inline documentation in WikiPage class
Thiemo Mättig [Tue, 25 Mar 2014 18:21:50 +0000 (19:21 +0100)]
Fix/update inline documentation in WikiPage class

* Add missing "new" to methods that actually support it.
* Use more precise type hints in PHPDoc comments.
* Lowercase "string" and "array", they aren't objects.
* Drop a useless comment that only repeats the method name.
* Add some line breaks.

Change-Id: I2f50179eedffcb1809c46fa7ee1c062144a94ffe

10 years agoLowered high lock timeout in mergeViaLock() and lock() in BagOStuff
Aaron Schulz [Tue, 18 Mar 2014 17:16:58 +0000 (10:16 -0700)]
Lowered high lock timeout in mergeViaLock() and lock() in BagOStuff

Change-Id: Ib5cd0a98ce6ec47edb24f8cc9f4df2c941ce1c38

10 years agoSync up with Parsoid parserTests.
C. Scott Ananian [Tue, 25 Mar 2014 16:51:15 +0000 (12:51 -0400)]
Sync up with Parsoid parserTests.

This now aligns with Parsoid commit b2e209c4d370a4a83f33bb1a9f6f7794e7fda3ca

Change-Id: I27e0373436cbfd16b1558ca2b2e998144b808f4b

10 years agoFix CodeSniffer errors and warnings in includes/specials (1)
Siebrand Mazeland [Sat, 22 Mar 2014 23:15:34 +0000 (00:15 +0100)]
Fix CodeSniffer errors and warnings in includes/specials (1)

Change-Id: Iafbd82756b00b1ddd5e38a6603037845238c08fd

10 years agoMerge "Remove $wgHttpOnlyBlacklist"
jenkins-bot [Tue, 25 Mar 2014 13:13:34 +0000 (13:13 +0000)]
Merge "Remove $wgHttpOnlyBlacklist"

10 years agoMerge "Remove unused style for #loginend and #signupend"
jenkins-bot [Tue, 25 Mar 2014 12:26:17 +0000 (12:26 +0000)]
Merge "Remove unused style for #loginend and #signupend"

10 years agoMerge "Adding function documentation for Skin::footerLink()"
jenkins-bot [Tue, 25 Mar 2014 10:25:30 +0000 (10:25 +0000)]
Merge "Adding function documentation for Skin::footerLink()"

10 years agoHave ?download parameter trigger Content-Disposition: attachment
Gilles Dubuc [Mon, 24 Mar 2014 23:31:21 +0000 (00:31 +0100)]
Have ?download parameter trigger Content-Disposition: attachment

This parameter triggers Content-Disposition: Attachment which
makes the browser download the image instead of displaying it.

This is needed by Media Viewer to allow users to click a button in
order to download an image at a given resolution or the original.

Change-Id: I470a24a09139ac65588312104995e34d97a89b0f

10 years agoRemove unused style for #loginend and #signupend
Fomafix [Tue, 25 Mar 2014 08:25:39 +0000 (08:25 +0000)]
Remove unused style for #loginend and #signupend

loginend in skins/common/commonContent.css was added in
https://gerrit.wikimedia.org/r/53614
and is now unused.

clear:both for #loginend and #signupend in skins/monobook/main.css
is not necessary because there are no floating elements above.

Change-Id: Ic472f43f1d1a7ab4b7abb9f19067574f12ce6a6b

10 years agoUse /usr/bin/ as default folder for DjVu tools in unit tests
Tpt [Tue, 25 Mar 2014 08:18:32 +0000 (09:18 +0100)]
Use /usr/bin/ as default folder for DjVu tools in unit tests

It's the path in most GNU/Linux distributions

Allows also tests to run in Travis

Change-Id: I2fead84184dca94e1407104287f42ebf6112d712

10 years agoMerge "Fix documentation of wfDebugLog()"
jenkins-bot [Tue, 25 Mar 2014 07:19:54 +0000 (07:19 +0000)]
Merge "Fix documentation of wfDebugLog()"

10 years agoMerge "Set up node-jscs via Grunt (and pass it)"
jenkins-bot [Tue, 25 Mar 2014 07:01:19 +0000 (07:01 +0000)]
Merge "Set up node-jscs via Grunt (and pass it)"