lhc/web/wiklou.git
10 years agoMerge "Fix usage of $wgDebugDumpSql"
jenkins-bot [Mon, 7 Apr 2014 21:22:02 +0000 (21:22 +0000)]
Merge "Fix usage of $wgDebugDumpSql"

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Mon, 7 Apr 2014 20:30:49 +0000 (20:30 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I65a75087d4eec55f12674de5881ecb34f2d8563a

10 years agoSplit /resources into /resources/lib and /resources/src
James D. Forrester [Thu, 3 Apr 2014 16:17:09 +0000 (09:17 -0700)]
Split /resources into /resources/lib and /resources/src

Currently, MediaWiki has a mess of resources, some but not all of which are upstream libraries.
This means that occasionally people will attempt to make local modifications of the libraries
by accident, or deliberately but do not flag it, making dependency management a challenge (and
fixing upstream-related bugs a headache).

Instead, we now split the /resources directory into a /resources/lib directory for those items
which are used purely as intact upstream libraries, and a /resources/src directroy for those
which are either local libraries written for MediaWiki and mastered here, or downstream forks
of upstream libraries which require particular care and attention when being upgraded. Also,
some incidental files which are not to be loaded as part of a module have been moved to better
locations.

Upstream libaries

* jquery
resources/jquery/jquery.js

* jquery.appear
resources/jquery/jquery.appear.js

* jquery.async
resources/jquery/jquery.async.js

* jquery.chosen
resources/jquery.chosen/*

* jquery.cookie
resources/jquery/jquery.cookie.js

* jquery.form
resources/jquery/jquery.form.js

* jquery.fullscreen.js
resources/jquery/jquery.fullscreen.js

* jquery.hoverIntent
resources/jquery/jquery.hoverIntent.js

* jquery.json
resources/jquery/jquery.json.js

* jquery.mockjax
resources/jquery/jquery.mockjax.js

* jquery.qunit
resources/jquery/jquery.qunit.css
resources/jquery/jquery.qunit.js

* jquery.jStorage
resources/jquery/jquery.jStorage.js

* jquery.throttle-debounce
resources/jquery/jquery.ba-throttle-debounce.js

* jquery.validate
resources/jquery/jquery.validate.js

* jquery.xmldom
resources/jquery/jquery.xmldom.js

* moment
resources/moment/*

* OOjs
resource/oojs/*

* OOjs UI
resources/oojs-ui/*

* jquery.ui.*
resources/jquery.ui/*
resources/jquery.ui/themes/default moved to resources/lib/jquery.ui/themes/
resources/jquery.ui/themes/vector moved to resources/src/jquery.ui-themes/

* jquery.effects.*
resources/jquery.effects/*

* sinon
resources/sinonjs/*

Upstream libraries forked for MediaWiki

* jquery.color
resources/jquery/jquery.color.js

* jquery.tipsy
resources/jquery.tipsy/*

Local libraries

* jquery.arrowSteps
resources/jquery/jquery.arrowSteps.css
resources/jquery/jquery.arrowSteps.js
resources/jquery/images/jquery.arrowSteps.divider-ltr.png
resources/jquery/images/jquery.arrowSteps.divider-rtl.png
resources/jquery/images/jquery.arrowSteps.head-ltr.png
resources/jquery/images/jquery.arrowSteps.head-rtl.png
resources/jquery/images/jquery.arrowSteps.tail-ltr.png
resources/jquery/images/jquery.arrowSteps.tail-rtl.png

* jquery.autoEllipsis
resources/jquery/jquery.autoEllipsis.js

* jquery.badge
resources/jquery/jquery.badge.css
resources/jquery/jquery.badge.js

* jquery.byteLength
resources/jquery/jquery.byteLength.js

* jquery.byteLimit
resources/jquery/jquery.byteLimit.js

* jquery.checkboxShiftClick
resources/jquery/jquery.checkboxShiftClick.js

* jquery.client
resources/jquery/jquery.client.js

* jquery.colorUtil
resources/jquery/jquery.colorUtil.js

* jquery.delayedBind
resources/jquery/jquery.delayedBind.js

* jquery.expandableField
resources/jquery/jquery.expandableField.js

* jquery.farbtastic
resources/jquery/jquery.farbtastic.css
resources/jquery/jquery.farbtastic.js
resources/jquery/images/marker.png
resources/jquery/images/mask.png
resources/jquery/images/wheel.png

* jquery.footHovzer
resources/jquery/jquery.footHovzer.css
resources/jquery/jquery.footHovzer.js

* jquery.getAttrs
resources/jquery/jquery.getAttrs.js

* jquery.hidpi
resources/jquery/jquery.hidpi.js

* jquery.highlightText
resources/jquery/jquery.highlightText.js

* jquery.localize
resources/jquery/jquery.localize.js

* jquery.makeCollapsible
resources/jquery/jquery.makeCollapsible.css
resources/jquery/jquery.makeCollapsible.js

* jquery.mw-jump
resources/jquery/jquery.mw-jump.js

* jquery.mwExtension
resources/jquery/jquery.mwExtension.js

* jquery.placeholder
resources/jquery/jquery.placeholder.js

* jquery.spinner
resources/jquery/jquery.spinner.css
resources/jquery/jquery.spinner.js
resources/jquery/images/spinner-large.gif
resources/jquery/images/spinner.gif

* jquery.suggestions
resources/jquery/jquery.suggestions.css
resources/jquery/jquery.suggestions.js

* jquery.tabIndex
resources/jquery/jquery.tabIndex.js

* jquery.tablesorter
resources/jquery/jquery.tablesorter.css
resources/jquery/jquery.tablesorter.js
resources/jquery/images/sort_both.gif
resources/jquery/images/sort_down.gif
resources/jquery/images/sort_none.gif
resources/jquery/images/sort_up.gif

* jquery.textSelection
resources/jquery/jquery.textSelection.js

* jquery.qunit.completenessTest
resources/jquery/jquery.qunit.completenessTest.js

* mediawiki
resources/mediawiki/mediawiki.js
resources/mediawiki/mediawiki.log.js

* mediawiki.api
resources/mediawiki.api/mediawiki.api.js

* mediawiki.api.category
resources/mediawiki.api/mediawiki.api.category.js

* mediawiki.api.edit
resources/mediawiki.api/mediawiki.api.edit.js

* mediawiki.api.login
resources/mediawiki.api/mediawiki.api.login.js

* mediawiki.api.parse
resources/mediawiki.api/mediawiki.api.parse.js

* mediawiki.api.watch
resources/mediawiki.api/mediawiki.api.watch.js

* mediawiki.debug
resources/mediawiki/mediawiki.debug.js
resources/mediawiki/mediawiki.debug.less
resources/mediawiki/mediawiki.debug.profile.css
resources/mediawiki/mediawiki.debug.profile.js

* mediawiki.debug.init
resources/mediawiki/mediawiki.debug.init.js

* mediawiki.feedback
resources/mediawiki/mediawiki.feedback.css
resources/mediawiki/mediawiki.feedback.js
resources/mediawiki/mediawiki.feedback.spinner.gif

* mediawiki.hidpi
resources/mediawiki/mediawiki.hidpi.js

* mediawiki.hlist
resources/mediawiki/mediawiki.hlist.css
resources/mediawiki/mediawiki.hlist.js

* mediawiki.htmlform
resources/mediawiki/mediawiki.htmlform.js

* mediawiki.icon
resources/mediawiki/mediawiki.icon.less
resources/mediawiki/images/arrow-collapsed-ltr.png
resources/mediawiki/images/arrow-collapsed-ltr.svg
resources/mediawiki/images/arrow-collapsed-rtl.png
resources/mediawiki/images/arrow-collapsed-rtl.svg
resources/mediawiki/images/arrow-expanded.png
resources/mediawiki/images/arrow-expanded.svg

* mediawiki.inspect
resources/mediawiki/mediawiki.inspect.js

* mediawiki.notification
resources/mediawiki/mediawiki.notification.css
resources/mediawiki/mediawiki.notification.hideForPrint.css
resources/mediawiki/mediawiki.notification.js

* mediawiki.notify
resources/mediawiki/mediawiki.notify.js

* mediawiki.searchSuggest
resources/mediawiki/mediawiki.searchSuggest.css
resources/mediawiki/mediawiki.searchSuggest.js

* mediawiki.Title
resources/mediawiki/mediawiki.Title.js

* mediawiki.toc
resources/mediawiki/mediawiki.toc.js

* mediawiki.Uri
resources/mediawiki/mediawiki.Uri.js

* mediawiki.user
resources/mediawiki/mediawiki.user.js

* mediawiki.util
resources/mediawiki/mediawiki.util.js

* mediawiki.action.edit
resources/mediawiki.action/mediawiki.action.edit.js

* mediawiki.action.edit.styles
resources/mediawiki.action/mediawiki.action.edit.styles.css

* mediawiki.action.edit.collapsibleFooter
resources/mediawiki.action/mediawiki.action.edit.collapsibleFooter.css
resources/mediawiki.action/mediawiki.action.edit.collapsibleFooter.js

* mediawiki.action.edit.preview
resources/mediawiki.action/mediawiki.action.edit.preview.js

* mediawiki.action.history
resources/mediawiki.action/mediawiki.action.history.js

* mediawiki.action.history.diff
resources/mediawiki.action/mediawiki.action.history.diff.css

* mediawiki.action.view.dblClickEdit
resources/mediawiki.action/mediawiki.action.view.dblClickEdit.js

* mediawiki.action.view.metadata
resources/mediawiki.action/mediawiki.action.view.metadata.js

* mediawiki.action.view.postEdit
resources/mediawiki.action/mediawiki.action.view.postEdit.css
resources/mediawiki.action/mediawiki.action.view.postEdit.js
resources/mediawiki.action/images/green-checkmark.png

* mediawiki.action.view.redirectToFragment
resources/mediawiki.action/mediawiki.action.view.redirectToFragment.js

* mediawiki.action.view.rightClickEdit
resources/mediawiki.action/mediawiki.action.view.rightClickEdit.js

* mediawiki.action.edit.editWarning
resources/mediawiki.action/mediawiki.action.edit.editWarning.js

* mediawiki.action.watch.ajax
  No files associated with this resource.

* mediawiki.language
resources/mediawiki.language/mediawiki.language.js
resources/mediawiki.language/mediawiki.language.numbers.js
resources/mediawiki.language/languages/bs.js
resources/mediawiki.language/languages/dsb.js
resources/mediawiki.language/languages/fi.js
resources/mediawiki.language/languages/ga.js
resources/mediawiki.language/languages/he.js
resources/mediawiki.language/languages/hsb.js
resources/mediawiki.language/languages/hu.js
resources/mediawiki.language/languages/hy.js
resources/mediawiki.language/languages/la.js
resources/mediawiki.language/languages/os.js
resources/mediawiki.language/languages/ru.js
resources/mediawiki.language/languages/sl.js
resources/mediawiki.language/languages/uk.js

* mediawiki.cldr
resources/mediawiki.language/mediawiki.cldr.js

* mediawiki.libs.pluralruleparser
  Possibly should be moved to /lib
resources/mediawiki.libs/CLDRPluralRuleParser.js

* mediawiki.language.init
resources/mediawiki.language/mediawiki.language.init.js

* mediawiki.jqueryMsg
resources/mediawiki/mediawiki.jqueryMsg.js
resources/mediawiki/mediawiki.jqueryMsg.peg

* mediawiki.language.months
resources/mediawiki.language/mediawiki.language.months.js

* mediawiki.libs.jpegmeta
resources/mediawiki.libs/mediawiki.libs.jpegmeta.js

* mediawiki.page.gallery
resources/mediawiki.page/mediawiki.page.gallery.js

* mediawiki.page.ready
resources/mediawiki.page/mediawiki.page.ready.js

* mediawiki.page.startup
resources/mediawiki.page/mediawiki.page.startup.js

* mediawiki.page.patrol.ajax
resources/mediawiki.page/mediawiki.page.patrol.ajax.js

* mediawiki.page.watch.ajax
resources/mediawiki.page/mediawiki.page.watch.ajax.js

* mediawiki.page.image.pagination
resources/mediawiki.page/mediawiki.page.image.pagination.js

* mediawiki.special
resources/mediawiki.special/mediawiki.special.css
resources/mediawiki.special/mediawiki.special.js

* mediawiki.special.block
resources/mediawiki.special/mediawiki.special.block.css
resources/mediawiki.special/mediawiki.special.block.js

* mediawiki.special.changeemail
resources/mediawiki.special/mediawiki.special.changeemail.css
resources/mediawiki.special/mediawiki.special.changeemail.js

* mediawiki.special.changeslist
resources/mediawiki.special/mediawiki.special.changeslist.css

* mediawiki.special.changeslist.legend
resources/mediawiki.special/mediawiki.special.changeslist.legend.css

* mediawiki.special.changeslist.legend.js
resources/mediawiki.special/mediawiki.special.changeslist.legend.js

* mediawiki.special.changeslist.enhanced
resources/mediawiki.special/mediawiki.special.changeslist.enhanced.css

* mediawiki.special.movePage
resources/mediawiki.special/mediawiki.special.movePage.js

* mediawiki.special.pagesWithProp
resources/mediawiki.special/mediawiki.special.pagesWithProp.css

* mediawiki.special.preferences
resources/mediawiki.special/mediawiki.special.preferences.css
resources/mediawiki.special/mediawiki.special.preferences.js

* mediawiki.special.recentchanges
resources/mediawiki.special/mediawiki.special.recentchanges.js

* mediawiki.special.search
resources/mediawiki.special/mediawiki.special.search.css
resources/mediawiki.special/mediawiki.special.search.js

* mediawiki.special.undelete
resources/mediawiki.special/mediawiki.special.undelete.js

* mediawiki.special.upload
resources/mediawiki.special/mediawiki.special.upload.js

* mediawiki.special.userlogin.common.styles
resources/mediawiki.special/mediawiki.special.userlogin.common.css
resources/mediawiki.special/images/icon-lock.png

* mediawiki.special.userlogin.signup.styles
resources/mediawiki.special/mediawiki.special.userlogin.signup.css
resources/mediawiki.special/images/icon-edits.png
resources/mediawiki.special/images/icon-pages.png
resources/mediawiki.special/images/icon-contributors.png

* mediawiki.special.userlogin.login.styles
resources/mediawiki.special/mediawiki.special.userlogin.login.css
resources/mediawiki.special/images/glyph-people-large.png

* mediawiki.special.userlogin.common.js
resources/mediawiki.special/mediawiki.special.userlogin.common.js

* mediawiki.special.userlogin.signup.js
resources/mediawiki.special/mediawiki.special.userlogin.signup.js

* mediawiki.special.javaScriptTest
resources/mediawiki.special/mediawiki.special.javaScriptTest.js

* mediawiki.special.version
resources/mediawiki.special/mediawiki.special.version.css

* mediawiki.ui
resources/mediawiki.ui/default.less
resources/mediawiki.ui/vector.less
resources/mediawiki.ui/components/utilities.less
resources/mediawiki.ui/components/default/forms.less
resources/mediawiki.ui/components/vector/containers.less
resources/mediawiki.ui/components/vector/forms.less
resources/mediawiki.ui/mixins/effects.less
resources/mediawiki.ui/mixins/forms.less
resources/mediawiki.ui/mixins/type.less
resources/mediawiki.ui/mixins/utilities.less
resources/mediawiki.ui/settings/colors.less
resources/mediawiki.ui/settings/typography.less
resources/mediawiki.ui/styleguide.md

* mediawiki.ui.button
resources/mediawiki.ui/components/default/buttons.less
resources/mediawiki.ui/components/vector/buttons.less

Legacy modules, untouched:

* mediawiki.legacy.ajax
* mediawiki.legacy.commonPrint
* mediawiki.legacy.config
* mediawiki.legacy.protect
* mediawiki.legacy.shared
* mediawiki.legacy.oldshared
* mediawiki.legacy.upload
* mediawiki.legacy.wikibits

Miscellaneous files moved elsewhere

* A currently-failing (unused?) script attempting to build some kss style documentation.
  Previously in the root of the resources directory, now moved to a new folder, /docs/kss.
Makefile
README.txt
package.json
scripts/nodecheck.sh
styleguide-template/index.html
styleguide-template/public/kss.less
styleguide-template/public/less.js

* ResourceLoader startup JS code was also moved to /src
resources/startup.js

* mediawiki.mixins, hard-coded to be loaded by ResourceLoader, also moved to /src
resources/mediawiki.less/mediawiki.mixins.animation.less
resources/mediawiki.less/mediawiki.mixins.less
resources/mediawiki.less/mediawiki.mixins.rotation.less

* jquery.cycle.all.js appears not to be refered to (?!):
  (added in 2f1f0abc6b)
resources/jquery/jquery.cycle.all.js

Change-Id: Id5ead1453412e763bdb3763084e43694517088fd

10 years agoMerge "Cache VCS commit id/date text on Special:Version"
jenkins-bot [Mon, 7 Apr 2014 19:16:03 +0000 (19:16 +0000)]
Merge "Cache VCS commit id/date text on Special:Version"

10 years agoCache VCS commit id/date text on Special:Version
Alex Monk [Sun, 17 Nov 2013 17:30:42 +0000 (17:30 +0000)]
Cache VCS commit id/date text on Special:Version

So Special:Version works on beta.wmflabs.org again

Bug: 53335
Change-Id: I5a5b23a73974aba2322bf69f534e8aa8b60741db

10 years agojquery.suggestions, mediawiki.searchSuggest: Don't use jquery.autoEllipsis
Bartosz Dziewoński [Tue, 4 Feb 2014 12:11:17 +0000 (13:11 +0100)]
jquery.suggestions, mediawiki.searchSuggest: Don't use jquery.autoEllipsis

(How's that for a loaded commit topic, huh?)

We can just use text-overflow: ellipsis, which is widely supported
these days. The result is a lot less code being loaded on every page
view and a lot less processing being done on the suggestions.

This changes the position of the ellipsis from the "middle" of the
text to the end of it. I don't think this is a problem.

Bug: 30309
Bug: 59172
Change-Id: I6fc229a292a90a3cbb945b58061ee99b0ac7f97d

10 years agoMerge "Error Msg for missing db username & password when installing"
jenkins-bot [Mon, 7 Apr 2014 16:58:59 +0000 (16:58 +0000)]
Merge "Error Msg for missing db username & password  when installing"

10 years agoError Msg for missing db username & password when installing
pubudu538 [Sat, 15 Mar 2014 07:07:07 +0000 (12:37 +0530)]
Error Msg for missing db username & password  when installing

Added configurations for Mysql and Postgresql installers
to display an error message if user doesnt input a username to the
database username

Bug: 43528
Bug: 59663
Change-Id: Ib6b05d2d7e8ebb4438d3b0051c33d367f41a9957

10 years agoApiQueryDeletedrevs: Fix getDescription() docs
Bartosz Dziewoński [Mon, 7 Apr 2014 14:10:55 +0000 (16:10 +0200)]
ApiQueryDeletedrevs: Fix getDescription() docs

Strings were incorrectly quoted.

Change-Id: I5b7aa4709a9bfde36b4e81ba8ea3e15efde003b1

10 years agoMerge "Allow access to revision deleted wikitext on action=edit"
jenkins-bot [Mon, 7 Apr 2014 13:19:51 +0000 (13:19 +0000)]
Merge "Allow access to revision deleted wikitext on action=edit"

10 years agoMerge "Revert "Temporarily remove tests added in I8eef5a165""
jenkins-bot [Mon, 7 Apr 2014 13:18:30 +0000 (13:18 +0000)]
Merge "Revert "Temporarily remove tests added in I8eef5a165""

10 years agoMerge "Changed some comments from /// to /** @var */"
jenkins-bot [Mon, 7 Apr 2014 12:13:15 +0000 (12:13 +0000)]
Merge "Changed some comments from /// to /** @var */"

10 years agoRemove misspelling for ExpandTemplates special page
Siebrand Mazeland [Mon, 7 Apr 2014 10:00:28 +0000 (12:00 +0200)]
Remove misspelling for ExpandTemplates special page

This misspelling would have been a case insensitive equivalent, so it was
not needed.

Change-Id: I5e234cba686b1f2a8d359c370301425c0ae332ce

10 years agoMerge "Remove button-math"
jenkins-bot [Mon, 7 Apr 2014 09:38:35 +0000 (09:38 +0000)]
Merge "Remove button-math"

10 years agoRemove button-math
Moritz Schubotz (Physikerwelt) [Sun, 6 Apr 2014 08:37:39 +0000 (08:37 +0000)]
Remove button-math

The button-math is now created by the Extension:Math
see I3d126c1c252c27fa65ab8fb42ffab66a2d99cfa8

Bug: 60471
Change-Id: Ib17aa47c7d647e1ed293541adbdd1aa77e25e59e

10 years agoChanged some comments from /// to /** @var */
umherirrender [Sun, 6 Apr 2014 18:02:32 +0000 (20:02 +0200)]
Changed some comments from /// to /** @var */

Change-Id: I55b30099e4464c272c35bcabbddbb0b1364a5d65

10 years agoAllow passing parameters to preload
Jackmcbarn [Mon, 7 Apr 2014 01:03:02 +0000 (21:03 -0400)]
Allow passing parameters to preload

When pages are loaded in the edit box via preload, allow parameter
substitution. The interface-style $1 is used rather than the
template-style {{{1}}} to avoid conflicts with preloads that add template
parameters. Syntax is:
action=edit&preload=Foo&preloadparams[]=first&preloadparams[]=second

Bug: 12853
Change-Id: If02cf4b3dba9f9d22a956d8bfff224677cbce00d

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sun, 6 Apr 2014 19:50:01 +0000 (19:50 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Ifa7ad1aff1263465248fb63d40007bb99c3024ff

10 years agoFix [missing] variables in @param docs
umherirrender [Sun, 6 Apr 2014 18:11:30 +0000 (20:11 +0200)]
Fix [missing] variables in @param docs

Two places found without variable, one without $ and one only missed a
space before $

Change-Id: Iacd7c386d57223f3a112b59cd11383ef5c0ac2f1

10 years agoMerge "Remove unused 'prefs-beta' message"
jenkins-bot [Sun, 6 Apr 2014 16:19:47 +0000 (16:19 +0000)]
Merge "Remove unused 'prefs-beta' message"

10 years agoRevert "Temporarily remove tests added in I8eef5a165"
Aude [Sun, 6 Apr 2014 13:18:07 +0000 (13:18 +0000)]
Revert "Temporarily remove tests added in I8eef5a165"

this was to be temporary, right? we need the tests in.

If there are issues with jenkins, this is not the *best*
way to fix them.

This reverts commit 44a19685317de16f5afe42b710d8d412352d7fe9.

Change-Id: I5dd60a9818c28155d96a6642c588781667e682c3

10 years agoMerge "mediawiki.action.edit.js: Remove WikiEditor iframe hack from 2010"
jenkins-bot [Sun, 6 Apr 2014 13:01:36 +0000 (13:01 +0000)]
Merge "mediawiki.action.edit.js: Remove WikiEditor iframe hack from 2010"

10 years agoMerge "mediawiki.util: Init tooltipAccessKeyPrefix immediately instead of on domready"
jenkins-bot [Sun, 6 Apr 2014 11:43:18 +0000 (11:43 +0000)]
Merge "mediawiki.util: Init tooltipAccessKeyPrefix immediately instead of on domready"

10 years agomediawiki.util: Init tooltipAccessKeyPrefix immediately instead of on domready
Fomafix [Sat, 5 Apr 2014 18:46:53 +0000 (18:46 +0000)]
mediawiki.util: Init tooltipAccessKeyPrefix immediately instead of on domready

Change-Id: I60e30e1d029d29b713b229bf2b0313e92a59f120

10 years agoMerge "Make chunked upload jobs robust in face of exceptions."
jenkins-bot [Sun, 6 Apr 2014 09:26:10 +0000 (09:26 +0000)]
Merge "Make chunked upload jobs robust in face of exceptions."

10 years agoMerge "When uploading a new file, save to memcached directly after commit"
jenkins-bot [Sun, 6 Apr 2014 09:26:03 +0000 (09:26 +0000)]
Merge "When uploading a new file, save to memcached directly after commit"

10 years agoMerge "Make doEditContent call $dbw->rollback() if exception happens"
jenkins-bot [Sun, 6 Apr 2014 09:12:02 +0000 (09:12 +0000)]
Merge "Make doEditContent call $dbw->rollback() if exception happens"

10 years agoMerge "shared.css: Move sup, sub styling from commonElements to shared styles"
TheDJ [Sun, 6 Apr 2014 08:53:03 +0000 (08:53 +0000)]
Merge "shared.css: Move sup, sub styling from commonElements to shared styles"

10 years agoMake doEditContent call $dbw->rollback() if exception happens
Brian Wolff [Sun, 6 Apr 2014 03:16:37 +0000 (00:16 -0300)]
Make doEditContent call $dbw->rollback() if exception happens

doEditContent calls a variety of methods in the middle of its
database transaction that can throw exceptions. For example if
$revision->insertOn() throws an exception, it can cause
referential integrity issues unless the transaction is rolled
back by something further up the chain (Thus see I5807e, I8f1da5).

It seems like it would be more reliable if doEditContent rolled
back its own transaction in exceptional circumstances. So this
patch puts everything in a try block, and does rollback if
an exception happens.

Bug: 63145
Bug: 32551
Change-Id: Icc44687da4edb1a72f13d2b95bfee2eea3ad6808

10 years agoOptimize all SVGs
Bartosz Dziewoński [Sat, 8 Feb 2014 13:48:37 +0000 (14:48 +0100)]
Optimize all SVGs

Once more, with feeling. First reverted attempt: a9b855ee.

Passed with svgo 0.4.2 <https://github.com/svg/svgo>, then prepended
'<?xml version="1.0" encoding="UTF-8"?>' prolog to each file since
svgo sees it fit to remove it and that breaks just about everything.

Previous attempt used a '<?xml version="1.0" ?>' prolog, which
apparently is too short to ensure the file is picked up as an SVG in
some versions of the 'file' utility; see PleaseStand's comments on
bug 59234. We could just add some spaces instead of 'encoding="UTF-8"',
but it seems like a reasonable thing to add.

Skipped the ones in tests/, there's some weird stuff there and they
didn't shrink much when I tried anyway.

Total file size reduced from ~30 KB to ~10 KB.

---

For future reference, the prolog appending was done with the following
script:

for i in `find . -name '*.svg'`
do
    mv $i $i-tmp
    (echo -n '<?xml version="1.0" encoding="UTF-8"?>'; cat $i-tmp) > $i
    rm $i-tmp
done

---

Bug: 59744
Change-Id: Ic9fdd081003b694dbd7e413ca25fffe782b912b5

10 years agoMerge "Rollback transaction in case of uncaught exceptions during job"
jenkins-bot [Sun, 6 Apr 2014 02:31:43 +0000 (02:31 +0000)]
Merge "Rollback transaction in case of uncaught exceptions during job"

10 years agoWhen uploading a new file, save to memcached directly after commit
Brian Wolff [Sun, 6 Apr 2014 02:50:10 +0000 (23:50 -0300)]
When uploading a new file, save to memcached directly after commit

Previously if an exception was thrown when creating the description
page, the old (negative) memcached entry would not be purged, and
the file would appear not to exist until 24 hours later.

This way, as soon as we have the image row committed to db, we
change the memcache entry, so memcache of image row always looks
like actual image row.

Bug: 32551
Change-Id: I9c260e9a4a1e0d6ade1771542dd834f969904cef

10 years agoMake chunked upload jobs robust in face of exceptions.
Brian Wolff [Sun, 6 Apr 2014 02:15:26 +0000 (23:15 -0300)]
Make chunked upload jobs robust in face of exceptions.

If an exception occurs when creating the new image page during
PublishStashedFile (for example, if ExternalStorage servers
become overloaded), the job is aborted, but the current
transaction is not aborted. Then the next job comes along, does
$dbw->begin(), which implicitly commits the current open
transactions, causing database corruption (entries in page table
with page_latest = 0).

This patch ensures that if some unknown exception occurs during
the job, that the database gets rolled back to a known good state.

I also plan to make a separate patch to make the recordUpload
code handle exceptions properly. Nonetheless, I think its
important that the general job code be as robust as possible.

Bug: 32551
Change-Id: Icb5e06e81700e5dcf0d4e739c7b2bb3221e718b8

10 years agoRollback transaction in case of uncaught exceptions during job
Brian Wolff [Sun, 6 Apr 2014 02:02:02 +0000 (23:02 -0300)]
Rollback transaction in case of uncaught exceptions during job

If there is an unhandled exception during a job, rollback the
transaction to be safe. Otherwise its likely that the
transaction will be commited when next job is run, as $dbw->begin()
implicitly commits any open pending transactions. This can result
in database referential integrity issues.

Change-Id: I5807e64440ff6c6651fbbb4924645d05d843b98e

10 years agoMerge "WatchAction: Add 'returnto' and 'returntoquery' to the login link"
jenkins-bot [Sun, 6 Apr 2014 01:12:18 +0000 (01:12 +0000)]
Merge "WatchAction: Add 'returnto' and 'returntoquery' to the login link"

10 years agoWatchAction: Add 'returnto' and 'returntoquery' to the login link
konarak [Fri, 4 Apr 2014 08:35:28 +0000 (14:05 +0530)]
WatchAction: Add 'returnto' and 'returntoquery' to the login link

Bug: 60594
Change-Id: Ic8c0ea5b203c63f9273992cb70bfb06c0d461311

10 years agoRemove unused 'prefs-beta' message
Bartosz Dziewoński [Sat, 5 Apr 2014 23:49:03 +0000 (01:49 +0200)]
Remove unused 'prefs-beta' message

Unused since change Id8b9a47a in WikiEditor (9 months ago).

Bug: 28555
Change-Id: I76667a15ccbb1f6bdc5e5a67ffcb0a65ce55d124

10 years agomediawiki.special: Kill width: 98% on borderless tables
Bartosz Dziewoński [Tue, 4 Mar 2014 20:31:47 +0000 (21:31 +0100)]
mediawiki.special: Kill width: 98% on borderless tables

For Special:Prefixindex this dates back to the stone age, I didn't
bother finding out what the reasoning was. width: 100% was clearly
intended.

For Special:EmailUser there isn't even such an element anywhere.

Change-Id: Ie3a7e7fa00961b62e46e3f8cd05fd2e7d3c25f06

10 years agoVector: Simply style external links
jrobson [Fri, 4 Apr 2014 00:58:56 +0000 (17:58 -0700)]
Vector: Simply style external links

These external link icons are extremely costly with little gain.
During the typography experiment, these were removed, no one
raised this as an issue during the 5  months it was live, suggesting
that explicit pdf icons etc are not as useful as we like to believe.

As a result of these findings posting this patch upstream.
Bug: 54604
Change-Id: If985b16c4f682d737683597ed80951c6d6644c8f

10 years agoPer wikitech-l, remove premature wfDeprecated()
Max Semenik [Sat, 5 Apr 2014 21:51:50 +0000 (01:51 +0400)]
Per wikitech-l, remove premature wfDeprecated()

This way of deprecation is way too rushed, we generally don't mark as
@deprecated and put wfDeprecated() in the same release.

Change-Id: I5dc07d9819b6fb77fcf3194ed16676eaacb834a8

10 years agoFix spacing after @param and friends in comments
umherirrender [Sat, 5 Apr 2014 19:54:24 +0000 (21:54 +0200)]
Fix spacing after @param and friends in comments

Searched for:
\@(param|return|throws|since|deprecated|access|todo|var)[ \t]{2,}

Change-Id: Icce22ba9fe0635455691ca58d9872d618151f346

10 years agoMerge "Localisation updates from https://translatewiki.net."
Translation updater bot [Sat, 5 Apr 2014 19:57:38 +0000 (19:57 +0000)]
Merge "Localisation updates from https://translatewiki.net."

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Sat, 5 Apr 2014 19:35:17 +0000 (19:35 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: I44b9547b386f7c169a7add27096e2708d5a3cce9

10 years agofix typo in comment in Preferences.php
umherirrender [Sat, 5 Apr 2014 19:13:38 +0000 (21:13 +0200)]
fix typo in comment in Preferences.php

The name of the preference was spelled wrong.

Change-Id: I443d0a8fc67c89da36b5c725dd3f3513d4170357

10 years agoMerge "Remove trailing line break check from MemcachedBagOStuff::debugLog()"
jenkins-bot [Sat, 5 Apr 2014 19:11:24 +0000 (19:11 +0000)]
Merge "Remove trailing line break check from MemcachedBagOStuff::debugLog()"

10 years agoCorrectly order AutoLoader class definitions
Alexandre Emsenhuber [Sat, 5 Apr 2014 09:06:37 +0000 (11:06 +0200)]
Correctly order AutoLoader class definitions

- Group per directory
- Sort by class name for each directory

Change-Id: If4771f2868c2183f60a6321533142a1ad5cdc7cd

10 years agoRemove trailing line break check from MemcachedBagOStuff::debugLog()
Alexandre Emsenhuber [Sat, 5 Apr 2014 18:28:06 +0000 (20:28 +0200)]
Remove trailing line break check from MemcachedBagOStuff::debugLog()

wfDebugLog() already does the same, so it's unnecessary here.

Change-Id: Ia7bbbd2806fcd638861d010835c33969322d262a

10 years agoFix path after file got moved
jeroendedauw [Sat, 5 Apr 2014 17:49:21 +0000 (19:49 +0200)]
Fix path after file got moved

Change-Id: Ic67f590fb53f2b96cfd8a0192968cb4953bb0d2b

10 years agoFix usage of $wgDebugDumpSql
Alexandre Emsenhuber [Sat, 5 Apr 2014 06:54:11 +0000 (08:54 +0200)]
Fix usage of $wgDebugDumpSql

- In DatabaseMssql, use $this->debug() instead of $wgDebugDumpSql
  so that it takes into account the DBO_DEBUG flag
- Use the same construction to set the DBO_DEBUG flag in
  LBFactorySimple::newMainLB() as for the other flags so that
  it is easier to read the code

Change-Id: Ie775cdb3677739a97e0d64dabbf80fc685149337

10 years agoFix documentation typo
Rob Moen [Sat, 5 Apr 2014 03:01:42 +0000 (20:01 -0700)]
Fix documentation typo

Change-Id: I535dd23eeccd6686c64a885f06e030b756e67fec

10 years agoRevert "Localisation updates from https://translatewiki.net."
Raimond Spekking [Fri, 4 Apr 2014 20:34:27 +0000 (20:34 +0000)]
Revert "Localisation updates from https://translatewiki.net."

wtf?

This reverts commit ff744475d7d37d4887ebaba3d69884317a736c34.

Change-Id: Ie7ea50de88f87aa527205a816837dbfa5950bb0b

10 years agoLocalisation updates from https://translatewiki.net.
Translation updater bot [Fri, 4 Apr 2014 20:32:02 +0000 (20:32 +0000)]
Localisation updates from https://translatewiki.net.

Change-Id: Idfe1499c79cd459377b31ca022fc45a9e0b3e833

10 years agoMerge "mw.hook: Make hook.fire actually chainable"
jenkins-bot [Fri, 4 Apr 2014 19:43:07 +0000 (19:43 +0000)]
Merge "mw.hook: Make hook.fire actually chainable"

10 years agoMerge "Update jquery.fullscreen to newer version (fix IE11 support)"
jenkins-bot [Fri, 4 Apr 2014 19:43:05 +0000 (19:43 +0000)]
Merge "Update jquery.fullscreen to newer version (fix IE11 support)"

10 years agomw.hook: Make hook.fire actually chainable
Timo Tijhof [Fri, 4 Apr 2014 01:35:33 +0000 (18:35 -0700)]
mw.hook: Make hook.fire actually chainable

It was being called without being bound to the mw.hook instance,
as such the (detachable) callbackList.fireWith method (which
returns its given 'this') returned the callbackList instance
instead of the mw.hook object literal.

The tests weren't catching it because it was just checking one
can call .fire() without it crashing, but it was in fact calling
list.fire instead of hook.fire (which unlike #add and #remove are
not compatible, and we might add new methods later on).

Change-Id: If3d4dfbed494e7ff9f32514e539cfa089aea18ac

10 years agoMerge "Add a dot at the end of the deprecate messages"
jenkins-bot [Fri, 4 Apr 2014 08:11:44 +0000 (08:11 +0000)]
Merge "Add a dot at the end of the deprecate messages"

10 years agoAllow access to revision deleted wikitext on action=edit
umherirrender [Tue, 25 Mar 2014 19:19:55 +0000 (20:19 +0100)]
Allow access to revision deleted wikitext on action=edit

EditPage.php has a Revision::getContent() without specifiy the
visiblity, that will give a empty textbox for revision deleted revisions
of a page, when editing this with the unhide=1 param.
Adding Revision::FOR_THIS_USER to allow admins or oversighter to see the
wikitext of such a revision.

Change-Id: Ie010346b613d96eacee6e33be0ed141f7061b709

10 years agoresourceloader: Refactor module links output
Timo Tijhof [Thu, 14 Nov 2013 16:54:19 +0000 (17:54 +0100)]
resourceloader: Refactor module links output

Changes:

* Removed hardcoded logic in OutputPage regarding modules
  being "enabled".
  Previously we would always output state=loading and use
  $wgAllowUserJs (and others) to decide whether to output
  state=ready or makeResourceLoaderLink.

  Now, we no longer unconditionally output state=loading and
  simply always call makeResourceLoaderLink. That method takes
  care of checking whether modules are enabled and non-empty
  and returns state=ready when that is the case.

  This cleans up cases where the duplicated and incomplete logic
  in OutputPage thought the module was non-empty but turned out
  to be empty and thus would output both state=loading and later
  state=ready for the same module.

* Clean up documentation for makeResourceLoaderLink (inconsistent
  ordering of type hint and $var, and @return was missing the fact
  that the returned html can also contain <link>).

* makeResourceLoaderLink now returns an array of html and module
  states. This allows the consumer of this method to combine the
  states in 1 larger script tag on top of multiple
  makeResourceLoaderLink calls (e.g. one state script followed
  by multiple <script src=load.php>).
  This isn't to reduce html output, but to make sure we inform
  mw.loader about modules before the <script src=load.php>.
  If we were to mix/alternate the state script and load.php
  requests (which are blocking in html), it is possible for those
  scripts to request other modules. We need to prevent duplicate
  loading of modules we already know are going to be requested
  by the HTML output futher down.

* Removed spurious new line.

Example of change in HTML output:

* The output has been reduced from:
  - loader.state( site: loading, user: loading, user.groups: loading )
  - loader.load( .. )
  - <script src="load.php?modules=site ..">
  - loader.state( user: ready, user.groups: ready )

  to:
  - loader.state( site: loading, user: ready, user.groups: ready )
  - loader.load( .. )
  - <script src="load.php?modules=site ..">

Change-Id: I91754ce5fae3d05b4bfa7372372eba81ee2fc579

10 years agoMerge "Callers of ResourceLoader::getModule should check for null return"
jenkins-bot [Fri, 4 Apr 2014 00:54:54 +0000 (00:54 +0000)]
Merge "Callers of ResourceLoader::getModule should check for null return"

10 years agoCallers of ResourceLoader::getModule should check for null return
Ori Livneh [Thu, 3 Apr 2014 23:09:09 +0000 (16:09 -0700)]
Callers of ResourceLoader::getModule should check for null return

ResourceLoader::getModule returns null if cannot find a ResourceLoaderModule
instance or a module configuration array matching the requested name. Existing
callers of that method chain ResourceLoaderModule method calls to the return
value of ResourceLoader::getModule without bothering to check for a null
result. This patch makes the documentation for the method more explicit, and it
adds checks for the return value to existing calls of the method. In some
cases, it is possible to reason to that the call will succeed, on the
assumption that missing modules would have been filtered out by earlier
iterations through the modules array. But in the interest of robustness, it is
always good to check.

Bug: 63310
Change-Id: Ic32f1e61ffee0383f7a8761423099041e3b6b8cc

10 years agoUpdate OOjs UI to v0.1.0-pre (eaa1b7f06d)
James D. Forrester [Thu, 3 Apr 2014 23:56:26 +0000 (16:56 -0700)]
Update OOjs UI to v0.1.0-pre (eaa1b7f06d)

New changes:
468b1c8 Localisation updates from https://translatewiki.net.
3e2a5e1 Update OOjs to v1.0.9
eaa1b7f Add pressed state to option widgets and use instead of initializing items

Change-Id: I6e93d9ab0e4a926c09c5e08e3db045cff99d2098

10 years agoMerge "New API module, list=prefixsearch"
jenkins-bot [Thu, 3 Apr 2014 23:07:58 +0000 (23:07 +0000)]
Merge "New API module, list=prefixsearch"

10 years agoAdded per-wiki queue stats information
Aaron Schulz [Thu, 3 Apr 2014 00:25:14 +0000 (17:25 -0700)]
Added per-wiki queue stats information

Change-Id: I25f42408c9a7a368aa99f4ceb04214f188a74be6

10 years agomediawiki.action.edit.js: Remove WikiEditor iframe hack from 2010
Bartosz Dziewoński [Thu, 3 Apr 2014 20:34:08 +0000 (22:34 +0200)]
mediawiki.action.edit.js: Remove WikiEditor iframe hack from 2010

Introduced in aa69029e2 (r62242) by Roan.

The iframe this refers to is going away for good in I2d736911.

Change-Id: If2f225c51791b46e25468deb4081ecac67db409a

10 years agoUse rgba() for gallery caption background instead of opacity
Brian Wolff [Sat, 1 Mar 2014 07:18:45 +0000 (03:18 -0400)]
Use rgba() for gallery caption background instead of opacity

Opacity applies to child elements, and can't be unset.

Change-Id: Id4b58ccf82cf3b6d23f67408c5311da0eb92fbce

10 years agoshared.css: Move sup, sub styling from commonElements to shared styles
Bartosz Dziewoński [Thu, 3 Apr 2014 17:43:03 +0000 (19:43 +0200)]
shared.css: Move sup, sub styling from commonElements to shared styles

This really should be an even more basic style than I thought when
moving this CSS here from Vector-specific stylesheet.

Follow-up to Ie98f8b57 and Ic5ba8363.

Bug: 49965
Change-Id: I80f8279e10277d1a7389c821037d733ccfc4e166

10 years agoMerge "mediawiki.api: Refactor getToken and postWithToken methods"
jenkins-bot [Thu, 3 Apr 2014 17:41:19 +0000 (17:41 +0000)]
Merge "mediawiki.api: Refactor getToken and postWithToken methods"

10 years agoMerge "ApiFeedRecentChanges: Validate param target"
jenkins-bot [Thu, 3 Apr 2014 14:59:24 +0000 (14:59 +0000)]
Merge "ApiFeedRecentChanges: Validate param target"

10 years agoAdd a dot at the end of the deprecate messages
Fomafix [Thu, 3 Apr 2014 14:52:35 +0000 (14:52 +0000)]
Add a dot at the end of the deprecate messages

Change-Id: I73b4bc296051bf506683434de9bc7b56f3ff825f

10 years agoApiFeedRecentChanges: Validate param target
Niklas Laxström [Sat, 29 Mar 2014 16:00:18 +0000 (16:00 +0000)]
ApiFeedRecentChanges: Validate param target

Change-Id: I6933177d47c25d48b9b55d479afa4dedcc64299d

10 years agoMerge "mediawiki.html: Add missing @return documentation"
jenkins-bot [Thu, 3 Apr 2014 07:42:44 +0000 (07:42 +0000)]
Merge "mediawiki.html: Add missing @return documentation"

10 years agomediawiki.html: Add missing @return documentation
Timo Tijhof [Thu, 3 Apr 2014 01:05:13 +0000 (18:05 -0700)]
mediawiki.html: Add missing @return documentation

Change-Id: I63f12ee44aace6cf4f7762dd67244648b95d7301

10 years agoMerge "Update OOjs UI to v0.1.0-pre (8986c46d35)"
jenkins-bot [Thu, 3 Apr 2014 00:52:23 +0000 (00:52 +0000)]
Merge "Update OOjs UI to v0.1.0-pre (8986c46d35)"

10 years agoAdapt signup form numbers to new Vector typography
S Page [Wed, 2 Apr 2014 23:25:22 +0000 (16:25 -0700)]
Adapt signup form numbers to new Vector typography

The .mw-number-text CSS was less specific than Vector's typography
styling of 'div#content h3'.  Match Vector's serif font stack.

Bug: 63450
Change-Id: I23041c356ad4356dcf085479721cb950a89b33d0

10 years agoUpdate OOjs to v1.0.9
James D. Forrester [Wed, 2 Apr 2014 21:40:24 +0000 (14:40 -0700)]
Update OOjs to v1.0.9

Code:
 https://oojs.github.io/releases/oojs-1.0.9.js

Release notes:
 https://git.wikimedia.org/blob/oojs%2Fcore.git/v1.0.9/History.md

Change-Id: Ic1fea7dd3a07af32a29511191c45da90bc306b17

10 years agomediawiki.api: Refactor getToken and postWithToken methods
Timo Tijhof [Wed, 5 Feb 2014 20:54:20 +0000 (12:54 -0800)]
mediawiki.api: Refactor getToken and postWithToken methods

* getToken now keeps promise objects around so that it can:
  1) Re-use already retrieved tokens instead of always making
     a new request (this was previously done locally inside
     one of the callers, namely #postWithToken).
  2) By storing promises instead of the tokens, we can re-use
     it asynchronously. While it is unlikely that one module
     calls getToken twice in a short period amount of time,
     it is quite likely that two separate modules (both using
     mediawiki.api) request similar tokens from the API at the
     same time (e.g. at page load).

  This cache has to be additionally keyed by API endpoint since
  mw.Api is a generic class that can be (and in practice, is)
  instantied for foreign wiki as well.

* Initialise the cache with pre-resolved promises for values
  from user.tokens from the local wiki (embedded in the page
  output, no point in requesting these again from the API).

* postWithToken no longer has its own token cache, it now
  unconditionally uses getToken.

* postWithToken already took care of clearing the token cache when
  the server responds with a 'badtoken' error. However, it then
  changed the request to delete the 'token' query and try again
  without any token. That seems rather silly. Change this to
  instead have getToken fetch a fresh one and re-submit with that.

* Add unit tests.

Bug: 34733
Change-Id: I5c25ae5ea4bf3336899bc60fd94ec3b0948050e1

10 years agoBetter memory reporting when running in HHVM
Erik Bernhardson [Wed, 2 Apr 2014 20:22:33 +0000 (13:22 -0700)]
Better memory reporting when running in HHVM

Change-Id: If06b7b3ff4dc7ba8b873361f7878f8abb718f571

10 years agoVisualize profile output in debug toolbar
Erik Bernhardson [Sat, 28 Dec 2013 22:08:32 +0000 (14:08 -0800)]
Visualize profile output in debug toolbar

This adds a new pane for the debug toolbar labeled Profiler.  It groups
together events sent to wfProfileIn/Out and draws a timeline giving a
visual representation of what the page was doing at a particular point
in time. Hovering over a timeline brings up a flyout about the contained
events.

Depends on I08854d80f57286129f19cb14566f84ed3c7fa21c for proper positioning
of the flyout.

Change-Id: I23a0ce4137abcd74ad87967fb263214c08cb9685

10 years agoMerge "Made BagOStuff fail fast in cas/lock on certain errors"
jenkins-bot [Wed, 2 Apr 2014 21:50:27 +0000 (21:50 +0000)]
Merge "Made BagOStuff fail fast in cas/lock on certain errors"

10 years agoMerge "mediawiki.ui: Do not depend on divs being present inside .mw-ui-vform"
jenkins-bot [Wed, 2 Apr 2014 21:23:29 +0000 (21:23 +0000)]
Merge "mediawiki.ui: Do not depend on divs being present inside .mw-ui-vform"

10 years agoMerge "Fix language statistics after messages have been moved to JSON"
jenkins-bot [Wed, 2 Apr 2014 19:20:54 +0000 (19:20 +0000)]
Merge "Fix language statistics after messages have been moved to JSON"

10 years agoRespect sizing from user-supplied class
Erik Bernhardson [Mon, 30 Dec 2013 20:03:50 +0000 (12:03 -0800)]
Respect sizing from user-supplied class

A user-supplied class provided to tipsy that affects the
height or width of the flyout breaks tipsys positioning.
Adjust tipsy to apply the user-supplied class earlier so
its css rules are taken into account during positioning.

Also clean up trailing whitespace.

Change-Id: I08854d80f57286129f19cb14566f84ed3c7fa21c

10 years agoMerge "Cleaning up function definitions in Language.php"
jenkins-bot [Wed, 2 Apr 2014 18:29:40 +0000 (18:29 +0000)]
Merge "Cleaning up function definitions in Language.php"

10 years agoCleaning up function definitions in Language.php
kaldari [Tue, 1 Apr 2014 00:31:06 +0000 (17:31 -0700)]
Cleaning up function definitions in Language.php

Some of these were confusing or incorrect.

Change-Id: I2dd02669a7cf9d8b92e2d5c1b86ab8c5e0cbf6bd

10 years agoUpdate jquery.fullscreen to newer version (fix IE11 support)
Gilles Dubuc [Tue, 1 Apr 2014 06:49:37 +0000 (08:49 +0200)]
Update jquery.fullscreen to newer version (fix IE11 support)

jquery.fullscreen wouldn't work properly in IE11. This commit fixes the
issues that were preventing it from working in that browser.

Source
* https://github.com/theopolisme/jquery-fullscreen/blob/9f8f97d127/jquery.fullscreen.js

Change log
* https://github.com/theopolisme/jquery-fullscreen/compare/v2.0.0...9f8f97d127

Change-Id: I6cb853f05ef9a464990a785827074c78ac61ac7f

10 years agoRe-organized PoolCounter files
Aaron Schulz [Wed, 2 Apr 2014 18:08:22 +0000 (11:08 -0700)]
Re-organized PoolCounter files

* No actual changes to the classes

Change-Id: I4e35a2b097e4bc72315688d0390d3f5c4c1ca4ed

10 years agoFix language statistics after messages have been moved to JSON
Alexandre Emsenhuber [Wed, 2 Apr 2014 18:05:51 +0000 (20:05 +0200)]
Fix language statistics after messages have been moved to JSON

Statistics are now showing always no messages since languages.inc
does not manage to load the JSON messages.

Had to make LocalisationCache::readJSONFile() public so that it can
be used in  languages.inc; since all methods from LocalisationCache
return localisations merged with fallbacks, which is not what we
want here.

Fix for I918cfdc46c (0dd91d5).

Change-Id: Ib52287db618b9d072e847130070d165a3e7ae44b

10 years agoMerge "Adding debugging for bug 62241"
jenkins-bot [Wed, 2 Apr 2014 17:26:33 +0000 (17:26 +0000)]
Merge "Adding debugging for bug 62241"

10 years agoRename $p to $parts in Special:Search
aude [Wed, 2 Apr 2014 15:37:25 +0000 (17:37 +0200)]
Rename $p to $parts in Special:Search

Change-Id: I794fca2d24fcebb59067d5e619b68d86cbaa2a8f

10 years agoFix variable naming in SpecialSearch, $t => $title
aude [Wed, 2 Apr 2014 15:31:06 +0000 (17:31 +0200)]
Fix variable naming in SpecialSearch, $t => $title

Change-Id: I70ec1e147f99a73bc0b12511669ab5a799018695

10 years agoNew API module, list=prefixsearch
Max Semenik [Tue, 1 Apr 2014 22:35:20 +0000 (02:35 +0400)]
New API module, list=prefixsearch

It's pretty much like action=opensearch but can be used as a generator
which can be handy when you need to retrieve both the list of pages and
some information about them.

Change-Id: Iaffe30a0f7402e1316c4885a805692a34bbe1a6a

10 years agoRename $t to $title in SpecialSearch
aude [Wed, 2 Apr 2014 14:54:52 +0000 (16:54 +0200)]
Rename $t to $title in SpecialSearch

$title is a bit more informative than $t

Change-Id: I66deeb6672dc45161e0fcc30988bcc1efcb93f56

10 years agoi18n: Fix the parser function name
shirayuki [Wed, 2 Apr 2014 11:51:37 +0000 (20:51 +0900)]
i18n: Fix the parser function name

- Fix the parser function name "#ifexist"
- Put the parser function in code tags

Spotted by Siebrand
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Expensive-parserfunction-category-desc/en

Change-Id: If29585ceda7f409c668804ff13c821b4eece95fd

10 years agoAdd punctuation to "pool-servererror"
Siebrand Mazeland [Wed, 2 Apr 2014 09:24:05 +0000 (11:24 +0200)]
Add punctuation to "pool-servererror"

Follow-up on eb03cf3f7dda4.

Change-Id: Iee1fd4ca9f4baad0d03998dbc1ea1e24f2210ba7

10 years agoMerge "Put LESS test back into extension suite in XML"
jenkins-bot [Wed, 2 Apr 2014 04:37:46 +0000 (04:37 +0000)]
Merge "Put LESS test back into extension suite in XML"

10 years agoUpdate OOjs UI to v0.1.0-pre (8986c46d35)
James D. Forrester [Wed, 2 Apr 2014 02:33:44 +0000 (19:33 -0700)]
Update OOjs UI to v0.1.0-pre (8986c46d35)

New changes:
735cebc Filter calls to selectItem and highlightItem on SelectWidget
897b30f Return null in Element#getDocument
b5ede88 Add Element#isElementAttached
68df19f Disable tool groups when all its tools are disabled
1aaa507 Grunt-watch less files
e4dd7b2 build: Update devDependencies
64d6c32 Localisation updates from https://translatewiki.net.
b5c6db5 Localisation updates from https://translatewiki.net.
b9460cb apex/button: Reset border-color of disabled button when not hovered
32c4799 Localisation updates from https://translatewiki.net.
674165e Enable jscs for OOjs UI repo
d98b338 grunt: Add messageDocumentation task to ensure each 'en' message has a 'qqq'
d421dd6 demos/tools: Indentation fix

Change-Id: Ic9b7ff01fe066eb5cba6a0fd0fc515ff3c62b66a

10 years agoAdded a Redis pool counter class
Aaron Schulz [Sat, 15 Mar 2014 21:17:16 +0000 (14:17 -0700)]
Added a Redis pool counter class

* This should be easier to set up for typical installs

Change-Id: Icb4a7481b944fa0818c4635e3edbe12d08af9924

10 years agovector: Remove redundant margin-top reset
Timo Tijhof [Tue, 1 Apr 2014 19:47:32 +0000 (12:47 -0700)]
vector: Remove redundant margin-top reset

There is nothing setting this to anything else. The only other
preceeding relevant rule inherited before this is "h1, h2, h3 .."
which sets "margin: 0;" already.

Change-Id: If6531221891ae3c7eb792c5bdc930ddaaf613f52

10 years agoPut LESS test back into extension suite in XML
Matthew Flaschen [Tue, 1 Apr 2014 21:27:35 +0000 (17:27 -0400)]
Put LESS test back into extension suite in XML

Followup to 13f3e21e9c7ddcef0d59982aeb3bb4b9e240e5f4

Change-Id: I1a15a0d8aba05b774f072673787b712f6ba97fcd

10 years agoMigrate translations for core to JSON format
Siebrand Mazeland [Tue, 1 Apr 2014 13:36:07 +0000 (15:36 +0200)]
Migrate translations for core to JSON format

Largest patch set in the history of MediaWiki!

Change-Id: I918cfdc46c099017ca3622d1bcbbdd30c4fd00f6