lhc/web/wiklou.git
11 years agoReposition nested FancyCaptcha, conditional help.
S Page [Sat, 4 May 2013 05:45:25 +0000 (22:45 -0700)]
Reposition nested FancyCaptcha, conditional help.

There's less work to do here when the Refresh link is already nicely
positioned over the FancyCaptcha image (in extension/ConfirmEdit's
I57be0bc8aa , merged and deployed).  It still needs separate divs, one
with a border exactly 270px wide (display: table-cell) and one to act as
the positioning parent of the Refresh link (display: inline-block).

Also, only show the help msg for the captcha if it exists.

Bug: 47699
Change-Id: I003c5f1b75471cce32b149037198c314ce9489ea

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 12 May 2013 19:10:03 +0000 (19:10 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I7805de9f5046bf94f0800d07564548711373e2e0

11 years agoAdded missing continue to avoid fatal error.
Aaron Schulz [Sat, 11 May 2013 07:48:48 +0000 (00:48 -0700)]
Added missing continue to avoid fatal error.

Change-Id: Ibb87c9e59e424fa84d662bb42349085d186dcc99

11 years agoMerge "(bug 34666) Escape URLs in XML files created by generateSitemap.php"
jenkins-bot [Sun, 12 May 2013 17:14:16 +0000 (17:14 +0000)]
Merge "(bug 34666) Escape URLs in XML files created by generateSitemap.php"

11 years ago(bug 34666) Escape URLs in XML files created by generateSitemap.php
Liangent [Sun, 12 May 2013 15:36:59 +0000 (15:36 +0000)]
(bug 34666) Escape URLs in XML files created by generateSitemap.php

Bug: 34666
Change-Id: Ifb6ddb0bc6ca03c411f938837b2f89a5a30e4fc3

11 years agoChange default importImages comment to "Importing file"
Reedy [Sun, 28 Apr 2013 23:15:37 +0000 (00:15 +0100)]
Change default importImages comment to "Importing file"

Change-Id: Id65de095d7d7b697092a369f429b9e3b171d3e38

11 years agoMerge "Variable $wgRestrictionLevels unused since 1cbaa921"
jenkins-bot [Sun, 12 May 2013 14:34:25 +0000 (14:34 +0000)]
Merge "Variable $wgRestrictionLevels unused since 1cbaa921"

11 years agoVariable $wgRestrictionLevels unused since 1cbaa921
Platonides [Sun, 12 May 2013 14:18:25 +0000 (16:18 +0200)]
Variable $wgRestrictionLevels unused since 1cbaa921

Change-Id: I251ecaf319b2b4379ef80417ba23022a56064a94

11 years agoMerge "Fix unit tests when $wgEmailAuthentication is set to false"
jenkins-bot [Sun, 12 May 2013 08:13:15 +0000 (08:13 +0000)]
Merge "Fix unit tests when $wgEmailAuthentication is set to false"

11 years agoMerge "Made copyFileBackend.php skip files that cannot be copied instead of stopping."
jenkins-bot [Sun, 12 May 2013 01:36:19 +0000 (01:36 +0000)]
Merge "Made copyFileBackend.php skip files that cannot be copied instead of stopping."

11 years agoMade copyFileBackend.php skip files that cannot be copied instead of stopping.
Aaron Schulz [Sun, 12 May 2013 01:10:40 +0000 (18:10 -0700)]
Made copyFileBackend.php skip files that cannot be copied instead of stopping.

Change-Id: Ib15efdd35f38adefe3db500b4b6e5a71ea1858c7

11 years agoAdd $wgCascadingRestrictionLevels
MatmaRex [Wed, 24 Apr 2013 19:16:51 +0000 (21:16 +0200)]
Add $wgCascadingRestrictionLevels

A page can only be protected with cascading protection if the
requested restriction level is included in this array.

This replaces previously hard-coded values of 'sysop' and 'protect'.

This is necessary, because if any protection could be
cascading, users could who cannot normally protect pages could
"protect" them by transcluding them on protected pages they are
allowed to edit.

Bug: 47617
Change-Id: I5f8bcc899b46d466161894606cd27bf3b8624bd0

11 years agoFix unit tests when $wgEmailAuthentication is set to false
Alexandre Emsenhuber [Sat, 11 May 2013 20:14:18 +0000 (22:14 +0200)]
Fix unit tests when $wgEmailAuthentication is set to false

Since d2a5cf3 (I0b906b23de), 'emailaddress' and 'emailauthentication'
fields don't have any more CSS classes when $wgEmailAuthentication is
set to false which is breaking the tests.

Force $wgEmailAuthentication to true, so that the tests work in all cases.

Change-Id: Idc156f88ff1bc8595009056166f13191cf5c5c25

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 11 May 2013 19:07:00 +0000 (19:07 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I32706ffc47ccd85835a8a0ee1e716648b054854b

11 years agoDon't shown red box around unconfirmed email address in preferences if authentication...
Alex Monk [Fri, 10 May 2013 21:05:22 +0000 (22:05 +0100)]
Don't shown red box around unconfirmed email address in preferences if authentication is disabled

Susan and Base-w in #wikimedia discovered that a red box is always shown around
their email address on foundationwiki. This is because the box is shown by
default - even when email address authentication is disabled.

Change-Id: I0b906b23dec6018bc21a179e2cf950b705100c4c

11 years agoMerge "Message changes for new login form"
jenkins-bot [Sat, 11 May 2013 08:32:59 +0000 (08:32 +0000)]
Merge "Message changes for new login form"

11 years agoMessage changes for new login form
S Page [Thu, 9 May 2013 23:55:07 +0000 (16:55 -0700)]
Message changes for new login form

Shorter "Reset your password" (new key userlogin-resetpassword-link).
Shorter "Use secure connection" (existing key userlogin-signwithsecure).
Better explanations.

Change-Id: Ia8e4219b200c25a61cbbade36841bb2c45cc9704

11 years agoFix --file parameter description in MediaWikiPHPUnitCommand.php
Alexandre Emsenhuber [Sat, 11 May 2013 06:01:36 +0000 (08:01 +0200)]
Fix --file parameter description in MediaWikiPHPUnitCommand.php

Change-Id: Ie134c06943be38cd65f8dae54332d38278ea0f96

11 years agoMerge "[FileBackend] Moved short-circuit check from 6b1194b9 up to FileBackend."
jenkins-bot [Sat, 11 May 2013 03:56:43 +0000 (03:56 +0000)]
Merge "[FileBackend] Moved short-circuit check from 6b1194b9 up to FileBackend."

11 years agoAdd identifying info (img_timestamp and img_sha1) to upload log.
Brian Wolff [Wed, 17 Apr 2013 23:39:58 +0000 (20:39 -0300)]
Add identifying info (img_timestamp and img_sha1) to upload log.

I came across people complaining that it was hard to associate
upload log events to actual images since img_timestamp could
be different from log_timestamp, and generally no unique id.

Well I was there I made uploads use the new logging system.

Change-Id: Icd8662ecb9eb0f6c0ff9841bdbd5736d6dd0d015

11 years ago[FileBackend] Moved short-circuit check from 6b1194b9 up to FileBackend.
Aaron Schulz [Fri, 10 May 2013 20:55:39 +0000 (13:55 -0700)]
[FileBackend] Moved short-circuit check from 6b1194b9 up to FileBackend.

Change-Id: I57566a1779f353c18d96c59c47112c753aea6b90

11 years ago[FileBackend] Optimize the case were no operations are provided.
Aaron Schulz [Fri, 10 May 2013 20:45:34 +0000 (13:45 -0700)]
[FileBackend] Optimize the case were no operations are provided.

Change-Id: Iaf858ce2e8b21e031d27b984029f0424518201af

11 years agoMerge "[FileBackend] Cleaned up resyncFiles() and added conservative resync option...
jenkins-bot [Fri, 10 May 2013 20:02:00 +0000 (20:02 +0000)]
Merge "[FileBackend] Cleaned up resyncFiles() and added conservative resync option to FileBackendMultiWrite."

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 10 May 2013 20:01:29 +0000 (20:01 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoAdd value to add() call when locking
csteipp [Fri, 10 May 2013 18:19:31 +0000 (11:19 -0700)]
Add value to add() call when locking

When BagOStuff::lock() was called, it called $this->add() with only
two parameters, the key and the timeout. But BagOStuff::add() takes
three parameters (key, value, timeout), so all locks got an infinite
timeout.

Change-Id: I82bed11b0b799f2cda13a8a0bd0cd94908b6ce8e

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 10 May 2013 19:15:57 +0000 (19:15 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Iae8a69a2054039f19fe1ae5de1e06b4d7fe51bb5

11 years agotests: mock parser tests file access
Antoine Musso [Sun, 28 Apr 2013 21:13:49 +0000 (23:13 +0200)]
tests: mock parser tests file access

I eventually got tired of our parser tests creating and deleting fixture
files over and over.  This patch mock the files in memory and just
expose the file metadata which is all we need for parser tests.

The mocked classes are under /tests/phpunit/mocks/ and respect the
hierarchy of /includes/.

The wiki.png and headbg.jpg files are still copied on each test :/

Change-Id: Iccdff67222e66d48d01dd1596d09df2ea24b8c2a

11 years agoMerge "Increasing z-index of personal toolbar from 1 to 100"
jenkins-bot [Fri, 10 May 2013 17:12:59 +0000 (17:12 +0000)]
Merge "Increasing z-index of personal toolbar from 1 to 100"

11 years agoMerge "Removed unused join array from ActiveUser conds."
jenkins-bot [Fri, 10 May 2013 15:14:43 +0000 (15:14 +0000)]
Merge "Removed unused join array from ActiveUser conds."

11 years agoMerge "Change EXIF to Exif"
jenkins-bot [Fri, 10 May 2013 12:55:45 +0000 (12:55 +0000)]
Merge "Change EXIF to Exif"

11 years agoChange EXIF to Exif
Siebrand Mazeland [Fri, 10 May 2013 11:51:06 +0000 (13:51 +0200)]
Change EXIF to Exif

Per https://en.wikipedia.org/wiki/Exchangeable_image_file_format. Spotted
by Shirayuki and documented on
https://translatewiki.net/wiki/Thread:Support/About_MediaWiki:Sesp-property-exif-data/en

Change-Id: I92ba67ec60ccfe7a173d950593357b86792b8ed3

11 years agoCREDITS: Spell my name right
coren [Fri, 10 May 2013 02:20:48 +0000 (22:20 -0400)]
CREDITS: Spell my name right

That's been bugging me for a while.  :-)

Change-Id: If543ac24ee36fdd913ac2e2839a282a677d90152

11 years agoRemoved unused join array from ActiveUser conds.
Aaron Schulz [Fri, 10 May 2013 01:10:12 +0000 (18:10 -0700)]
Removed unused join array from ActiveUser conds.

* The table was not in the table array so this did not affect
  the SQL, but was still unused cruft.

Change-Id: Ia5aa934fb6e6de9daeb0072d902df6e681575fd7

11 years agoIncreasing z-index of personal toolbar from 1 to 100
kaldari [Fri, 10 May 2013 00:40:11 +0000 (17:40 -0700)]
Increasing z-index of personal toolbar from 1 to 100

Since the personal toolbar is at the top of the page and may include
children that need a high z-index, such as dropdown menus or overlays
we should set it to at least be equal to the highest potential
competitor (the Visual Editor toolbar).

The other option would be to not set a z-index at all, but this would
regress bug 37158.

Bug: 48078
Change-Id: I61daea50209d040f7e0f71207a4e90998c15083f

11 years agoMerge "Fixed spacing"
jenkins-bot [Thu, 9 May 2013 20:59:58 +0000 (20:59 +0000)]
Merge "Fixed spacing"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Raimond Spekking [Thu, 9 May 2013 20:48:29 +0000 (20:48 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "echo is not a function"
Demon [Thu, 9 May 2013 20:45:17 +0000 (20:45 +0000)]
Merge "echo is not a function"

11 years agoMerge "Add attributes to the Parsoid-only tests."
jenkins-bot [Thu, 9 May 2013 20:11:15 +0000 (20:11 +0000)]
Merge "Add attributes to the Parsoid-only tests."

11 years agoecho is not a function
umherirrender [Thu, 9 May 2013 16:58:21 +0000 (18:58 +0200)]
echo is not a function

Removed parenthesis after echo

Change-Id: Ia533aedf63b11d15dcc6a5cf75a56134a4b11d86

11 years ago[FileBackend] Cleaned up resyncFiles() and added conservative resync option to FileBa...
Aaron Schulz [Thu, 9 May 2013 19:30:42 +0000 (12:30 -0700)]
[FileBackend] Cleaned up resyncFiles() and added conservative resync option to FileBackendMultiWrite.

Change-Id: I4fd96fda71fc1aba44104241a8329e95ba5cdda7

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 9 May 2013 19:03:53 +0000 (19:03 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I454062bca563af5a95bf57ada92a113532a7ed59

11 years agoAdd attributes to the Parsoid-only tests.
Mark Holmquist [Fri, 3 May 2013 00:32:38 +0000 (17:32 -0700)]
Add attributes to the Parsoid-only tests.

Needed to fix these up in order to get them running right when the Parsoid
test-runner begins to let through more attributes.

Several tests are make wt2html/wt2wt only because they involve templates
which we can't convert from html2wt without additional information.
The "SOL-sensitive wikitext tokens" test was previously wrong: the PHP
preprocessor generates lists from the template content.  Updated it to
the proper results while adding attributes, although it will currently
fail until we either fix the native Parsoid preprocessor or tweak our
parserTests to use the PHP preprocessor.

Co-Author: Mark Holmquist <mtraceur@member.fsf.org>
Co-Author: C. Scott Ananian <cscott@cscott.net>
Change-Id: I657e4869fb0c2ae66d6732d28c6fc6645ad8e534

11 years agoprint is not a function
umherirrender [Thu, 9 May 2013 18:06:03 +0000 (20:06 +0200)]
print is not a function

Removed parenthesis after print

Change-Id: I1343872de7aa7c64952a3d86a63aaa091e46bda3

11 years agoFixed spacing
umherirrender [Thu, 9 May 2013 17:48:10 +0000 (19:48 +0200)]
Fixed spacing

Added spaces around some parenthesis

Change-Id: If1e50e2a7b0046e91c0bbce8bf6641d8b2446a1d

11 years ago[FileBackend] Added "adviseStat" option for the "listing followed by stat" case.
Aaron Schulz [Tue, 30 Apr 2013 18:39:40 +0000 (11:39 -0700)]
[FileBackend] Added "adviseStat" option for the "listing followed by stat" case.

* Used this parameter to speed up copyFileBackend.php.
* Also added mtime checks to copyFileBackend.php and a few cleanups.
* Also fixed some incorrect getDirListPageInternal/getFileListPageInternal docs.

Change-Id: I424ef238f7adf4cf1f33b74e3a4e187dcb328a99

11 years agoMerge "phpcs: Fix WhiteSpace.LanguageConstructSpacing warnings"
jenkins-bot [Thu, 9 May 2013 15:19:17 +0000 (15:19 +0000)]
Merge "phpcs: Fix WhiteSpace.LanguageConstructSpacing warnings"

11 years agoMerge "Refactored Special:ActiveUsers queries to remove filesort/temp table."
jenkins-bot [Thu, 9 May 2013 14:50:42 +0000 (14:50 +0000)]
Merge "Refactored Special:ActiveUsers queries to remove filesort/temp table."

11 years agophpcs: Fix WhiteSpace.LanguageConstructSpacing warnings
Timo Tijhof [Tue, 7 May 2013 23:00:15 +0000 (01:00 +0200)]
phpcs: Fix WhiteSpace.LanguageConstructSpacing warnings

Squiz.WhiteSpace.LanguageConstructSpacing:
   Language constructs must be followed by a single space;
   expected "require_once expression" but found
   "require_once(expression)"

It is a keyword (e.g. like `new`, `return` and `print`). As
such the parentheses don't make sense.

Per our code conventions, we use a space after keywords like
these. We appeared to have an unwritten exception for `require`
that doesn't make sense. About 60% of require/include usage
was missing the space and/or had superfluous parentheses.

It is as silly as print("foo") or return("foo"), it works
because keywords have no significance for whitespace between
it and the expression that follows, and since experessions can
be wrapped in parentheses for clarity (e.g. when doing string
concatenation or mathematical operations) the parenthesis
before and after basiclaly just ignored.

Change-Id: I2df2f80b8123714bea7e0771bf94b51ad5bb4b87

11 years agoMerge "Remove taint support"
jenkins-bot [Wed, 8 May 2013 22:48:33 +0000 (22:48 +0000)]
Merge "Remove taint support"

11 years agoMerge "Remove hphpc support and deprecate related functions"
jenkins-bot [Wed, 8 May 2013 22:43:32 +0000 (22:43 +0000)]
Merge "Remove hphpc support and deprecate related functions"

11 years agoRemove hphpc support and deprecate related functions
Tim Starling [Wed, 8 May 2013 06:48:56 +0000 (16:48 +1000)]
Remove hphpc support and deprecate related functions

hphpc has been superseded by hhvm, so support for hphpc is no longer
needed.

* Continue to use Preprocessor_Hash under HipHop since it is still
  faster under hhvm
* Keep $wgCompiledFiles for now, so that wikihiero doesn't give an error
  before Ic9d1e795 is merged
* Migrate the run-server script and associated configuration file to
  hhvm. Enable EnableStaticContentFromDisk since it doesn't seem
  ridiculously inefficient at first glance. Run from $IP rather than
  $IP/.. since hhvm is apparently not picky about sourcing files from
  outside of the current directory.

Change-Id: Ic3e769f1fbad4f7ad26dd819406796fee48c6b45

11 years agoMerge "Add PLURAL support to benefits"
jenkins-bot [Wed, 8 May 2013 20:51:51 +0000 (20:51 +0000)]
Merge "Add PLURAL support to benefits"

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Wed, 8 May 2013 20:25:46 +0000 (20:25 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Exclude external_user table in DatabaseSqliteTest"
jenkins-bot [Wed, 8 May 2013 20:24:50 +0000 (20:24 +0000)]
Merge "Exclude external_user table in DatabaseSqliteTest"

11 years agoMerge "Remove Parser_LinkHooks and CoreLinkFunctions classes"
jenkins-bot [Wed, 8 May 2013 19:56:11 +0000 (19:56 +0000)]
Merge "Remove Parser_LinkHooks and CoreLinkFunctions classes"

11 years agoMerge "[FileBackend] Process cache negatives for SHA1 on file stat."
jenkins-bot [Wed, 8 May 2013 19:32:39 +0000 (19:32 +0000)]
Merge "[FileBackend] Process cache negatives for SHA1 on file stat."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 8 May 2013 19:05:52 +0000 (19:05 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I1a7c7dc38c92525952f13bc0016f8d067f6036ce

11 years agoAdd content model to prop=info
umherirrender [Wed, 8 May 2013 18:08:40 +0000 (20:08 +0200)]
Add content model to prop=info

Fields of page table are shown by default in prop=info

Change-Id: Id8b90c341dea19337558ed355975ab890f0663e2

11 years agoMerge "(bug 46751) Make Buryat (Russia) (буряад) (bxr) fallback to Russian"
jenkins-bot [Wed, 8 May 2013 13:30:28 +0000 (13:30 +0000)]
Merge "(bug 46751) Make Buryat (Russia) (буряад) (bxr) fallback to Russian"

11 years agoMerge "Fix bootstrap in unit tests"
jenkins-bot [Wed, 8 May 2013 12:35:08 +0000 (12:35 +0000)]
Merge "Fix bootstrap in unit tests"

11 years agoMerge "Make Special:MovePage's "Reason" field an input, not a textarea"
MarkTraceur [Wed, 8 May 2013 04:06:57 +0000 (04:06 +0000)]
Merge "Make Special:MovePage's "Reason" field an input, not a textarea"

11 years agotests: Don't set wgStyleSheetPath in addition to wgStylePath
Timo Tijhof [Tue, 7 May 2013 23:32:21 +0000 (01:32 +0200)]
tests: Don't set wgStyleSheetPath in addition to wgStylePath

Because 1) `$wgStyleSheetPath = &$wgStylePath;` in default
settings, so setting one sets the other. No need to set both
and 2) in wmf-branches this variable is unset, thus this
caused an E_NOTICE internally when Test::setMwGlobals is
trying to access it to preserve the current value,
and 3) wgStyleSheetPath is deprecated.

Follows-up I1362932db223.

Change-Id: Ibd3f28e460fef995f68dfe1292d25fb75950dcf5

11 years agoparserTests: fix broken parsoid-only tests.
C. Scott Ananian [Tue, 7 May 2013 22:54:01 +0000 (18:54 -0400)]
parserTests: fix broken parsoid-only tests.

A few of the parsoid-only tests had broken/wrong output HTML, which was
being hidden by the normalization process.  In preparation for using
a stricter normalizer, fix up the bogus tests:

a) put a <tbody> inside all <table>s
b) it's <hr> not <hr/>
c) fix an orphaned </span>

Change-Id: I44961cd40f8f29eea005d9c6c7a458aadc4770d0

11 years agoMerge "skin: Revert font-weight on successbox and move to preferences"
jenkins-bot [Tue, 7 May 2013 21:57:45 +0000 (21:57 +0000)]
Merge "skin: Revert font-weight on successbox and move to preferences"

11 years agoskin: Revert font-weight on successbox and move to preferences
AVRS Aditya Sastry [Tue, 7 May 2013 07:22:04 +0000 (12:52 +0530)]
skin: Revert font-weight on successbox and move to preferences

Removed the font-weight: bold from the css rule of the error,
warning and successboxes and placed this css declaration in
mediawiki.special.preferences.css under a new class
"mw-sp-pref-successbox".

Follows-up 44e64fb.

Bug: 48197
Change-Id: I1a3d774c2daef158176479fba7828b383a195bb9

11 years ago[FileBackend] Process cache negatives for SHA1 on file stat.
Aaron Schulz [Tue, 7 May 2013 21:15:11 +0000 (14:15 -0700)]
[FileBackend] Process cache negatives for SHA1 on file stat.

Change-Id: Idc9f82309d52818acf57adc9c4eb04370a7b422a

11 years agoMerge "mediawiki.user: Use session ID instead of 1-year cross-session cookies"
jenkins-bot [Tue, 7 May 2013 20:59:14 +0000 (20:59 +0000)]
Merge "mediawiki.user: Use session ID instead of 1-year cross-session cookies"

11 years agoMerge "mw.config: Add wgPageContentModel for content model of current page"
jenkins-bot [Tue, 7 May 2013 20:53:20 +0000 (20:53 +0000)]
Merge "mw.config: Add wgPageContentModel for content model of current page"

11 years agomw.config: Add wgPageContentModel for content model of current page
umherirrender [Tue, 7 May 2013 19:59:40 +0000 (21:59 +0200)]
mw.config: Add wgPageContentModel for content model of current page

This field of the page table can be useful to determine the
corrosponding model for a page.

Change-Id: I0525ad764540b213b2697e1e9e64f7da73f6cf83

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 7 May 2013 20:22:46 +0000 (20:22 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "(bug 47950) Fix IndexPager detection of "is first" state"
MarkAHershberger [Tue, 7 May 2013 20:21:10 +0000 (20:21 +0000)]
Merge "(bug 47950) Fix IndexPager detection of "is first" state"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 7 May 2013 19:32:05 +0000 (19:32 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I5b167dc4fe14b1de8dd84d912244a4f96d762a63

11 years ago(bug 48212) Fix I720946e7: $this->opts['year'] shouldn't be modified.
Liangent [Tue, 7 May 2013 15:43:22 +0000 (15:43 +0000)]
(bug 48212) Fix I720946e7: $this->opts['year'] shouldn't be modified.

Otherwise, the offset is set automatically based on the default 'year'
parameter, then ReverseChronologicalPager gets misled and assumes that
the user have already specified a starting point so there must be a
previous page, causing a 'prev' link returning nothing shown.

Bug: 48212
Bug: 45580
Change-Id: I5341ff8c0d0422b9b3184dce74f0f143822cfe93

11 years agoMerge "Add test for comment-only line followed by a template transclusion"
jenkins-bot [Tue, 7 May 2013 17:46:29 +0000 (17:46 +0000)]
Merge "Add test for comment-only line followed by a template transclusion"

11 years agomediawiki.user: Use session ID instead of 1-year cross-session cookies
Adam Roses Wight [Mon, 11 Mar 2013 19:26:53 +0000 (12:26 -0700)]
mediawiki.user: Use session ID instead of 1-year cross-session cookies

No cookies should be assigned for longer than session expiry.

Bug: 44327
Change-Id: If2f096dadb639769d859e1596d84b3ad5775a01d

11 years agoUpdate docs/skin.txt
MatmaRex [Fri, 3 May 2013 22:03:56 +0000 (00:03 +0200)]
Update docs/skin.txt

Reflect the fact that five of the skins were removed. Some rephrasing
as well.

Change-Id: I1acfa872eb4601003762d29443265a49e2100cd6

11 years agoUse __METHOD__ for default $fname params to database functions
Chad Horohoe [Mon, 6 May 2013 13:20:40 +0000 (09:20 -0400)]
Use __METHOD__ for default $fname params to database functions

Change-Id: I86cbdeabee9709cde15a6b7bd47a53229c2e3f92

11 years agoAdd note that wgActiveUserDays affects the NUMBEROFACTIVEUSERS magic word.
Matthew Flaschen [Thu, 2 May 2013 03:43:36 +0000 (23:43 -0400)]
Add note that wgActiveUserDays affects the NUMBEROFACTIVEUSERS magic word.

Change-Id: I312fb1d8d0ffa2a978366c96accedf2a7b42bec8

11 years agoFix I25cf5a94: It should be @since 1.21 now.
Liangent [Tue, 7 May 2013 05:04:10 +0000 (05:04 +0000)]
Fix I25cf5a94: It should be @since 1.21 now.

That patch was created before 1.20 release and has stayed there for a
long time...

Change-Id: Icd28f749d55dd820e142ba094c848b713d9548ab

11 years agoqunit: Use jQuery.getScript instead of document.write
Timo Tijhof [Mon, 6 May 2013 18:55:04 +0000 (20:55 +0200)]
qunit: Use jQuery.getScript instead of document.write

TestSwarm jobs were breaking because this runs after the
document is ready, thus causing the page to be blanked by
document.write.

Change-Id: I5e1c331d72ac364c9cd970a9b085f0b986b26a14

11 years agoRemoving exception in case rev is null
kaldari [Tue, 7 May 2013 00:59:01 +0000 (17:59 -0700)]
Removing exception in case rev is null

Change-Id: I2fe2961876dcdc9bde3bca9584fcbe2294629eba

11 years agoAdding check to make sure rev isn't null
kaldari [Tue, 7 May 2013 00:38:42 +0000 (17:38 -0700)]
Adding check to make sure rev isn't null

Change-Id: I4be3904ed413086d559c21f95fd35e9b1540ce7f

11 years agoAdd test for comment-only line followed by a template transclusion
Gabriel Wicke [Tue, 7 May 2013 00:09:59 +0000 (17:09 -0700)]
Add test for comment-only line followed by a template transclusion

https://bugzilla.wikimedia.org/show_bug.cgi?id=48179

Change-Id: I4e41dcea94bbb1376ffa96d7381029b2cee85ec3

11 years agoMerge "mw.hook: Implement callback framework"
jenkins-bot [Mon, 6 May 2013 21:51:22 +0000 (21:51 +0000)]
Merge "mw.hook: Implement callback framework"

11 years agoMerge "mediawiki.action.edit: Support dynamically inserted form fields"
jenkins-bot [Mon, 6 May 2013 20:55:52 +0000 (20:55 +0000)]
Merge "mediawiki.action.edit: Support dynamically inserted form fields"

11 years agomediawiki.action.edit: Support dynamically inserted form fields
Alex Monk [Mon, 6 May 2013 14:20:35 +0000 (15:20 +0100)]
mediawiki.action.edit: Support dynamically inserted form fields

This fixes CharInsert in LQT. LQT dynamically creates its own text boxes
and this code should take that into account.

Bug: 41220
Change-Id: Id9469f9dfcbb92854780c63252cd9c5069e94487

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Mon, 6 May 2013 20:24:11 +0000 (20:24 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Reduced memory usage a bit for copyFileBackend.php with --missingonly."
jenkins-bot [Mon, 6 May 2013 20:00:15 +0000 (20:00 +0000)]
Merge "Reduced memory usage a bit for copyFileBackend.php with --missingonly."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 6 May 2013 19:36:03 +0000 (19:36 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ia291dfa770302c485bcf584854ee020f8a01ce8d

11 years agoMerge "Move DEADLOCK_* constants into DatabaseBase"
jenkins-bot [Mon, 6 May 2013 18:16:23 +0000 (18:16 +0000)]
Merge "Move DEADLOCK_* constants into DatabaseBase"

11 years agoUpdate SearchEngine::searchText() and SearchEngine::searchTitle() return type hints
Reedy [Mon, 6 May 2013 14:39:30 +0000 (15:39 +0100)]
Update SearchEngine::searchText() and SearchEngine::searchTitle() return type hints

Matches updates to MWSearch that can now return Status objects

Change-Id: I056fdf9f290d0a17e49948be158dd881185c8345

11 years agoMerge "Adding GetNewMessagesAlert hook and wgUserNewMsgRevisionId JS global"
jenkins-bot [Mon, 6 May 2013 15:22:52 +0000 (15:22 +0000)]
Merge "Adding GetNewMessagesAlert hook and wgUserNewMsgRevisionId JS global"

11 years agoMerge "Partly disable title conversion if variant == main language code"
jenkins-bot [Mon, 6 May 2013 15:20:02 +0000 (15:20 +0000)]
Merge "Partly disable title conversion if variant == main language code"

11 years agoMerge "Remove SkinLegacy.php"
jenkins-bot [Mon, 6 May 2013 14:11:00 +0000 (14:11 +0000)]
Merge "Remove SkinLegacy.php"

11 years agoMerge "Added a --backoff option for syncFileBackend.php"
jenkins-bot [Mon, 6 May 2013 14:03:32 +0000 (14:03 +0000)]
Merge "Added a --backoff option for syncFileBackend.php"

11 years agoMove DEADLOCK_* constants into DatabaseBase
Chad Horohoe [Mon, 6 May 2013 13:00:56 +0000 (09:00 -0400)]
Move DEADLOCK_* constants into DatabaseBase

Change-Id: I75ea4c19c757adc96ba3c5afe0b85d8579b02c80

11 years agoRemove pointless vertical alignment
Chad Horohoe [Mon, 6 May 2013 12:54:20 +0000 (08:54 -0400)]
Remove pointless vertical alignment

Change-Id: I57926bfb718fdb7e4f55a08f39fc6af9f2e4adf6

11 years agoRemove SkinLegacy.php
MatmaRex [Mon, 6 May 2013 11:38:35 +0000 (13:38 +0200)]
Remove SkinLegacy.php

Followup to Ia6d73c2d (the great skin removal event of 2013).

The two classes this file defined, SkinLegacy and LegacyTemplate, were
already removed from AutoLoader.php in the aforementioned commit, but
the file itself somehow stayed.

The Nostalgia extension includes its own copy, and I've rewritten
Cologne Blue to use SkinTemplate last year, which means that nothing
needs the legacy classes anymore. I grepped mediawiki/extensions just
in case and there were no hits apart from Nostalgia.

Change-Id: Ib36edff3f9b617357386914980b56fa5b1f6a83b

11 years agoRemove taint support
Tim Starling [Mon, 6 May 2013 07:34:23 +0000 (17:34 +1000)]
Remove taint support

Venema's taint feature was apparently never publicised beyond the
php-dev mailing list, and now there is a PECL taint extension which is
incompatible with the interface assumed here.

Grep confirms that wfArrayMap() is not used in any extensions.

Change-Id: I17d8d302947443262474c608829c7c7504bef589

11 years agoRefactored Special:ActiveUsers queries to remove filesort/temp table.
Aaron Schulz [Mon, 6 May 2013 01:39:24 +0000 (18:39 -0700)]
Refactored Special:ActiveUsers queries to remove filesort/temp table.

Change-Id: I4f32bad5084aadd289ccd2eefd93fc3d0d585b11