Commit graph

34645 commits

Author SHA1 Message Date
umherirrender
d435aa2c58 Fixed some @params documentation (includes/utils)
Swapped some "$var type" to "type $var" or added missing types
before the $var. Changed some other types to match the more common
spelling. Makes beginning of some text in captial.

Change-Id: I9bd4ef370016cbbcce42d2612031a264eb3de61b
2014-07-21 20:58:14 +02:00
jenkins-bot
4c0f5ab1da Merge "Leave table names with numbers untouched in DatabaseBase::generalizeSQL" 2014-07-21 14:47:35 +00:00
jenkins-bot
c505ae44d4 Merge "For xcf files, compose layers before scaling" 2014-07-21 12:29:59 +00:00
withoutaname
52167c9d7f Remove deprecated Title::userCanRead()
Change-Id: I574babf4534c849d1e1491724ea537d53ea1d1d5
2014-07-21 06:00:19 +00:00
jenkins-bot
897c7fce96 Merge "Collation: Workaround for incorrect collation of Estonian" 2014-07-21 05:05:50 +00:00
withoutaname
071353c89a Remove deprecated HistoryPage class
Change-Id: I3db4d5a1a2c574a73e2fcfe1fd1da49f3570e4b6
2014-07-21 04:54:40 +00:00
jenkins-bot
78a4960908 Merge "Fixed spacing" 2014-07-20 20:03:01 +00:00
umherirrender
53c420e278 Fixed spacing
- use tab as indent instead of spaces
- Added space after closures "function"
- Added spaces around string_concat
- Added newline inside empty blocks
- Removed four spaces after comma

Change-Id: I4425b0c6a69b36f40acfea6511b8950cf09ce2b2
2014-07-20 21:41:41 +02:00
Bartosz Dziewoński
638801374b Collation: Workaround for incorrect collation of Estonian
'W' and 'V' should not be considered the same letter for the purposes
of collation in modern Estonian. We work around this by replacing 'W'
and 'w' with 'ᴡ' U+1D21 'LATIN LETTER SMALL CAPITAL W' for sortkey
generation, which is collated like 'W' and is not tailored to have the
same primary weight as 'V' in Estonian.

Bug: 54168
Change-Id: I3e8031b9d1dc18fdb7595fb9fd23e5f930106fa4
2014-07-20 21:11:38 +02:00
Translation updater bot
d188765b78 Localisation updates from https://translatewiki.net.
Change-Id: If486a0d92a03060d51bd38129b42f00194339ac9
2014-07-20 20:54:03 +02:00
Leon Liesener
3091b49e77 Shortened too long lines
Change-Id: Ia82162dd52b3fea7e76c1f47cb66bce3b7927cef
2014-07-20 20:10:37 +02:00
Brian Wolff
bceb8b6acf For xcf files, compose layers before scaling
Otherwise if some layers are a different size than the overall
image, the output will be distorted as all the layers will be
resized.

An example of such a file is the 2007 version of
[[File:Blason_Saint-Malo.xcf]] (Need a version of image magick
newer than production to see the issue).

Bug: 35622
Change-Id: Ibbe8645afc151b0e9b658f762497071d67be3836
2014-07-20 11:44:50 -03:00
Kunal Mehta
e7361de181 Add OutputPageScriptsForBottomQueue hook
This allows for extensions to add specific modules into the bottom
queue.

Bug: 62602
Change-Id: Ifccac7889e80b2f674cd54bb4ad3e53c6aa1dfa1
2014-07-20 02:16:00 +02:00
Kunal Mehta
126fb8d157 OutputPage: Support foreign module sources in makeResourceLoaderLink
To do so, created ResourceLoader::createLoaderURL(), which takes a
ResourceLoaderContext object. ResourceLoader::makeLoaderURL() was
deprecated.

While reviewing usage of the old function, many of the callers only
differed by one or two parameters from their respective
ResourceLoaderContext object. To simplify that use case, I created
DerivativeResourceLoaderContext, based of off DerivativeContext for
IContextSource.

Change-Id: I961c641ab953153057be3e3b8cf6c07435e9a0b0
2014-07-19 23:44:00 +00:00
Aaron Schulz
92e0d0f927 Added a hasMasterConnection() method to LoadBalancer
* Made wfWaitForSlaves() use it instead of using isOpen() incorrectly.
  The index for the master is 0, not DB_MASTER. This fixes 2979f0b6.

Change-Id: I48e5c7f10d8fe6b8bf6e830282352e3238b5d3ae
2014-07-19 16:19:43 -07:00
jenkins-bot
eeead07997 Merge "Avoid useless delay and master connections in wfWaitForSlaves() in runJobs.php" 2014-07-19 23:06:08 +00:00
Aaron Schulz
2979f0b6f1 Avoid useless delay and master connections in wfWaitForSlaves() in runJobs.php
* Some jobs, like Parsoid ones, do not actually do master DB updates

Change-Id: I1a8830eafd7760d081df966bb423030dcdc96408
2014-07-19 15:19:40 -07:00
jenkins-bot
3228e1ba8d Merge "Move function xmlsafe() from Export.php to OAI extension" 2014-07-19 21:32:04 +00:00
withoutaname
344e6c7b75 Move function xmlsafe() from Export.php to OAI extension
Exporting function from Export.php.

Change-Id: I82a78ff7a34402f2cc065643d90b064b996c525d
2014-07-19 23:26:23 +02:00
umherirrender
2b021dc48a Fixed spacing
- Added/removed spaces around parenthesis
- Added space after switch/if/foreach
- changed else if to elseif

Change-Id: I99cda543e0e077320091addd75c188cb6e3a42c2
2014-07-19 23:12:10 +02:00
jenkins-bot
a7db326026 Merge "Remove unused global declarations" 2014-07-19 21:04:12 +00:00
umherirrender
301a7f3d1d Remove unused global declarations
Change-Id: I05a9bc5c0c0447c045714a445b0ed44f001db1dc
2014-07-19 22:44:54 +02:00
Translation updater bot
11845cb6a3 Localisation updates from https://translatewiki.net.
Change-Id: Ie56bee3e7090bc844996d228736a938478e86929
2014-07-19 21:42:35 +02:00
eikes
2f002458d5 Split "suppressrevision" into two user rights
In this change, a new passive user right named "viewsuppressed"
which can be used in order to view suppressed page content was added
to MediaWiki core.
Furthermore, this right was also added to the list of available rights,
to qqq.json and to en.json where also the description of the
"suppressrevision" right was adjusted in order to reflect reality.

Bug: 20476
Change-Id: Id1baacb9c782763db5e05ef8b5c1b761997efcc9
2014-07-19 18:11:15 +02:00
Rohan
c4a3cd4988 Leave table names with numbers untouched in DatabaseBase::generalizeSQL
The function converts numbers to general forms
Eg. 10 => N
but creates a problem for tables whose names have digits in them
Eg. l10n_cache => lNn_cache

This was fixed using regex lookarounds

Bug: 67925
Change-Id: I0e97e211f6d60ba0d639b91d3a68c5e42bfb3f78
2014-07-19 20:40:17 +05:30
jenkins-bot
d2aa30c032 Merge "Some misc cleanup to ProtectionForm" 2014-07-19 13:27:54 +00:00
jenkins-bot
004cb173d8 Merge "ContextSource::getContext() can return any IContextSource" 2014-07-19 13:06:02 +00:00
jenkins-bot
bbe4a6e183 Merge "Block: $row is a stdClass, not a ResultWrapper" 2014-07-19 03:14:04 +00:00
withoutaname
a5ed84d4d9 Remove deprecated global function wfViewPrevNext()
Deprecated since 1.19, alternative is Language::viewPrevNext().

Change-Id: I26d8dec1475ac3f6592f8d0ef7936440c1a0f14d
2014-07-18 21:20:00 +00:00
withoutaname
d1e0959eef Move CacheHelper to includes/cache/ folder
Change-Id: I13c9cf1be7fe0d436ea1a5d23f162abac7d97a29
2014-07-18 19:45:05 +00:00
jenkins-bot
5a7ffeb58b Merge "Add SpecialListUsers::prefixSearchSubpages" 2014-07-18 16:22:02 +00:00
jenkins-bot
56796d9bd6 Merge "Fix doc of ChangesListSpecialPage::doHeader" 2014-07-18 13:40:39 +00:00
jenkins-bot
c2d702b73e Merge "i18n: use int: for consistency" 2014-07-18 12:33:34 +00:00
Kevin Israel
b3cee0610f DefaultSettings: Rewrap $wgThumbnailMinimumBucketDistance comment
To avoid a PHPCS warning. Also fixed some small errors in the text.

Change-Id: I7d9b1bde971b7ae66f93a1025a0cbcc1d809e69b
2014-07-18 02:49:05 -04:00
jenkins-bot
12b4d38602 Merge "Revert "Breaking out disallowed CSS into a global variable"" 2014-07-18 02:50:16 +00:00
Krinkle
d2c5a1c6e7 Revert "Breaking out disallowed CSS into a global variable"
This reverts commit ad4f512c74.

Change-Id: I1dbb927997693d686b4677b9c2107be99dedd7b2
2014-07-18 02:39:41 +00:00
jenkins-bot
a0864e85a2 Merge "Breaking out disallowed CSS into a global variable" 2014-07-18 00:13:11 +00:00
jdlrobson
0b6fe244a8 Hygiene: Remove useless commented out code.
Added in Thu May 10 17:51:44 2012
2 years later still commented.
Clearly not useful.

Change-Id: I07cd3853d40ff7a9710adff7c7d8ff8c9b717ff1
2014-07-17 14:12:08 -07:00
jenkins-bot
20a25dc1e9 Merge "Fixed initial as-of cache time shown at Special:ActiveUsers" 2014-07-17 19:41:39 +00:00
Aaron Schulz
2ef08d7d49 Fixed initial as-of cache time shown at Special:ActiveUsers
Change-Id: I97c662a0c2b912924df07bd2cde790535026005c
2014-07-17 12:32:51 -07:00
jenkins-bot
ed08719b4e Merge "Remove some PHP4 microtime() compat wrappers" 2014-07-17 14:57:58 +00:00
umherirrender
d5d37cd034 Add missing rollback to LocalFile::recordUpload2
When begin was called, all returns should have rollback called to
close the transaction.

Change-Id: I8197f73fb45c2e2900db6d5e588623f9b0c46ea5
2014-07-17 10:41:18 +02:00
Kunal Mehta
aed715d336 Installer: Minor change to "config-register-globals-error" message
Suggested in If951d152 post-merge

Change-Id: Ifca6bd7af37f8cc55c759bd066860b3e93cf2962
2014-07-16 22:09:18 -07:00
Kevin Israel
7c08af2165 Remove some PHP4 microtime() compat wrappers
Trivially replaced with microtime( true ).

The following classes still use microtime() without the
argument, though I have chosen not to change them in this
commit because of a possible loss of precision:

* MWCryptHKDF
* UIDGenerator
* UpdateSpecialPages
* UploadStash

Change-Id: I4f594f6ada9e8fce3319b61844b9857d87e9aa99
2014-07-16 23:39:48 -04:00
Chad Horohoe
6d73b42d59 Remove AjaxAddScript hook
Has been obsolete since the introduction of ResourceLoader and
is unused by any extension in Git.

Change-Id: Ia8ce6a0f1c5d46811897bd75670a3d5ea76caf7d
2014-07-16 18:49:36 -07:00
jenkins-bot
1f4dc7761a Merge "Added missing unlock() calls in LocalFile" 2014-07-17 00:44:31 +00:00
jenkins-bot
9c3b9ef639 Merge "Fix navigation buttons on Special:Listfiles for first and last page" 2014-07-17 00:20:43 +00:00
Aaron Schulz
c87c9c14da Added missing unlock() calls in LocalFile
Change-Id: Id427fb424bfb46670f2074664aca750014c70225
2014-07-16 17:14:23 -07:00
Rohan
c4e8e030e4 Fix navigation buttons on Special:Listfiles for first and last page
The listfiles pager was appending the username to the paging queries
for all paging queries. On the first/last page, this was appending
the username to false, thus marking the first/last page as still having
further results despite that not being the case.

Bug: 67627
Change-Id: Ib302a826fa638d7ae25c6d37951277fa8701ab69
2014-07-17 00:14:13 +00:00
jenkins-bot
34b8d8d611 Merge "Adding css styling option for help option in HTMLForm" 2014-07-16 23:22:00 +00:00