lhc/web/wiklou.git
12 years agoMerged ImageFunctions.php into GlobalFunctions.php
Aaron Schulz [Fri, 6 Apr 2012 23:42:39 +0000 (16:42 -0700)]
Merged ImageFunctions.php into GlobalFunctions.php

Change-Id: I02d468f9c54a6a0448a6d99505d0201a7949855a

12 years agoMerge "Implement routing for HTCP purges"
Aaron Schulz [Fri, 6 Apr 2012 22:12:50 +0000 (22:12 +0000)]
Merge "Implement routing for HTCP purges"

12 years agoImplement routing for HTCP purges
Catrope [Fri, 6 Apr 2012 20:27:10 +0000 (13:27 -0700)]
Implement routing for HTCP purges

This allows HTCP purges for different domains to be sent to different
multicast groups, based on regexes. Mark requested this so we could
separate the multicast groups for upload caches and text caches.

This code is UNTESTED, I'm mostly submitting this as a proof of concept
and to invite review by other core devs (specifically Tim).

Change-Id: Ie333a04131d6ca8394884ed1054f2baff55ab2d1

12 years ago[FileBackend] Use LRU for stat/sha1 cache.
Aaron Schulz [Fri, 6 Apr 2012 20:13:06 +0000 (13:13 -0700)]
[FileBackend] Use LRU for stat/sha1 cache.

Change-Id: I0a61720357aacb42a362c6666ba7f806d6cc14cf

12 years agogenerateSitemap can now optionally skip redirects
Asier Lostalé [Wed, 4 Apr 2012 14:39:37 +0000 (16:39 +0200)]
generateSitemap can now optionally skip redirects

Slightly enhanced on commit.

Patchset2:
 - get ride of unneeded arguments passed to addOption()
 - rename $redirects to $skippedRedirects. Easier to search.
 - easier to read conditional test of page_is_redirect

Change-Id: I4ae528a584c5a9d73b615a6281d75b14d056e5e7

12 years agoMerge "Correcting type of DatabaseSqlite::insertId()"
Brion VIBBER [Fri, 6 Apr 2012 19:57:31 +0000 (19:57 +0000)]
Merge "Correcting type of DatabaseSqlite::insertId()"

12 years ago[FileRepo] Added some cache code based on the problems in r97512.
Aaron Schulz [Fri, 6 Apr 2012 17:38:38 +0000 (10:38 -0700)]
[FileRepo] Added some cache code based on the problems in r97512.

* Made RepoGroup avoid caching files with large metadata and also reduced max cache size to 500 to avoid OOMs.
* Factored out a pingCache() function in RepoGroup.

Change-Id: I52f6413b9eb8b11fbffbde0f0e7acf97c7a2ff89

12 years agoCorrecting type of DatabaseSqlite::insertId()
Christian Aistleitner [Fri, 6 Apr 2012 18:54:24 +0000 (20:54 +0200)]
Correcting type of DatabaseSqlite::insertId()

Change-Id: I37ebe291cf8c4fd66a1ee236fcfa063016efbc8d

12 years agoMerge "(bug 35751) Fix git revision links on Special:Version"
Brion VIBBER [Fri, 6 Apr 2012 18:52:40 +0000 (18:52 +0000)]
Merge "(bug 35751) Fix git revision links on Special:Version"

12 years agoMerge "Revert "[LanguageConverter] Added some cache code based on the problems in...
Catrope [Fri, 6 Apr 2012 18:43:03 +0000 (18:43 +0000)]
Merge "Revert "[LanguageConverter] Added some cache code based on the problems in r97512.""

12 years agoRevert "[LanguageConverter] Added some cache code based on the problems in r97512."
Brion VIBBER [Fri, 6 Apr 2012 18:41:27 +0000 (18:41 +0000)]
Revert "[LanguageConverter] Added some cache code based on the problems in r97512."

This reverts commit 3b8dbbd502b68d373b74481ed2bead7413050c83 -- merged prematurely, needs add'l discussion

12 years agoMerge "[LanguageConverter] Added some cache code based on the problems in r97512."
Brion VIBBER [Fri, 6 Apr 2012 18:39:48 +0000 (18:39 +0000)]
Merge "[LanguageConverter] Added some cache code based on the problems in r97512."

12 years agoRemove duplicate URLs in SquidUpdate.php
Catrope [Fri, 6 Apr 2012 18:20:04 +0000 (11:20 -0700)]
Remove duplicate URLs in SquidUpdate.php

This has to be done in 3 places, because there are 3 public entry
points.

I originally submitted this to fight duplicates I thought I was seeing
in production, but it turns out I'm blind and the URLs weren't
duplicates after all. Nevertheless, preventing duplicate purges in the
SquidUpdate class is a good idea.

Change-Id: Idc21dd7d0b3b79572853b787fac746454d9178ea

12 years ago[LanguageConverter] Added some cache code based on the problems in r97512.
Aaron Schulz [Fri, 6 Apr 2012 17:59:43 +0000 (10:59 -0700)]
[LanguageConverter] Added some cache code based on the problems in r97512.

* Added $wgLanguageConverterCacheType global to control LC cache type. We can use it to enable direct apc use for language converter (to match the live hack).

Change-Id: I04616469aa53ccd1a5ce51af50a18acca5bb8bc4

12 years agoMerge "Make SITENAME with value mw.config.get( 'wgSiteName' ) available in parser...
Brion VIBBER [Fri, 6 Apr 2012 17:46:51 +0000 (17:46 +0000)]
Merge "Make SITENAME with value mw.config.get( 'wgSiteName' ) available in parser without the need of module users explicitly adding it."

12 years agoMerge "tests related to API block action and its gettoken"
Reedy [Fri, 6 Apr 2012 15:38:25 +0000 (15:38 +0000)]
Merge "tests related to API block action and its gettoken"

12 years agoTranslation updates from translatewiki.net
Translation updater bot [Fri, 6 Apr 2012 15:34:29 +0000 (15:34 +0000)]
Translation updates from translatewiki.net

Change-Id: If4567389637d89aa8266e5b3c0fc05a7c718797f

12 years agoMerge "(bug 35749) Update checkSyntax.php to use Git"
Hashar [Fri, 6 Apr 2012 15:07:34 +0000 (15:07 +0000)]
Merge "(bug 35749) Update checkSyntax.php to use Git"

12 years agoMerge "(bug 23006) create #speciale parser function"
Hashar [Fri, 6 Apr 2012 14:23:42 +0000 (14:23 +0000)]
Merge "(bug 23006) create #speciale parser function"

12 years ago(bug 35751) Fix git revision links on Special:Version
grunny [Fri, 6 Apr 2012 13:56:26 +0000 (23:56 +1000)]
(bug 35751) Fix git revision links on Special:Version

When .git isn't used in the clone URL, links currently break

Change-Id: Ia69e1bfea91ef50c126896b374a083447db4481f

12 years agoFix grammar issues in recently added messages.
Siebrand Mazeland [Fri, 6 Apr 2012 10:54:02 +0000 (12:54 +0200)]
Fix grammar issues in recently added messages.

Yay for review...

Change-Id: I7473adbf7d15e5ecb8133e822e9d995bee4257aa

12 years agoMerge "Gender namespaces for Serbian (sr)"
Hashar [Fri, 6 Apr 2012 10:45:58 +0000 (10:45 +0000)]
Merge "Gender namespaces for Serbian (sr)"

12 years agoGender namespaces for Serbian (sr)
Niklas Laxström [Fri, 6 Apr 2012 10:17:41 +0000 (10:17 +0000)]
Gender namespaces for Serbian (sr)

Submitted by user Rancher at
http://translatewiki.net/wiki/Thread:Support/GENDER_in_namespaces

Change-Id: I6795cd04057cc80ac30091acbc7e6a2b81072f31

12 years agoPartial revert of I80a4784 for mk
Niklas Laxström [Fri, 6 Apr 2012 09:57:25 +0000 (09:57 +0000)]
Partial revert of I80a4784 for mk

This change was vetoed:
http://translatewiki.net/wiki/Thread:User_talk:GerardM/Your_mesage_at_mk.wikipedia

Change-Id: If279d218720063a2d96229baa17d5240699f90ec

12 years ago(bug 23006) create #speciale parser function
umherirrender [Thu, 5 Apr 2012 17:22:34 +0000 (19:22 +0200)]
(bug 23006) create #speciale parser function

Also add explicit Title::getPrefixedText() in
CoreParserFunctions::special, so that method does not rely on
Title::toString.

Change-Id: I1d041b11386bff15811e19de47a662e5ed7a2b07

12 years agoMerge "[FileRepo] Various code cleanups."
Hashar [Fri, 6 Apr 2012 06:45:16 +0000 (06:45 +0000)]
Merge "[FileRepo] Various code cleanups."

12 years agoMerge "Un-marking testMakeNormalBlock as broken..."
Hashar [Fri, 6 Apr 2012 06:42:07 +0000 (06:42 +0000)]
Merge "Un-marking testMakeNormalBlock as broken..."

12 years ago(bug 35749) Update checkSyntax.php to use Git
Kevin Israel [Fri, 6 Apr 2012 04:13:46 +0000 (00:13 -0400)]
(bug 35749) Update checkSyntax.php to use Git

checkSyntax.php now uses git commands to retrieve a list of modified
files instead of the svn command-line client.

The script now considers any files that have been changed since
the nearest common ancestor to the master branch to be "modified",
as it is probably desirable to include files modified in previous
commits on the same local topic branch that have not yet made it
into master.

Change-Id: I0d4a02d4591242a9fd45291f5c4230c535e861b3

12 years agoMake SITENAME with value mw.config.get( 'wgSiteName' ) available in parser without...
Santhosh Thottingal [Mon, 2 Apr 2012 11:35:36 +0000 (17:05 +0530)]
Make SITENAME with value mw.config.get( 'wgSiteName' ) available in parser without the need of module users explicitly adding it.

- Refer Bug 33658
- Merging the jsgrammar branch of svn.

Change-Id: Iacdf02122f396ac90678241775eb8e079ff6369a

12 years agoMerge ""Show Changes" on default messages shows now diff against default message...
Brion VIBBER [Thu, 5 Apr 2012 23:02:18 +0000 (23:02 +0000)]
Merge ""Show Changes" on default messages shows now diff against default message text"

12 years agoMerge "Show Log toolbox link for anon users, fix toolbox on DeletedContribs"
Aaron Schulz [Thu, 5 Apr 2012 22:33:09 +0000 (22:33 +0000)]
Merge "Show Log toolbox link for anon users, fix toolbox on DeletedContribs"

12 years agoMerge "Use local context to get messages"
Aaron Schulz [Thu, 5 Apr 2012 22:20:01 +0000 (22:20 +0000)]
Merge "Use local context to get messages"

12 years agoMerge "code style tweaks"
Hashar [Thu, 5 Apr 2012 21:21:35 +0000 (21:21 +0000)]
Merge "code style tweaks"

12 years ago"Show Changes" on default messages shows now diff against default
umherirrender [Thu, 5 Apr 2012 19:58:00 +0000 (21:58 +0200)]
"Show Changes" on default messages shows now diff against default
message text

This is useful, because the textbox is already preloaded with the
default message text and than it is nice to get the diff against that
text.

Change-Id: Icbfb0090c32ea09e34ec3ccba26863189854f8a6

12 years ago[FileRepo] Various code cleanups.
Aaron Schulz [Thu, 5 Apr 2012 04:10:50 +0000 (21:10 -0700)]
[FileRepo] Various code cleanups.

* Made File::isHashed() wrap FileRepo::getHashLevels(). Removed now-used FileRepo::isHashed().
* Removed FileRepo::simpleClean(). Not useful anymore since the paths in Status errors don't have $IP or upload dirs anymore.
* Removed code in FileRepo::fileExistsBatch() and FileRepo::cleanupBatch() to handle FS file paths, which should never be passed in anymore. Likewise, removed FILES_ONLY parameter.
* Removed FileRepo::append()/appendFinish() stub functions.
* Added FileRepo::assertWritableRepo() function to better handle repos that are read-only by design rather than the hack of overwriting each function (several were missed).
* Added FileBackend::isPathTraversalFree() function and used it in FileRepo::validateFilename() to avoid duplication.
* Tweaked FileRepo::freeTemp() to avoid file locking and made FileRepo::cleanupBatch() return a Status.
* Moved FileRepo::cleanupDeletedBatch() near FileRepo::deleteBatch().
* Added type hinting to a few places.
* Tweaked some misleading doc comments and added function visibility markers.

Change 1:
* Simplified NullRepo to also use assertWritableRepo(). It is currently only used by a single unit test.

Change-Id: I1cd0f4971011772e38e5156f94ffc50325372f28

12 years agoUse local context to get messages
Alexandre Emsenhuber [Thu, 5 Apr 2012 19:39:22 +0000 (21:39 +0200)]
Use local context to get messages

Change-Id: I73e0d08f684c67ec5257953eadfda3acdfa4e71f

12 years agoFix for I5b02aa914916f64492c85ce6dcc3272b6406551a (r4335) add parentheses arround...
Alexandre Emsenhuber [Thu, 5 Apr 2012 18:59:50 +0000 (20:59 +0200)]
Fix for I5b02aa914916f64492c85ce6dcc3272b6406551a (r4335) add parentheses arround git revision hashes.

Per Reedy, for consistency with the MediaWiki item at the top of the page and revision numbers in SVN; arround parentheses arround git hashes of extensions in Special:Version.

Change-Id: I59573ffcdd9f245a12b85ba70182cef5ed3a277e

12 years agoMerge "Making https svnroot point to https viewvc, not https viewvc to https viewvc...
Aaron Schulz [Thu, 5 Apr 2012 19:00:04 +0000 (19:00 +0000)]
Merge "Making https svnroot point to https viewvc, not https viewvc to https viewvc, as that wouldn't replace anything"

12 years agoMerge "Duplicate array keys aren't going to do very much..."
Aaron Schulz [Thu, 5 Apr 2012 18:48:17 +0000 (18:48 +0000)]
Merge "Duplicate array keys aren't going to do very much..."

12 years agoDuplicate array keys aren't going to do very much...
Reedy [Thu, 5 Apr 2012 18:34:52 +0000 (19:34 +0100)]
Duplicate array keys aren't going to do very much...

Change-Id: I3421f70332f9514e71d4c1f0751be567108c1099

12 years agoMerge "(bug 27757) API method for retrieving tokens"
Brion VIBBER [Thu, 5 Apr 2012 18:34:50 +0000 (18:34 +0000)]
Merge "(bug 27757) API method for retrieving tokens"

12 years agoMerge "Add passing test documenting MW's acceptance of pipes between tr attributes"
Brion VIBBER [Thu, 5 Apr 2012 18:30:18 +0000 (18:30 +0000)]
Merge "Add passing test documenting MW's acceptance of pipes between tr attributes"

12 years agoMaking https svnroot point to https viewvc, not https viewvc to https viewvc, as...
Reedy [Thu, 5 Apr 2012 18:29:50 +0000 (19:29 +0100)]
Making https svnroot point to https viewvc, not https viewvc to https viewvc, as that wouldn't replace anything

Change-Id: Ibd7fe17e82c222c97010e468cec09ddc9aab0120

12 years agocode style tweaks
jeroendedauw [Thu, 5 Apr 2012 16:45:14 +0000 (18:45 +0200)]
code style tweaks

Change-Id: I992459cd740678d0eb0b2dd70de6c092d7dba67e

12 years agoMerge "Renamed "wfShellMaintenanceCmd" function and new, unused, het-deploy, hook...
Brion VIBBER [Thu, 5 Apr 2012 18:22:05 +0000 (18:22 +0000)]
Merge "Renamed "wfShellMaintenanceCmd" function and new, unused, het-deploy, hook to "wfShellWikiCmd". The old function now remains as a wrapper. The term "maintenance" is too restrictive."

12 years agoMerge "(bug 35728) Git revisions are now linked on Special:Version"
Brion VIBBER [Thu, 5 Apr 2012 18:08:12 +0000 (18:08 +0000)]
Merge "(bug 35728) Git revisions are now linked on Special:Version"

12 years agoFix error from I55939bb5295e73594c3fdf7287dddbc16a233ce4 (r4099) pointed out by Niker...
Alexandre Emsenhuber [Thu, 5 Apr 2012 18:02:59 +0000 (20:02 +0200)]
Fix error from I55939bb5295e73594c3fdf7287dddbc16a233ce4 (r4099) pointed out by Nikerabbit

The error is "PHP Strict Standards:  Creating default object from empty value in includes/User.php on line 2142"; the problem was that I forgot to renamed an instance of that variable while refactoring the code.

Change-Id: I4e32311693708ec5a0227d60f7818b374fccd4cc

12 years ago(bug 35728) Git revisions are now linked on Special:Version
Alexandre Emsenhuber [Thu, 5 Apr 2012 16:09:59 +0000 (18:09 +0200)]
(bug 35728) Git revisions are now linked on Special:Version

Change-Id: I5b02aa914916f64492c85ce6dcc3272b6406551a

12 years ago(bug 35649) Special:Version now shows hashes of extensions checked out from git
Alexandre Emsenhuber [Thu, 5 Apr 2012 15:13:14 +0000 (17:13 +0200)]
(bug 35649) Special:Version now shows hashes of extensions checked out from git

Change-Id: I0d9540dbc103ba678dd2fb5e11c656e238e31f18

12 years agoAdd passing test documenting MW's acceptance of pipes between tr attributes
Gabriel Wicke [Thu, 5 Apr 2012 13:49:58 +0000 (15:49 +0200)]
Add passing test documenting MW's acceptance of pipes between tr attributes

Change-Id: I584a8826348a9acc4facfaadf5766832d262a53d

12 years agoMerge "Remove some duplicate code in ProfilerSimpleTrace"
Hashar [Thu, 5 Apr 2012 08:24:32 +0000 (08:24 +0000)]
Merge "Remove some duplicate code in ProfilerSimpleTrace"

12 years agoRenamed "wfShellMaintenanceCmd" function and new, unused, het-deploy, hook
Aaron Schulz [Wed, 4 Apr 2012 23:48:55 +0000 (16:48 -0700)]
Renamed "wfShellMaintenanceCmd" function and new, unused, het-deploy, hook
to "wfShellWikiCmd". The old function now remains as a wrapper. The term "maintenance" is too restrictive.

Change-Id: I5c23d6475fd1aca374ee57b89212eee3a0d8cea1

12 years agoMerge "increase qunit coverage of mediawiki.html and mediawiki.util"
Brion VIBBER [Wed, 4 Apr 2012 21:04:54 +0000 (21:04 +0000)]
Merge "increase qunit coverage of mediawiki.html and mediawiki.util"

12 years agoRemoved "feed" parameter to query string added to feed links.
Alexandre Emsenhuber [Wed, 4 Apr 2012 20:51:51 +0000 (22:51 +0200)]
Removed "feed" parameter to query string added to feed links.

The "feed" parameter was set two times in the query string of feed links and thus was breaking the links.
Also removed a trailing whitespace pointed out by Krinkle in my last commit.

Change-Id: Ia210e6e998acf29cb0a0fad5b6f7f8d6062998d2

12 years agoincrease qunit coverage of mediawiki.html and mediawiki.util
Timo Tijhof [Wed, 4 Apr 2012 20:48:46 +0000 (22:48 +0200)]
increase qunit coverage of mediawiki.html and mediawiki.util

- mw.html
 * Adding test for mw.html.Raw
 * Adding more tests for mw.html.element

- mw.util
 * Minor coding style update (local variables)
 * Updating mw.util.addPortletLink to not create its own "#mw-panel",
 this was previously done for ./qunit/index.html (which has been
 removed) but when ran on [[Special:JavaScriptTest/qunit]] it collides
 with the existing "#mw-panel", so far didn't break anything but that
 was purely lucky. This element is redundant so taking it out of the
 html sample
 * Removing redundant clean up, #qunit-fixture is automatically cleaned
 after each test

Change-Id: Iaf9791ca3cdcac1b732c851cdecc8fcd9f96fdd8

12 years agoMerge "(bug 35705) QUnit upgraded from 1.2.0 to 1.5.0"
Timo Tijhof [Wed, 4 Apr 2012 20:36:06 +0000 (20:36 +0000)]
Merge "(bug 35705) QUnit upgraded from 1.2.0 to 1.5.0"

12 years agoMerge "Use local context to get messages and time formatting methods of Language...
Brion VIBBER [Wed, 4 Apr 2012 20:33:45 +0000 (20:33 +0000)]
Merge "Use local context to get messages and time formatting methods of Language class"

12 years agoUse local context to get messages and time formatting methods of Language class
Alexandre Emsenhuber [Wed, 4 Apr 2012 20:15:44 +0000 (22:15 +0200)]
Use local context to get messages and time formatting methods of Language class

Change-Id: Ib3f2bd32bad9e5b84149f6dca6e1cbf56838f601

12 years ago(bug 31817) add support for HTML5 <bdi> bidi embed element
Amir E. Aharoni [Wed, 28 Mar 2012 06:42:34 +0000 (08:42 +0200)]
(bug 31817) add support for HTML5 <bdi> bidi embed element

Adding <bdi> to $htmlpairsStatic to allow using this tag.

Adds parser test case to confirm that <bdi> makes it through with 'lang' attribute.

This updated patchset also adds <bdi> to the attribute whitelist with the basic common attribute; allows 'lang' and such to get through.

Change-Id: Ib7e6553f017837cb1d49d5718e288228c17392c0

12 years agoRemove old qunit/index.html
Timo Tijhof [Wed, 4 Apr 2012 19:53:49 +0000 (21:53 +0200)]
Remove old qunit/index.html

It wasn't actively maintained and has been made obsolete when
[[Special:JavaScriptTest/qunit]] was introduced, which actually uses
ResourceLoader, LocalSettings and the Skin. It was broken in some ways
already and adds no value. It was a quick hack that isn't needed
anymore.

Change-Id: I60098902cd1e736b08992890dce978c71b9b32b0

12 years ago(bug 35705) QUnit upgraded from 1.2.0 to 1.5.0
Timo Tijhof [Wed, 4 Apr 2012 19:37:03 +0000 (21:37 +0200)]
(bug 35705) QUnit upgraded from 1.2.0 to 1.5.0

- Release notes:
  https://github.com/jquery/qunit/blob/v1.5.0/History.md

- Source of imported files:
  * https://github.com/jquery/qunit/tree/v1.5.0
  * https://github.com/jquery/qunit/tree/e9b61098fd8854e75d8e8b1649259c8df06316e4/qunit

- Unit tests still pass.
  Tested on [[Special:JavaScriptTest/qunit]] with wgEnableJavaScriptTest=true

Change-Id: I37b84dc39b1701c66fbc45fb9f3c92225f4df1cd

12 years agoMerge "Reduced file journal index bloat by removing indexes that would only be used...
Brion VIBBER [Wed, 4 Apr 2012 18:14:11 +0000 (18:14 +0000)]
Merge "Reduced file journal index bloat by removing indexes that would only be used in rare cases and where we'd almost always only be interested in very recent entries only (timestamp is indexed). This should decrease insertion time a bit."

12 years agoMerge "Separate $wgArticlePath from $wgUsePathInfo."
Brion VIBBER [Wed, 4 Apr 2012 18:12:09 +0000 (18:12 +0000)]
Merge "Separate $wgArticlePath from $wgUsePathInfo."

12 years agoMerge "Postgres updater: add config table, adjust us_image_bits type"
Brion VIBBER [Wed, 4 Apr 2012 17:53:49 +0000 (17:53 +0000)]
Merge "Postgres updater: add config table, adjust us_image_bits type"

12 years agoMerge "Fix support for TestSwarm on SpecialJavaScriptTest/qunit"
Brion VIBBER [Wed, 4 Apr 2012 17:52:02 +0000 (17:52 +0000)]
Merge "Fix support for TestSwarm on SpecialJavaScriptTest/qunit"

12 years agoMerge "Fix Bug 33653 -JqueryMsg parser should support templates without replacements"
Brion VIBBER [Wed, 4 Apr 2012 17:46:20 +0000 (17:46 +0000)]
Merge "Fix Bug 33653 -JqueryMsg parser should support templates without replacements"

12 years agoMerge changes Id1ac2f8b,I48f8cd17,I10481ce6,Id4530499
Brion VIBBER [Wed, 4 Apr 2012 17:43:45 +0000 (17:43 +0000)]
Merge changes Id1ac2f8b,I48f8cd17,I10481ce6,Id4530499

* changes:
  PHPUnit preparations for tests of maintenance
  Database dependency injection for BackupDumpers
  Pulling in fix for superfluous header
  TextPassDumper::initProgress pull in default value

12 years agoPostgres updater: add config table, adjust us_image_bits type
Demon [Wed, 4 Apr 2012 13:48:14 +0000 (09:48 -0400)]
Postgres updater: add config table, adjust us_image_bits type

This is a followup to I18e67bcb, that I failed to notice before merging

Change-Id: Ia96f831f279b0f6a348f1db80ecf30298ecf064c

12 years agoPostgreSQL schema: datatype updates, remove unused column, add table
Greg Sabino Mullane [Sat, 24 Mar 2012 23:33:31 +0000 (19:33 -0400)]
PostgreSQL schema: datatype updates, remove unused column, add table

* More allowed data type conversions from MySQL to PostgreSQL
* Allow for data type SMALLINT: seen for first time!
* Handle CREATE TYPE: check for dupes, and allow the name as a valid data type.
* Remove the now-deprecated user_options column.
* Add new table "config"

Change-Id: I18e67bcb131b88bfaea7e736f302dd79ebfc9b82

12 years agoTranslation updates from translatewiki.net
Translation updater bot [Wed, 4 Apr 2012 12:54:34 +0000 (12:54 +0000)]
Translation updates from translatewiki.net

Change-Id: I86e850920a281db166d75ca32917e57a94b83490

12 years agoReduced file journal index bloat by removing indexes that would only be
Aaron Schulz [Wed, 4 Apr 2012 00:24:44 +0000 (17:24 -0700)]
Reduced file journal index bloat by removing indexes that would only be
used in rare cases and where we'd almost always only be interested in very
recent entries only (timestamp is indexed). This should decrease insertion
time a bit.

Change-Id: Idb33ee3229315c44b764a8ed476afe8760f5595c

12 years agoShow Log toolbox link for anon users, fix toolbox on DeletedContribs
Alex Monk [Wed, 4 Apr 2012 00:00:06 +0000 (01:00 +0100)]
Show Log toolbox link for anon users, fix toolbox on DeletedContribs

This will show the 'Log' toolbox link on pages relevant to anonymous users.
It also sets the relevant user on Special:DeletedContributions, which fixes the missing toolbox links (e.g. 'User contributions', 'Logs', 'Block user').

Change-Id: Ib51c59acb3656d9c209aeea22c1e00dc21a778db

12 years agoTidying up end of lines
Reedy [Tue, 3 Apr 2012 23:50:13 +0000 (00:50 +0100)]
Tidying up end of lines

Change-Id: I9b4acb1339a5d1c2e5d319937ca80062f6563e49

12 years agoMerge "RELEASE-NOTES for jQuery updates"
Reedy [Tue, 3 Apr 2012 22:57:43 +0000 (22:57 +0000)]
Merge "RELEASE-NOTES for jQuery updates"

12 years agoMerge "Bug 35681 - Upgrade jQuery UI to 1.8.18"
Reedy [Tue, 3 Apr 2012 22:56:37 +0000 (22:56 +0000)]
Merge "Bug 35681 - Upgrade jQuery UI to 1.8.18"

12 years agoFixed MoveFileOp::storagePathsChanged() to include source
Aaron Schulz [Tue, 3 Apr 2012 22:45:12 +0000 (15:45 -0700)]
Fixed MoveFileOp::storagePathsChanged() to include source

Change-Id: I965de0e9a89d97ac6ee9a047daceb93946b69fa2

12 years agoMerge "Bug 35680 - Upgrade to jQuery 1.7.2"
Krinkle [Tue, 3 Apr 2012 22:29:09 +0000 (22:29 +0000)]
Merge "Bug 35680 - Upgrade to jQuery 1.7.2"

12 years agoRELEASE-NOTES for jQuery updates
Reedy [Tue, 3 Apr 2012 21:57:37 +0000 (22:57 +0100)]
RELEASE-NOTES for jQuery updates

Change-Id: Iaee823d67661e79caae53ae00d44c1c6266ead7d

12 years agoBug 35681 - Upgrade jQuery UI to 1.8.18
Reedy [Tue, 3 Apr 2012 21:23:59 +0000 (22:23 +0100)]
Bug 35681 - Upgrade jQuery UI to 1.8.18

http://blog.jqueryui.com/2012/02/jquery-ui-1-8-18/

Change-Id: I31e870279e239733437c7222c5e69be112e8aba1

12 years agoMerge "Use local context to get messages and time formatting methods of Language...
Aaron Schulz [Tue, 3 Apr 2012 21:16:23 +0000 (21:16 +0000)]
Merge "Use local context to get messages and time formatting methods of Language class"

12 years agoUse local context to get messages and time formatting methods of Language class
Alexandre Emsenhuber [Tue, 3 Apr 2012 21:04:37 +0000 (23:04 +0200)]
Use local context to get messages and time formatting methods of Language class

Change-Id: I063e3076eea754e08737d553bb8dad5dfcf91121

12 years agoTranslation updates from translatewiki.net
Translation updater bot [Tue, 3 Apr 2012 21:11:13 +0000 (21:11 +0000)]
Translation updates from translatewiki.net

Change-Id: If0be46f5e28febeffec3dd80a04751ad70995edf

12 years agoBug 35680 - Upgrade to jQuery 1.7.2
Reedy [Tue, 3 Apr 2012 21:05:41 +0000 (22:05 +0100)]
Bug 35680 - Upgrade to jQuery 1.7.2

http://blog.jquery.com/2012/03/21/jquery-1-7-2-released/

Change-Id: I2d7d6eeef07552b796a68963ccd4f89f4c5939d7

12 years agotests related to API block action and its gettoken
Reedy [Tue, 3 Apr 2012 20:02:27 +0000 (21:02 +0100)]
tests related to API block action and its gettoken

Add tests for:
 - action=block and action=unblock gettoken
 - attempting to block or unblock a user with no token passed.

Patchset2: use a provider to have tests run against both 'block' and
'unblock' actions.

Change-Id: I686348ff4e2fe419c556acea2fa59dd203dc9440

12 years ago(bug 34355) add a variable and parser function for the namespace number
umherirrender [Sun, 1 Apr 2012 10:27:59 +0000 (12:27 +0200)]
(bug 34355) add a variable and parser function for the namespace number

Change-Id: Ie162cfda7ddd38d4278ceee5fd23f5a4e579cb96

12 years agoUn-marking testMakeNormalBlock as broken...
Reedy [Tue, 3 Apr 2012 20:16:01 +0000 (21:16 +0100)]
Un-marking testMakeNormalBlock as broken...

Change-Id: I5960d71409dc6338249817bc67de5227845dc3d8

12 years agoMerge "Remove user rights link from anonymous contributions pages Remove the user...
Brion VIBBER [Tue, 3 Apr 2012 20:07:49 +0000 (20:07 +0000)]
Merge "Remove user rights link from anonymous contributions pages Remove the user rights link from the Contributions/DeletedContributions pages for anonymous users, as you can't set user rights on anonymous users."

12 years ago(bug 31236) Refactor CSS loading and apply CSSJanus to all CSS files.
Amir E. Aharoni [Wed, 28 Mar 2012 14:18:38 +0000 (16:18 +0200)]
(bug 31236) Refactor CSS loading and apply CSSJanus to all CSS files.

This commit is supposed to fix bug 31236.
Refactored getCSS to load files more generically.
Applied CSSJanus transform to all CSS files.
Updated release notes.

Change-Id: I4418a0dcb40fe181dc62a14a9f65b658e3c0d473

12 years agoRemove user rights link from anonymous contributions pages
Alex Monk [Mon, 2 Apr 2012 16:32:23 +0000 (17:32 +0100)]
Remove user rights link from anonymous contributions pages
Remove the user rights link from the Contributions/DeletedContributions pages for anonymous users, as you can't set user rights on anonymous users.

Change-Id: I21551aa6c9ec14c5cda997f2c78fe7434df6d371

12 years agoMerge "Unbuffered queries result freeing & error handling"
Brion VIBBER [Tue, 3 Apr 2012 19:51:05 +0000 (19:51 +0000)]
Merge "Unbuffered queries result freeing & error handling"

12 years agoMerge "Bug 35671 - PHP Notice: Undefined index: gettoken in includes/api/ApiMain...
Demon [Tue, 3 Apr 2012 19:47:08 +0000 (19:47 +0000)]
Merge "Bug 35671 - PHP Notice: Undefined index: gettoken in includes/api/ApiMain.php on line 598"

12 years agoRemove some duplicate code in ProfilerSimpleTrace
Alexandre Emsenhuber [Thu, 29 Mar 2012 15:59:43 +0000 (17:59 +0200)]
Remove some duplicate code in ProfilerSimpleTrace

Change-Id: Iab0b5343dbbd50419ba31724513b062f682c98df

12 years agoUnbuffered queries result freeing & error handling
Christian Aistleitner [Tue, 3 Apr 2012 17:55:02 +0000 (19:55 +0200)]
Unbuffered queries result freeing & error handling

Puts result set ownership back into producer, and tries to restore the
database buffering upon exceptions during dumps

Change-Id: Ie3e2b5b39cc6cef25a0021694e7a53a92b1dff5b

12 years agoreport real upload limit on Special:Upload
Jan Gerber [Tue, 3 Apr 2012 18:26:21 +0000 (20:26 +0200)]
report real upload limit on Special:Upload

upload limit also depends on post_max_size
check post_max_size and upload_max_filesize
for reported upload limit.

Change-Id: I587b67fb95f73d1b00ec1b407608934e8a1f1360

12 years agoBug 35671 - PHP Notice: Undefined index: gettoken in includes/api/ApiMain.php on...
Reedy [Tue, 3 Apr 2012 18:07:19 +0000 (19:07 +0100)]
Bug 35671 - PHP Notice: Undefined index: gettoken in includes/api/ApiMain.php on line 598

Change-Id: I220dfcd964ceb4254b310140b916a7c63a3044ef

12 years ago(bug 17615) nosummary option should be reassigned on preview/captcha
umherirrender [Sun, 1 Apr 2012 13:37:10 +0000 (15:37 +0200)]
(bug 17615) nosummary option should be reassigned on preview/captcha

Change-Id: I12f1cf37b7a093ca9f5b949e41fc482c6b7fb5fc

12 years agoMerge "TextPassDumper -> backupTextPass.inc"
Brion VIBBER [Tue, 3 Apr 2012 17:31:37 +0000 (17:31 +0000)]
Merge "TextPassDumper -> backupTextPass.inc"

12 years agoPer Siebrand, follow-up I55939bb5295e73594c3fdf7287dddbc16a233ce4 (r4099):
Alexandre Emsenhuber [Tue, 3 Apr 2012 16:44:06 +0000 (18:44 +0200)]
Per Siebrand, follow-up I55939bb5295e73594c3fdf7287dddbc16a233ce4 (r4099):
* Add message documentation
* Changed 'emaildisabled' wording for better understandability
* Added @since comment in User::setEmailWithConfirmation() and @deprecated in Preferences::trySetUserEmail()

Change-Id: I73c4b82ff2493a26ffbab426f30cd9af5680e503

12 years agoMerge "(bug 21796) Fix null dereference on Special:Undelete."
Brion VIBBER [Tue, 3 Apr 2012 16:27:34 +0000 (16:27 +0000)]
Merge "(bug 21796) Fix null dereference on Special:Undelete."

12 years agoMerge "Moved Preferences::trySetUserEmail() to User::setEmailWithConfirmation()"
Hashar [Tue, 3 Apr 2012 15:44:34 +0000 (15:44 +0000)]
Merge "Moved Preferences::trySetUserEmail() to User::setEmailWithConfirmation()"