lhc/web/wiklou.git
11 years agoUpdate some external conversion tables to latest versions
Liangent [Tue, 2 Oct 2012 14:24:56 +0000 (22:24 +0800)]
Update some external conversion tables to latest versions

* Unicode Han database from 5.2.0 to 6.2.0
* scim-tables from 0.5.10 to 0.5.11
* scim-pinyin from 0.5.91 to 0.5.92

Change-Id: I41f1995d079d897c1df940d4bcad15036dec0671

11 years agoMerge "release note for bug 34495"
IAlex [Tue, 2 Oct 2012 12:05:22 +0000 (12:05 +0000)]
Merge "release note for bug 34495"

11 years agoMerge "Removed __NOHEADER__ magic word"
Siebrand [Tue, 2 Oct 2012 08:46:42 +0000 (08:46 +0000)]
Merge "Removed __NOHEADER__ magic word"

11 years agoSane whitespace
Niklas Laxström [Tue, 2 Oct 2012 08:39:30 +0000 (08:39 +0000)]
Sane whitespace

Change-Id: I849e9e672e50f033a24b5b42db93659d6e5fe899

11 years agorelease note for bug 34495
Antoine Musso [Tue, 2 Oct 2012 08:37:31 +0000 (10:37 +0200)]
release note for bug 34495

When [r111965] got backported in 1.19wmf branch, it was not applied to
the REL1_19 branch and thus is missing from the 1.19 releases. The fix
is already in 1.20, this merely add the forgotten release notes entry.

[r111965]
https://www.mediawiki.org/wiki/Special:Code/MediaWiki/111965

Change-Id: I2de04fbe22a0b18a15755eac2db9683e5e179b0a

11 years agoRemoved __NOHEADER__ magic word
Niklas Laxström [Tue, 2 Oct 2012 08:36:09 +0000 (08:36 +0000)]
Removed __NOHEADER__ magic word

Followup that was not done by anybody in 4 years, see r41994
Reported in http://translatewiki.net/wiki/Thread:Support/MediaWiki_magic_word_"noheader"

Change-Id: Ieded9ca281762c2c42e26c7cfe7669580cbbac62

11 years agoFixup release notes
Timo Tijhof [Tue, 2 Oct 2012 05:59:12 +0000 (07:59 +0200)]
Fixup release notes

* This section shouldn'tve been moved to the 1.21 file, because
  the change that added it (4d4bfc27a1bedf6b0d1670707ac812fe36fe85ad)
  added it to REL1_20 for back porting (which happened).

Change-Id: I1128691e330bf816cd1bb7d8c8e3e665f919272c

11 years agoMerge "Additional indent-pre and template interaction tests."
GWicke [Tue, 2 Oct 2012 04:41:23 +0000 (04:41 +0000)]
Merge "Additional indent-pre and template interaction tests."

11 years agoMerge "Bug 40668 - "Return to Array." when logging in"
IAlex [Tue, 2 Oct 2012 04:33:48 +0000 (04:33 +0000)]
Merge "Bug 40668 - "Return to Array." when logging in"

11 years agoAdditional indent-pre and template interaction tests.
Subramanya Sastry [Tue, 2 Oct 2012 04:30:20 +0000 (23:30 -0500)]
Additional indent-pre and template interaction tests.

Change-Id: I445247130dea266beb8b94e2fa1f039f1886446a

11 years agoMerge "(bug 40448) Replace legacy mwsuggest with mediawiki.searchSuggest"
Catrope [Tue, 2 Oct 2012 03:41:25 +0000 (03:41 +0000)]
Merge "(bug 40448) Replace legacy mwsuggest with mediawiki.searchSuggest"

11 years agojquery.byteLimit: Rewrite (fix bug 38158, bug 38163)
Timo Tijhof [Fri, 14 Sep 2012 02:09:47 +0000 (04:09 +0200)]
jquery.byteLimit: Rewrite (fix bug 38158, bug 38163)

It used to be fairly simply and that seemed good enough. Listen
on keypress, get current value, add character from key code in
event object, and calculate the byteLength. If it is too long,
preventDefault().

However there were so many edge cases (too many of them to be
considered edge cases) where this failed whereas the native
maxLength handling was fine.

For example:
 - Cut and paste
 - Selecting text and replacing or removing it (by any of the
   methods on this list)
 - Custom javascript input methods (e.g. Narayam)
 - Spelling suggestions and corrections
 - Drag and drop
 - etc.

Now it acts on changes after the fact.

I considered building in a timeout loop in addition to this so
that when javascript gadgets change the input value it would
detect it, however I'd like to hold that off for now. We can
add that later if needed. For now scripts are expected to fire
the 'change' event if they change it, which seems reasonable.

The only challenge that it creates, however, is the need for
basic history reconstruction. Figure out what was already there
and what is new, and cut down the new part until the total sum
satisfies the limit.

This is the same behavior that WebKit browsers (and others) have.
e.g. of "barbaz" is pasted between "f" and "o" in "foo" with a
maxLength of 5, then the resulting string will be "fbaoo".

Also fixed bug 38158 while at it. Filed an upstream bug against
webkit/Chrome but was wont fixed. Either way, we'd have to be
compatible for a little while with old WebKit builds out there
(iOS 3, Safari 5, etc.).
http://code.google.com/p/chromium/issues/detail?id=136004

Use removeAttribute('maxlength') to let the browser internally
reset the maxLength property. Resetting it directly (to undefined
or with `delete el.maxLength') does not work and casts it to 0,
which blocks the input field entirely.

Updated unit tests, and also removed the "type=text" code
afterwards which that doesn't work in IE (Internet Explorer does
not support dynamic changing of input types), needs to be in the
HTML directly. So far it was passing in IE because 'text' is the
default. Tests now use attr('maxlength') everywhere for
consistency, though properties work the same. Browsers
synchronize these things (just like the "class" attribute and
"className" property).

References:
* Fixes bug 38158: Unexpected 0 maxLength.
* Fixes bug 38163: Incorrect limiting of input when using input
  methods other than basic per-char typing.
* Follows-up: 39cb0c19
* Supersedes: I70d09aae

Change-Id: I9c204243d0bdf7158aa86a62b591ce717a36fe27

11 years ago(bug 40448) Replace legacy mwsuggest with mediawiki.searchSuggest
Timo Tijhof [Sun, 23 Sep 2012 01:06:53 +0000 (03:06 +0200)]
(bug 40448) Replace legacy mwsuggest with mediawiki.searchSuggest

The module has been broken for a while now, but nobody noticed
because in plain core it is disabled by default, and in the
bundle we ship with Extension:Vector (and its SimpleSearch).

This commit removed the mediawiki.legacy.mwsuggest module (and
related components that become obsolete with its deletion) and
replaces it with the new mediawiki.searchSuggest module, which is
based on SimpleSearch from Extension:Vector (where it will be
removed soon).

The following and all references to it in core have been removed,
I also made sure that they weren't used in any of extensions/*.
Only matches in extensions/Settings and some file that dumped the startup module, and in extensions/Vector which are addressed in
I1d5bf81a8a0266c51c99d41eefacc0f4b3ae4b76.

Had to make a few updates to jquery.suggestions to make it work
in other skins. So far it was only used in Vector, but now that
it is used in mediawiki.searchSuggest, I noticed several issues
in other skins. Most importantly the fact that it assumed the
default offset was from the right corner, which isn't the case in
Monobook where the search bar is on the left (in the sidebar).

It now detects the appropiate origin corner automatically, and
also takes directionality of the page into account.

It also uses the correct font-size automatically. Previously it
used font-size: 0.8; but that only works in Vector. Every skin
seems to have its own way of making a sane font-size. In Monobook
the <body> has an extra small font-size which is then fixed in
div#globalWrapper, and in Vector it is extra large, which is then
fixed as well deeper in the document. Either way, the size on
<body> can't be used, and since this suggestions box is appended
to the <body> (it is a generic jQuery plugin without knowledge of
the document, and even if we could give it knowledge inside
the configuration, it'd have to be per-skin). So I removed the
Vector specific font-size and let it handle it automatically.
This was needed because it is now used in all skins.

Removed modules:
* mediawiki.legacy.mwsuggest:
  > Replaced with mediawiki.searchSuggest.

Removed messages:
* search-mwsuggest-enabled
* search-mwsuggest-disabled
  > No longer used.

Removed mw.config.values:
* wgMWSuggestTemplate
  > Obsolete.

* wgSearchNamespaces
  > Obsolete.

Removed server-side settings:
* $wgEnableMWSuggest
  > Suggestions are now enabled by default and can be disabled
    through the user preference `disablesuggest` still.
    They can be disabled by default site-wide or hidden from
    prefs through the standard mechanisms for that.

* $wgMWSuggestTemplate
  > Obsolete.

Removed methods
* SearchEngine::getMWSuggestTemplate()
  > Obsolete.

Filters:
 $ ack mwsuggest -i -Q --ignore-dir=languages/messages
 $ ack wgSearchNamespaces -Q

Message changes:
* vector-simplesearch-preference
  > It was wrong, it didn't activate search suggestions, that
    was handled by the Vector extension. This preference in
    MediaWiki core controls whether the SimpleSearch bar HTML
    and CSS will be used (e.g. the rectangle search box with
    the magnifying class instead of the browser-default input
    field with the plain submit buttons).

* searchsuggest-search
* searchsuggest-containing
  These come from Extension:Vector message and should be imported
  by translatewiki:
  - vector-simplesearch-search
  - vector-simplesearch-containing

Change-Id: Icd721011b40bb8d2c20aefa8b359a3e45413a07f

11 years agoMerge "Added test for parsing &nbsp; in wikilinks."
GWicke [Mon, 1 Oct 2012 23:44:27 +0000 (23:44 +0000)]
Merge "Added test for parsing &nbsp; in wikilinks."

11 years agoBug 40668 - "Return to Array." when logging in
Reedy [Mon, 1 Oct 2012 20:35:47 +0000 (21:35 +0100)]
Bug 40668 - "Return to Array." when logging in

Change-Id: I847684cdc474d0694bf4fa5eddaa0d0b19e7be4e

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 1 Oct 2012 19:57:47 +0000 (19:57 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib96d779a5d6b8a7cff6a181b5530d1dc2abe191f

11 years agoMerge "Use hasSubjectNamespace in Skin.php instead of namespace tests."
Hashar [Mon, 1 Oct 2012 19:17:57 +0000 (19:17 +0000)]
Merge "Use hasSubjectNamespace in Skin.php instead of namespace tests."

11 years agoMerge "more public accessors for Title class"
Hashar [Mon, 1 Oct 2012 19:17:47 +0000 (19:17 +0000)]
Merge "more public accessors for Title class"

11 years agoMerge "Bug 38955 - Don't include job_timestamp in checks for duplicate jobs"
Aaron Schulz [Mon, 1 Oct 2012 19:13:07 +0000 (19:13 +0000)]
Merge "Bug 38955 - Don't include job_timestamp in checks for duplicate jobs"

11 years agoAdded test for parsing &nbsp; in wikilinks.
Subramanya Sastry [Mon, 1 Oct 2012 19:09:19 +0000 (14:09 -0500)]
Added test for parsing &nbsp; in wikilinks.

Change-Id: I3aa2c76e6fb03c3acaf2edb9fbeca6fd70c556c2

11 years agoUse hasSubjectNamespace in Skin.php instead of namespace tests.
Daniel Friesen [Thu, 30 Aug 2012 20:05:58 +0000 (13:05 -0700)]
Use hasSubjectNamespace in Skin.php instead of namespace tests.

Change-Id: I11c5657de868a99429d400e0edb05707ec6069fb

11 years agomore public accessors for Title class
Daniel Friesen [Thu, 30 Aug 2012 20:04:42 +0000 (13:04 -0700)]
more public accessors for Title class

This patch adds new public accessor to the Title class. They are merely
returning the already existing conventions.

Added tests for the four new methods:
 - Title::getBaseText()
 - Title::getRootText()
 - Title::getRootTitle()
 - Title::getSubpageText()

The later does not test with $wgNamespacesWithSubpages variants.

Change-Id: I4f7230c1a5487b82d06c78a45c50436085df57be

11 years agoBug 38955 - Don't include job_timestamp in checks for duplicate jobs
Reedy [Mon, 1 Oct 2012 16:55:38 +0000 (17:55 +0100)]
Bug 38955 - Don't include job_timestamp in checks for duplicate jobs

Change-Id: I28bffdd8612b7a87cb35983c3a0db89eaa018262

11 years agoAdded test to allow "|" char between url and text in extlinks.
Subramanya Sastry [Mon, 1 Oct 2012 15:37:17 +0000 (10:37 -0500)]
Added test to allow "|" char between url and text in extlinks.

Change-Id: Ic86f6fff600650207afc52a87d4f92b1c9347130

11 years agoDo not register Special:JavaScriptTest, if disabled
umherirrender [Mon, 24 Sep 2012 18:04:26 +0000 (20:04 +0200)]
Do not register Special:JavaScriptTest, if disabled

It is better when the special page is not register,
instead of giving a hint, that this is disabled on the wiki.

See other special pages like Special:PopularPages or Special:ChangeEmail

Change-Id: I43fb118d61ddcb2536192f54ee888d55b2fbd49d

11 years ago(bug 40541) Fixed minor code style problems.
Tyler Anthony Romeo [Mon, 1 Oct 2012 01:23:05 +0000 (21:23 -0400)]
(bug 40541) Fixed minor code style problems.

Follow-up to I17ac68014840daa47bfd4768e978e9ff2edb00db.
Replaces some ==/!= with ===/!== and other code style
changes mentioned in Gerrit comments on previous patchset.

Change-Id: I50da16bc62241491ac5c4948e0d3059b21f113dc

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Sun, 30 Sep 2012 19:25:54 +0000 (19:25 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 30 Sep 2012 19:09:21 +0000 (19:09 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Id807056afde3025ac14fff8d2d9fee6de906066d

11 years agoMerge "(bug 34960) drop unused fields rc_moved_to_ns/rc_moved_to_title"
Reedy [Sun, 30 Sep 2012 19:04:15 +0000 (19:04 +0000)]
Merge "(bug 34960) drop unused fields rc_moved_to_ns/rc_moved_to_title"

11 years agoMerge "(bug 40384) Move width/height from button to img"
Nikerabbit [Sun, 30 Sep 2012 16:11:08 +0000 (16:11 +0000)]
Merge "(bug 40384) Move width/height from button to img"

11 years ago(bug 36151) mw.Title: Don't limit extension in title parsing.
MatmaRex [Sat, 29 Sep 2012 13:32:49 +0000 (15:32 +0200)]
(bug 36151) mw.Title: Don't limit extension in title parsing.

This allows for e.g. "*.properties" files.

Previously, the extension could be no more than 5 characters. If
it was, it was considered as not having any extension (part of
the main title text).

Change-Id: Ib27792b661666ac5f704eeaaadcdd9668dd81b56

11 years agoFixed mismatched profile calls in LoadBalancer.
Aaron Schulz [Sat, 29 Sep 2012 18:52:48 +0000 (11:52 -0700)]
Fixed mismatched profile calls in LoadBalancer.

Change-Id: I1ac81347b8af9b30dc03df94a76483a4ae4a6503

11 years ago(bug 34960) drop unused fields rc_moved_to_ns/rc_moved_to_title
umherirrender [Sat, 29 Sep 2012 10:25:31 +0000 (12:25 +0200)]
(bug 34960) drop unused fields rc_moved_to_ns/rc_moved_to_title

Change-Id: I68e8c0bb23f185c0f996a8905f6d437db3080aa1

11 years agoMerge "Drop unused database field ss_admins"
Reedy [Sat, 29 Sep 2012 14:34:34 +0000 (14:34 +0000)]
Merge "Drop unused database field ss_admins"

11 years agoMerge "Revert "Revert "Release notes: Get back lost history"""
Reedy [Sat, 29 Sep 2012 14:28:50 +0000 (14:28 +0000)]
Merge "Revert "Revert "Release notes: Get back lost history"""

11 years agoRevert "Revert "Release notes: Get back lost history""
Reedy [Sat, 29 Sep 2012 14:28:41 +0000 (14:28 +0000)]
Revert "Revert "Release notes: Get back lost history""

This reverts commit bd8d6492dc0122c12cf8e7ca1d883cd6e6521dd1

11 years agoMerge "Revert "Release notes: Get back lost history""
Reedy [Sat, 29 Sep 2012 14:03:44 +0000 (14:03 +0000)]
Merge "Revert "Release notes: Get back lost history""

11 years agoRevert "Release notes: Get back lost history"
Reedy [Sat, 29 Sep 2012 14:03:22 +0000 (14:03 +0000)]
Revert "Release notes: Get back lost history"

This reverts commit b6d5645a920041e246e268dad842ddc4be397246

11 years agoMerge "Revert "Release notes: Get back lost history""
Reedy [Sat, 29 Sep 2012 14:02:54 +0000 (14:02 +0000)]
Merge "Revert "Release notes: Get back lost history""

11 years agoRevert "Release notes: Get back lost history"
Reedy [Sat, 29 Sep 2012 14:02:46 +0000 (14:02 +0000)]
Revert "Release notes: Get back lost history"

This reverts commit b9e3916b80fe7220ed2a4fbe045df09cd253c812

11 years agoDrop unused database field ss_admins
umherirrender [Sat, 22 Sep 2012 23:05:07 +0000 (01:05 +0200)]
Drop unused database field ss_admins

no longer updated since 1.5

Change-Id: Iebdce084d178b5003105b2d2b7dcc499c274ff56

11 years agoMerge "Release notes: Get back lost history"
Timo Tijhof [Sat, 29 Sep 2012 06:34:05 +0000 (06:34 +0000)]
Merge "Release notes: Get back lost history"

11 years agoRelease notes: Get back lost history
Timo Tijhof [Sat, 29 Sep 2012 06:33:31 +0000 (08:33 +0200)]
Release notes: Get back lost history

REL1_20 was branched from master as it was on 2012-09-15, but
release notes was removed from latest master. So there's stuff
missing.

I copied over parts from this diff:

$ git diff gerrit/REL1_20...e4f62bbb0b393e7f01ee5ee8390e1c5e890f7ead -- RELEASE-NOTES-1.20

Fixed existing entries, and copying new entries to
RELEASE-1.21 as they never made it to 1.20, because we branched
REL1_20 from a past master.

Change-Id: Ic07c57c4b3fb27074ea8a0d85b56837f8db81bd1

11 years agoRevert "Release notes: Get back lost history"
Krinkle [Sat, 29 Sep 2012 06:25:57 +0000 (06:25 +0000)]
Revert "Release notes: Get back lost history"

This reverts commit b9e3916b80fe7220ed2a4fbe045df09cd253c812

11 years agoRelease notes: Get back lost history
Timo Tijhof [Sat, 29 Sep 2012 05:52:56 +0000 (07:52 +0200)]
Release notes: Get back lost history

Whoever branched it had an outdated copy of master (2012-09-15
instead of 2012-09-27).

Now resetting back to how the file was right before it was
removed:

$ git co e4f62bbb0b393e7f01ee5ee8390e1c5e890f7ead -- RELEASE-NOTES-1.20

Change-Id: Iadb900a087188ff84c6115d91e0d6765b178f9b8

11 years agoRelease notes: Maintain 1.20 notes in master, revert history.
Timo Tijhof [Sat, 29 Sep 2012 01:15:19 +0000 (03:15 +0200)]
Release notes: Maintain 1.20 notes in master, revert history.

* The one in history isn't final yet, which makes maintenance
  harder as it would have to be synced between 2 different file
  names across 2 different branches.

* For backport commits its easier if the 1.20 file is still in
  master so that they can be written together with the commit
  (and so that the history is in master as well), as opposed to
  merging it in master without notes and then adding them later
  on in the (amended) merge version.

Change-Id: I3fa4b88a5845a51e83221d78facaba1ddb3b1acb

11 years agoMerge "Wrap long lines"
Catrope [Sat, 29 Sep 2012 00:38:46 +0000 (00:38 +0000)]
Merge "Wrap long lines"

11 years agoRemoved unnecessary whitespace in tpl name/arg class tests.
Subramanya Sastry [Fri, 28 Sep 2012 23:51:38 +0000 (18:51 -0500)]
Removed unnecessary whitespace in tpl name/arg class tests.

Change-Id: Id0346d16fcecd0d44d85f29a45923c8401f47a9c

11 years agoWrap long lines
Reedy [Fri, 28 Sep 2012 23:35:16 +0000 (00:35 +0100)]
Wrap long lines

Also remove default setting of $p done in else statement at end

Change-Id: I5024c1fc1748ad1add145d0696b33a6d7ef3223b

11 years agoMerge "Adding wildcard support to $wgCopyUploadsDomains"
Kaldari [Fri, 28 Sep 2012 23:20:52 +0000 (23:20 +0000)]
Merge "Adding wildcard support to $wgCopyUploadsDomains"

11 years agoMerge "Clean up: Declare variables with public instead of var"
awjrichards [Fri, 28 Sep 2012 22:25:45 +0000 (22:25 +0000)]
Merge "Clean up: Declare variables with public instead of var"

11 years agoMerge "(bug 40541) Fixed $wgSecureLogin functionality."
Catrope [Fri, 28 Sep 2012 20:30:15 +0000 (20:30 +0000)]
Merge "(bug 40541) Fixed $wgSecureLogin functionality."

11 years agoMerge "Added protocol option to Linker and OutputPage::addReturnTo."
Catrope [Fri, 28 Sep 2012 20:25:11 +0000 (20:25 +0000)]
Merge "Added protocol option to Linker and OutputPage::addReturnTo."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 28 Sep 2012 18:12:30 +0000 (18:12 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I300d5f11d881b764b80695b745bff5e9c7d3c404

11 years agoMerge "(bug 29898) Set cookie to force HTTPS from HTTP"
Catrope [Fri, 28 Sep 2012 17:34:26 +0000 (17:34 +0000)]
Merge "(bug 29898) Set cookie to force HTTPS from HTTP"

11 years agoUpdates for MW 1.21
Reedy [Thu, 27 Sep 2012 16:29:49 +0000 (17:29 +0100)]
Updates for MW 1.21

Change-Id: I582c1bcc50d694705b560fea893d0b2984072c08

11 years agoMerge "Bring in 1.19 history, update 1.17 and 1.18 history too"
Reedy [Fri, 28 Sep 2012 15:15:11 +0000 (15:15 +0000)]
Merge "Bring in 1.19 history, update 1.17 and 1.18 history too"

11 years agoBring in 1.19 history, update 1.17 and 1.18 history too
Reedy [Fri, 28 Sep 2012 15:13:40 +0000 (16:13 +0100)]
Bring in 1.19 history, update 1.17 and 1.18 history too

Change-Id: I098fdb5610011cbdd91012b8ed4d29e61ca80408

11 years agoAdd RELEASE-NOTES for g25605
Reedy [Fri, 28 Sep 2012 14:51:57 +0000 (15:51 +0100)]
Add RELEASE-NOTES for g25605

Change-Id: Ibd09a52e98ea2e8fcdf0291b4a586870cb128007

11 years ago(bug 39674) Fixed loading User from session when hook aborts.
Tyler Anthony Romeo [Mon, 27 Aug 2012 02:28:48 +0000 (22:28 -0400)]
(bug 39674) Fixed loading User from session when hook aborts.

Rather than have separate calls to User::loadDefaults()
every time User::loadFromSession() fails, there is now just
one call in User::load() if loadFromSession() returns false.
This fixes the case where a UserLoadFromSession hook aborts
loading from session, leaving the User object uninitialized.

Change-Id: I8d1a114d7ec361b27b260791f742c473a1497f26
Signed-off-by: Tyler Anthony Romeo <tylerromeo@gmail.com>
11 years ago(bug 40384) Move width/height from button to img
Kevin Israel [Fri, 28 Sep 2012 02:53:06 +0000 (22:53 -0400)]
(bug 40384) Move width/height from button to img

The fix for bug 34768 (r112710, regarding the lack of width and height
attributes for the Vector skin's search button) failed to include the
corresponding changes to SkinTemplate.php.

Because BaseTemplate::makeSearchButton() only special cased the src and
alt attributes, the width and height incorrectly went on the button
element, causing HTML validation errors (and also having no effect).
This patch moves the width and height attributes to the img element
in a similar fashion to src and alt.

Change-Id: I3561fc79364ce43521823bad691c9b61f87ba375

11 years agoAdd $wgCopyUploadProxy to be used for copy uploads only.
Reedy [Fri, 28 Sep 2012 00:33:48 +0000 (01:33 +0100)]
Add $wgCopyUploadProxy to be used for copy uploads only.

Means we don't break stuff on the cluster such as search by setting $wgHTTPProxy

Change-Id: I094b2bfd097e7e5c1c45b6332357d959ed95ac99

11 years agoCopy plural rules from be to be-tarask
amire80 [Thu, 27 Sep 2012 23:43:04 +0000 (16:43 -0700)]
Copy plural rules from be to be-tarask

CLDR only defines rules for 'be'.
The bug was reported by Wizardist.

Change-Id: I459be3d2f488471eea2acfd3d3c4f79ff3ebc11c

11 years agoMerge "Link the credits in Special:Version in all languages"
Siebrand [Thu, 27 Sep 2012 22:52:42 +0000 (22:52 +0000)]
Merge "Link the credits in Special:Version in all languages"

11 years agoLink the credits in Special:Version in all languages
Marius Hoch [Wed, 26 Sep 2012 23:35:08 +0000 (01:35 +0200)]
Link the credits in Special:Version in all languages

Add the link to {{SERVER}}{{SCRIPTPATH}}/CREDITS in Special:Version
in the code and not in the interface message, which is
way more straightforward, makes the message  easier and
assures that the developers are credited no matter of the current
interface language.

The following languages need interface changes after this is merged:
He, Ko, Bcl, Jv (the fact that this list is so short once again
proves the point that the link isn't set in many languages). I'll
take care of those.

Change-Id: If12c4eb8453da40ede4b9768b2dacfaf838aa2ab

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 27 Sep 2012 20:49:25 +0000 (20:49 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I9e851866959da77ae184c3e07a95b07999027462

11 years agoMerge "Catch and deal with UploadStashZeroLengthFileException when removing stashed...
Aaron Schulz [Thu, 27 Sep 2012 20:18:15 +0000 (20:18 +0000)]
Merge "Catch and deal with UploadStashZeroLengthFileException when removing stashed files"

11 years agoMerge "Style fix"
Siebrand [Thu, 27 Sep 2012 20:05:22 +0000 (20:05 +0000)]
Merge "Style fix"

11 years agoAdded a pile of missing brackets
jeroendedauw [Thu, 27 Sep 2012 19:46:22 +0000 (21:46 +0200)]
Added a pile of missing brackets

Change-Id: Id7b331e1b12875736c8e7e93660e71630360a723

11 years agoStyle fix
jeroendedauw [Thu, 27 Sep 2012 19:36:14 +0000 (21:36 +0200)]
Style fix

Change-Id: I6b900924b07b44152fa943d10400fe151b4046c8

11 years ago(bug 40541) Fixed $wgSecureLogin functionality.
Tyler Anthony Romeo [Thu, 27 Sep 2012 18:34:11 +0000 (14:34 -0400)]
(bug 40541) Fixed $wgSecureLogin functionality.

* Added parameter to login link so that wpStickHTTPS
  is set to true by default when the user is coming
  from HTTPS.
* Added redirect in Special:Userlogin so that when
  $wgSecureLogin is enabled it automatically redirects
  to HTTPS.
* Adjusted User::setCookies() to add a parameter for
  forcing secure/insecure cookies, and then added the
  appropriate argument to Special:Userlogin so that
  cookies are set appropriately.

Change-Id: I17ac68014840daa47bfd4768e978e9ff2edb00db

11 years agoCatch and deal with UploadStashZeroLengthFileException when removing stashed files
Reedy [Thu, 27 Sep 2012 18:08:47 +0000 (19:08 +0100)]
Catch and deal with UploadStashZeroLengthFileException when removing stashed files

Seen on the cluster and it halts script execution

reedy@fenari:/home/wikipedia/common$ mwscript cleanupUploadStash.php commonswiki
Getting list of files to clean up...
Removing 52958 file(s)...
File is zero length
Backtrace:

Change-Id: I740111ca20473c495a4a51edafa156169fe6dd4d

11 years agoAdded protocol option to Linker and OutputPage::addReturnTo.
Tyler Anthony Romeo [Thu, 27 Sep 2012 17:47:42 +0000 (13:47 -0400)]
Added protocol option to Linker and OutputPage::addReturnTo.

Added new argument to the Linker options array to allow
the forcing of an HTTP or HTTPS protocol. In order to facilitate
this, a protocol argument was added to Title::getLinkURL.

Also, an options argument was added to OutputPage::addReturnTo
so that options can be passed to the linker and so that the
returnto URL can be forced to a certain protocol.

Change-Id: Ia9cc11e310ad6ef23c221bdba3a4834e7c5556e7

11 years agoMerge "(bug 39793) #simpleSearch placeholder styles for Firefox, IE"
Krinkle [Thu, 27 Sep 2012 16:07:12 +0000 (16:07 +0000)]
Merge "(bug 39793) #simpleSearch placeholder styles for Firefox, IE"

11 years ago(bug 39793) #simpleSearch placeholder styles for Firefox, IE
MatmaRex [Thu, 27 Sep 2012 15:02:21 +0000 (17:02 +0200)]
(bug 39793) #simpleSearch placeholder styles for Firefox, IE

Since some time ago Firefox and IE 10 also support styling for input
placeholders. (Opera supports placeholders themselves, but not (yet)
styling them.)

Firefox also applies regular input styles to placeholders, which is at
best weird, so we need to style the placeholder for it to display
reasonably (grayed out). (bug 39793)

Note the single colon for IE and Firefox and double one for Webkit:
these are pseudoclasses, not pseudoelements.

In Opera, the placeholder is always grey; #808080 on my system, but it
might differ on various setups. It's close enough to #999999 for us not to
care.

Further reading:
* http://stackoverflow.com/questions/2610497/change-an-inputs-html5-placeholder-color-with-css/2610741#2610741

Change-Id: I902abe16ac0cb7a55fe0d9ee7a2eec9a4e5a371a

11 years agoMerge "Fix typo in docs."
IAlex [Thu, 27 Sep 2012 07:33:58 +0000 (07:33 +0000)]
Merge "Fix typo in docs."

11 years agoMerge "The hooks are initiated from WikiPage instead of Article"
IAlex [Thu, 27 Sep 2012 07:33:19 +0000 (07:33 +0000)]
Merge "The hooks are initiated from WikiPage instead of Article"

11 years agoMerge "Use standard function name for constructor."
IAlex [Thu, 27 Sep 2012 07:32:48 +0000 (07:32 +0000)]
Merge "Use standard function name for constructor."

11 years agoFix typo in docs.
Siebrand Mazeland [Thu, 27 Sep 2012 05:28:22 +0000 (22:28 -0700)]
Fix typo in docs.

Change-Id: I9390711340f2426aaf46762f048738ac3a3de16a

11 years ago(bug 9237) SpecialBrokenRedirects.php: Exclude iw redirects
Timo Tijhof [Wed, 19 Sep 2012 14:41:28 +0000 (16:41 +0200)]
(bug 9237) SpecialBrokenRedirects.php: Exclude iw redirects

* Cleaned up code
* Difference:
  Added `(rd_interwiki IS NULL OR rd_interwiki = "")` condition.

Change-Id: Ifee9fdcdd3a327742b18cfcc2a235e1e24c062bf

11 years agoMerge "Remove svnstat stuff used in Doxygen generation"
Krinkle [Thu, 27 Sep 2012 01:36:42 +0000 (01:36 +0000)]
Merge "Remove svnstat stuff used in Doxygen generation"

11 years agoMerge "(bug 40531) profileinfo.php: Clean up"
Krinkle [Thu, 27 Sep 2012 00:57:08 +0000 (00:57 +0000)]
Merge "(bug 40531) profileinfo.php: Clean up"

11 years ago(bug 40531) profileinfo.php: Clean up
Dereckson [Wed, 26 Sep 2012 20:55:54 +0000 (22:55 +0200)]
(bug 40531) profileinfo.php: Clean up

* Cleaning whitespaces and quotation
* Improving markup and make valid HTML5
  - <!DOCTYPE html>
  - <meta charset="UTF-8">
* Tune up styles a bit, get rid of 90s narrow pale yellow/cyan
  tables.

Change-Id: Iff36c57ea1baa6462d2b35b7a420cd3919c7e454

11 years agoMerge "Only bin/ulimit4.sh is used by MW in GlobalFunctions.php"
Demon [Thu, 27 Sep 2012 00:31:04 +0000 (00:31 +0000)]
Merge "Only bin/ulimit4.sh is used by MW in GlobalFunctions.php"

11 years agoMerge "Made stash cleaning script also remove the old thumbnails."
Demon [Thu, 27 Sep 2012 00:29:25 +0000 (00:29 +0000)]
Merge "Made stash cleaning script also remove the old thumbnails."

11 years agoMerge ".gitignore: Fix case of "Thumbs.db""
Demon [Thu, 27 Sep 2012 00:26:18 +0000 (00:26 +0000)]
Merge ".gitignore: Fix case of "Thumbs.db""

11 years agoMerge "(bug 33471) compare detectProtocol to 'https'"
Demon [Thu, 27 Sep 2012 00:25:52 +0000 (00:25 +0000)]
Merge "(bug 33471) compare detectProtocol to 'https'"

11 years ago(bug 33471) compare detectProtocol to 'https'
csteipp [Thu, 27 Sep 2012 00:20:15 +0000 (17:20 -0700)]
(bug 33471) compare detectProtocol to 'https'

Extra ':' was added to the comparison string in gerrit change I6adc7e3e

Change-Id: I3ff7274f6aa006b5cb9dcc3d2c44721f25a0fc8f

11 years agoAdded tests to spec out behavior of html with self-closing tags.
Subramanya Sastry [Wed, 26 Sep 2012 23:27:40 +0000 (18:27 -0500)]
Added tests to spec out behavior of html with self-closing tags.

Change-Id: I370bc0ddd2c838bb64239e3c075fc941e55f30b7

11 years agoRemove svnstat stuff used in Doxygen generation
Reedy [Wed, 26 Sep 2012 22:52:36 +0000 (23:52 +0100)]
Remove svnstat stuff used in Doxygen generation

Change-Id: I9d8db5fae6e0c99d59fcb9a43d7ed4aab953c300

11 years agoMerge "Simplify getNewOffset()"
Krinkle [Wed, 26 Sep 2012 23:12:41 +0000 (23:12 +0000)]
Merge "Simplify getNewOffset()"

11 years agoOnly bin/ulimit4.sh is used by MW in GlobalFunctions.php
Reedy [Wed, 26 Sep 2012 22:57:27 +0000 (23:57 +0100)]
Only bin/ulimit4.sh is used by MW in GlobalFunctions.php

Delete the old unused ones

Change-Id: Id9c24191a8ddc6972cd7f2dcd4f609301dcebc65

11 years agoMerge "svnstat? In MY git repo?"
Krinkle [Wed, 26 Sep 2012 22:40:06 +0000 (22:40 +0000)]
Merge "svnstat? In MY git repo?"

11 years agosvnstat? In MY git repo?
Reedy [Wed, 26 Sep 2012 22:38:32 +0000 (23:38 +0100)]
svnstat? In MY git repo?

Change-Id: If72b4446db30668034c40353d22ac597db5aa253

11 years agoMerge "Adding a few tests for categories"
GWicke [Wed, 26 Sep 2012 21:31:11 +0000 (21:31 +0000)]
Merge "Adding a few tests for categories"

11 years agoAdding a few tests for categories
Mark Holmquist [Wed, 26 Sep 2012 20:10:20 +0000 (13:10 -0700)]
Adding a few tests for categories

There wasn't really a test for sort keys, but we need those for
the Parsoid round-trip testing. So here they are!

Change-Id: If1fd948d1937872b9604b08c85b11595276f2808

11 years agoMerge "Add 2 new options to importImages.php"
Demon [Wed, 26 Sep 2012 20:48:41 +0000 (20:48 +0000)]
Merge "Add 2 new options to importImages.php"

11 years agoAdd 2 new options to importImages.php
Max Semenik [Wed, 26 Sep 2012 16:02:47 +0000 (20:02 +0400)]
Add 2 new options to importImages.php

--timestamp overrides upload timestamp
--summary sets upload summary

Change-Id: I930c8b1ce55af0543a41f412ecf702715c82c6df

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Wed, 26 Sep 2012 20:01:29 +0000 (20:01 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 26 Sep 2012 19:39:05 +0000 (19:39 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib1f59cfe72fac79455011d1d5557796340d4f3f6