lhc/web/wiklou.git
12 years agoMerge "Can't return values from functions that don't return anything"
Aaron Schulz [Fri, 20 Apr 2012 07:00:42 +0000 (07:00 +0000)]
Merge "Can't return values from functions that don't return anything"

12 years ago(bug 34938) <title> empty on Sanskrit Wikipedia
Antoine Musso [Thu, 19 Apr 2012 22:17:57 +0000 (00:17 +0200)]
(bug 34938) <title> empty on Sanskrit Wikipedia

Second time this issue happen. The symptom is that some pages on
sa.wikipedia.org have an empty HTML <title>.

Originally thought it was an issue with the l10n update script on WMF
cluster, running the updater apparently fixed the issue one time.

This time it seems the issue is caused by 'pagetitle' being empty in
MessagesSa.php. See commit a613ec85f81b703dd1058eaf1bdc512b81e3c1a3
made by translatewiki script on March 14th 2012.

Change-Id: Ibfd9b9e566431ca115d77c97c1359373e0c2fb5a

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 19 Apr 2012 21:11:42 +0000 (21:11 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib698667b7b5a3b6d06483bc6660105dac28cbbc7

12 years agoMerge "wfAssembleUrl lacked '@since 1.19' comment"
Hashar [Thu, 19 Apr 2012 19:30:49 +0000 (19:30 +0000)]
Merge "wfAssembleUrl lacked '@since 1.19' comment"

12 years ago(bug 35685) Add section with entry point URLs to Special:Version
Catrope [Thu, 12 Apr 2012 06:10:11 +0000 (23:10 -0700)]
(bug 35685) Add section with entry point URLs to Special:Version

This'll make it easier for people to figure out where api.php is, and it
should help debug bad settings for $wgArticlePath/$wgScriptPath too.

Patchset 2: address review comments
Patchset 3: rebased to fix conflict in RELEASE-NOTES-1.20
Patchset 4: [Sam] whitespace
Patchset 5: moved down entry points list, fixed mw.org Manual: links
Patchset 6: rebased for another RELEASE-NOTES-1.20 conflict

Change-Id: I86eb84aca38abe214dfa3c3aeb3a9b6e586c8602

12 years agogroup memcached debug logs
Antoine Musso [Thu, 19 Apr 2012 13:50:44 +0000 (15:50 +0200)]
group memcached debug logs

When enabling memcached debug logs ($wgMemCachedDebug), they are
unconditionally sent to the main $wgDebugLogFile.  This patch make it
possible to sent thoses specific log to an alternate file by setting
$wgDebugLogGroups['memcached']

Change-Id: I85d8ab92471ce3c31f8168dae83fe91e95e18dce

12 years agoCan't return values from functions that don't return anything
Reedy [Thu, 19 Apr 2012 13:07:40 +0000 (14:07 +0100)]
Can't return values from functions that don't return anything

Change-Id: If964ce2f39904f1e9e3101e7cafaa6a96d58adfc

12 years agoMerge "(bug 36049) placeholder attrib for HTMLForm Textarea"
Hashar [Thu, 19 Apr 2012 11:46:49 +0000 (11:46 +0000)]
Merge "(bug 36049) placeholder attrib for HTMLForm Textarea"

12 years ago(bug 36049) placeholder attrib for HTMLForm Textarea
awjrichards [Tue, 17 Apr 2012 23:04:24 +0000 (16:04 -0700)]
(bug 36049) placeholder attrib for HTMLForm Textarea

Change-Id: I671b4869ef30734c4bfb0c2beed3841f90ab5d16

12 years agoMerge "wfMkdirParents() should display mode in octal."
Hashar [Thu, 19 Apr 2012 10:02:30 +0000 (10:02 +0000)]
Merge "wfMkdirParents() should display mode in octal."

12 years agoMerge "Removed subclassing of PageQueryPage where not needed."
Hashar [Thu, 19 Apr 2012 10:00:05 +0000 (10:00 +0000)]
Merge "Removed subclassing of PageQueryPage where not needed."

12 years agowfAssembleUrl lacked '@since 1.19' comment
Reedy [Thu, 19 Apr 2012 08:58:54 +0000 (09:58 +0100)]
wfAssembleUrl lacked '@since 1.19' comment

Related to Bug 36084 - PHP Fatal error: Call to undefined function wfAssembleUrl()

Change-Id: Ief6077ab60ec8613d744e6e2e2e72043a6b3dd96

12 years agoMerge "[FileRepo] Use resolveToStoragePath() in more places."
Hashar [Thu, 19 Apr 2012 09:37:04 +0000 (09:37 +0000)]
Merge "[FileRepo] Use resolveToStoragePath() in more places."

12 years agowfMkdirParents() should display mode in octal.
Platonides [Tue, 17 Apr 2012 20:57:06 +0000 (22:57 +0200)]
wfMkdirParents() should display mode in octal.

Patchset 2: Address issue pointed out by CR

Change-Id: Ia156903131612f3faa93a7010de2e034d528ec7d

12 years agoMerge "assertEquals is $expected, $actual, not $actual, $expected"
Brion VIBBER [Wed, 18 Apr 2012 23:06:24 +0000 (23:06 +0000)]
Merge "assertEquals is $expected, $actual, not $actual, $expected"

12 years agoassertEquals is $expected, $actual, not $actual, $expected
Reedy [Wed, 18 Apr 2012 12:50:39 +0000 (13:50 +0100)]
assertEquals is $expected, $actual, not $actual, $expected

Fix Title related tests that are the wrong way round (noticed by Daniel Kinzler
when creating more tests, and wondering why phpunit was making error messages
that didn't make any sense!)

public static function assertEquals($expected, $actual, $message = '',
    $delta = 0, $maxDepth = 10, $canonicalize = FALSE, $ignoreCase = FALSE)

Change-Id: I09aeb7cb7edb8e486ccf2f54673f91cd9704cd3b

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 18 Apr 2012 19:41:40 +0000 (19:41 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I88cba0d21b5e7ac8101fa2f4cef9a0403d11223a

12 years agoMerge "Re-adding dbdataobject stuff which got pulled from core about 2 weeks back...
Reedy [Wed, 18 Apr 2012 17:49:44 +0000 (17:49 +0000)]
Merge "Re-adding dbdataobject stuff which got pulled from core about 2 weeks back due to slush"

12 years agoCacheHelper: facilitate caching handling on a page
Jeroen De Dauw [Tue, 10 Apr 2012 12:26:11 +0000 (14:26 +0200)]
CacheHelper: facilitate caching handling on a page

CacheHelper changes: adding a CacheHelper object to facilitate caching
several things on a single page and created implementations for
SpecialPage and Action also containing scaffolding for things such as
purging the cache

Change-Id: I7b1f8ac8ac2e37f15b3924d4448e579e6dbbc80f

12 years agoMerge "duration formatter, makes time in sec easy to read"
Reedy [Wed, 18 Apr 2012 15:56:30 +0000 (15:56 +0000)]
Merge "duration formatter, makes time in sec easy to read"

12 years agoMerge "Space in $separatorTransformTable should be non-breaking in Portuguese, Espera...
Nikerabbit [Wed, 18 Apr 2012 06:44:11 +0000 (06:44 +0000)]
Merge "Space in $separatorTransformTable should be non-breaking in Portuguese, Esperanto and Udmurt."

12 years agoMerge "Put the filecache save step before the error buffer closes so those errors...
Catrope [Tue, 17 Apr 2012 23:24:22 +0000 (23:24 +0000)]
Merge "Put the filecache save step before the error buffer closes so those errors don't break the output."

12 years ago[FileRepo] Use resolveToStoragePath() in more places.
Aaron [Tue, 17 Apr 2012 17:56:35 +0000 (10:56 -0700)]
[FileRepo] Use resolveToStoragePath() in more places.

Change-Id: I97d4e723f8756f44873a4af2bc3b73ea1965f152

12 years agoMerge "Removed a useless exception catch statement in SwiftFileBackend::getFileListPa...
Reedy [Tue, 17 Apr 2012 17:37:24 +0000 (17:37 +0000)]
Merge "Removed a useless exception catch statement in SwiftFileBackend::getFileListPageInternal() and fixed visibility of SwiftFileBackend::doGetFileSha1base36()."

12 years agoMerge "Removed unused (after I9a19862f1a720c5a464bd37f79b58a505c5961f9) var $backend."
Reedy [Tue, 17 Apr 2012 17:36:54 +0000 (17:36 +0000)]
Merge "Removed unused (after I9a19862f1a720c5a464bd37f79b58a505c5961f9) var $backend."

12 years agoRemoved a useless exception catch statement in SwiftFileBackend::getFileListPageInter...
Aaron [Tue, 17 Apr 2012 17:32:43 +0000 (10:32 -0700)]
Removed a useless exception catch statement in SwiftFileBackend::getFileListPageInternal() and fixed visibility of SwiftFileBackend::doGetFileSha1base36().

Change-Id: I3efd0a4cd3fe9ee7d3871382caea70c4a79d8b12

12 years agoFixed silly backend test config bug.
Aaron [Tue, 17 Apr 2012 17:25:52 +0000 (10:25 -0700)]
Fixed silly backend test config bug.

Change-Id: I35b53dc609acb720c64f236cb58f91a73604e2f8

12 years agoMerge "Corrected capitalization in the file and class names of API modules"
Reedy [Tue, 17 Apr 2012 17:04:16 +0000 (17:04 +0000)]
Merge "Corrected capitalization in the file and class names of API modules"

12 years agoRemoved unused (after I9a19862f1a720c5a464bd37f79b58a505c5961f9) var $backend.
Aaron Schulz [Tue, 17 Apr 2012 08:07:01 +0000 (01:07 -0700)]
Removed unused (after I9a19862f1a720c5a464bd37f79b58a505c5961f9) var $backend.

Change-Id: Ifd093d426eb8a39b1ff6ca1084cdb232f7e536eb

12 years agoMerge "[FileRepo] Split out store/purge functions for thumbnails and made them skip...
Aaron [Tue, 17 Apr 2012 00:14:37 +0000 (00:14 +0000)]
Merge "[FileRepo] Split out store/purge functions for thumbnails and made them skip file journals."

12 years agoFix casing in Unicode.
Siebrand Mazeland [Mon, 16 Apr 2012 23:52:20 +0000 (01:52 +0200)]
Fix casing in Unicode.

Change-Id: I68ecacec18c63ac0f8487f97955cf401435493a9

12 years ago[FileRepo] Split out store/purge functions for thumbnails and made them skip file...
Aaron [Mon, 16 Apr 2012 23:51:55 +0000 (16:51 -0700)]
[FileRepo] Split out store/purge functions for thumbnails and made them skip file journals.

* Added quickImport()/quickPurge() functions to store and delete files as fast as possible.
* Also added a cleanDir() function to avoid having File directly use FileBackend functions.

Change-Id: I9a19862f1a720c5a464bd37f79b58a505c5961f9

12 years agoRemove "IP" from block list, and spell "block list" consistently.
Siebrand Mazeland [Mon, 16 Apr 2012 23:07:04 +0000 (01:07 +0200)]
Remove "IP" from block list, and spell "block list" consistently.

Change-Id: I0b301b6f1ca4212c563858b1c463747c843c2bef

12 years agoCorrected capitalization in the file and class names of API modules
Petr Onderka [Wed, 11 Apr 2012 15:10:22 +0000 (17:10 +0200)]
Corrected capitalization in the file and class names of API modules

Change-Id: I8f317e458ee0f8706434e43a7890cda530595e64

12 years agoPut the filecache save step before the error buffer closes so those errors don't...
Aaron [Mon, 16 Apr 2012 19:17:02 +0000 (12:17 -0700)]
Put the filecache save step before the error buffer closes so those errors don't break the output.

Change-Id: Icee6e97002ca9ac9dc76dcb6cd9a3badf7d2b8db

12 years ago(bug 35855) fix min and max parameters in list=allcategories
Petr Onderka [Mon, 16 Apr 2012 18:40:00 +0000 (20:40 +0200)]
(bug 35855) fix min and max parameters in list=allcategories

API queries for list=allcategories with acdir=descending had the
acmin and acmax parameters in reverse, that is min behaved like max
and max behaved like min. This patch fixes the issue.

Change-Id: If6346b682782856ffa5b15d08abd1b2ecc50424c

12 years agoMerge "fix the call of count( $module->getDependencies() ) in startup (bracket was...
Aaron Schulz [Mon, 16 Apr 2012 18:05:21 +0000 (18:05 +0000)]
Merge "fix the call of count( $module->getDependencies() ) in startup (bracket was wrong placed)"

12 years agoMerge "(bug 34669) Disable CSS concatenation, breaks @import"
Aaron Schulz [Mon, 16 Apr 2012 17:50:26 +0000 (17:50 +0000)]
Merge "(bug 34669) Disable CSS concatenation, breaks @import"

12 years agoMerge "Make data loading a bit better in ApiDelete."
Aaron Schulz [Mon, 16 Apr 2012 17:41:37 +0000 (17:41 +0000)]
Merge "Make data loading a bit better in ApiDelete."

12 years ago(bug 34669) Disable CSS concatenation, breaks @import
Catrope [Mon, 16 Apr 2012 17:32:05 +0000 (10:32 -0700)]
(bug 34669) Disable CSS concatenation, breaks @import

Disabled with if(false) so we can deploy this code safely without
breaking @import , should be reenabled or cleaned up once we've figured
out how to handle this properly.

Change-Id: I067108755915e2a0d342738b9f617b3f11a52705

12 years agoMerge "(bug 34852) new optional 'link' parameter to <gallery>"
Brion VIBBER [Mon, 16 Apr 2012 17:33:07 +0000 (17:33 +0000)]
Merge "(bug 34852) new optional 'link' parameter to <gallery>"

12 years agoRe-adding dbdataobject stuff which got pulled from core about 2 weeks back due to...
Jeroen De Dauw [Thu, 22 Mar 2012 01:56:32 +0000 (02:56 +0100)]
Re-adding dbdataobject stuff which got pulled from core about 2 weeks back due to slush

Patch set 4: Move files to includes/db
Patch set 5: Update autoloader, pull in DB

Change-Id: I2b961e043dd1af9c843995bac7fc77bd671caa5e

12 years agoAdd GitViewers hook for extensions to add git viewers to SpecialVersion
Simon Walker [Mon, 16 Apr 2012 16:57:58 +0000 (16:57 +0000)]
Add GitViewers hook for extensions to add git viewers to SpecialVersion

This adds a GitViewers hook to GitInfo, and slightly refactors the
$viewers variable to be called through a function so the hook can be
called. This is so extensions can add their own git repository viewer
to the Special:Version git sha field.

Change-Id: Ifc8396984de6a51be85fb63cd9754d57333bde03

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 16 Apr 2012 14:51:25 +0000 (14:51 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I368fef8a123f203fc07d7d86b44d67e1e3c3f5d0

12 years agoSpace in $separatorTransformTable should be non-breaking in
Siebrand Mazeland [Mon, 16 Apr 2012 14:25:12 +0000 (16:25 +0200)]
Space in $separatorTransformTable should be non-breaking in
Portuguese, Esperanto and Udmurt.

Change-Id: Ie2d1f3d838c96a110fb4d5ded9e6ea8485abc6cf

12 years agoMake data loading a bit better in ApiDelete.
Alexandre Emsenhuber [Mon, 16 Apr 2012 11:18:10 +0000 (13:18 +0200)]
Make data loading a bit better in ApiDelete.

* Use WikiPage::newFromID() directly instead of Title::newFromID() (for now it does not change anything but it will soon)
* Directly load the data from the master when creating a page from its name, it avoids both having out-of-date information
  when doing the existence check and a second database query from LinkCache::addLinkObj() when calling (WikiPage|Title)::exists()
* Moved the page existence check to only be executed when creating a title from its name since if we have a WikiPage from its ID it must exist.

Change-Id: Ifaff725d955ce111c46d6b7f00610191820f3ced

12 years agoMerge "Add option to rebuild message files on a different folder. It also creates...
Siebrand [Mon, 16 Apr 2012 09:30:24 +0000 (09:30 +0000)]
Merge "Add option to rebuild message files on a different folder. It also creates the message file if missing."

12 years ago(bug 34852) new optional 'link' parameter to <gallery>
Kim Eik [Tue, 10 Apr 2012 10:30:17 +0000 (12:30 +0200)]
(bug 34852) new optional 'link' parameter to <gallery>

The patch adds an optional parameter |link= to the <gallery>
tag. This will allow for images to link to other pages and
externals urls instead of being hardlinked to the image file
that is displayed in the gallery.

Here are a couple of examples.

Link as WikiLink:
<gallery>
File:20120106_001.jpg|link=Main_Page
</gallery>

Link as absolute URI:
<gallery>
File:20120106_001.jpg|my caption|alt=my alt
text|link=http://bugzilla.wikimedia.org
</gallery>

this would cause the link on the thumbnails rendered by the gallery tag to link
to a custom page/url instead of the actual media/image.

a link should be an internal wiki link or an absolute uri as shown in the examples.

Change-Id: I21b276ad5c7a8df13b3a716957d23fd53c37d29e

12 years agoMerge "Tests aren't in /maintenance anymore! ;)"
Hashar [Sun, 15 Apr 2012 20:48:49 +0000 (20:48 +0000)]
Merge "Tests aren't in /maintenance anymore! ;)"

12 years agoTests aren't in /maintenance anymore! ;)
Reedy [Sun, 15 Apr 2012 18:21:12 +0000 (19:21 +0100)]
Tests aren't in /maintenance anymore! ;)

Change-Id: I084a1d5dc27f0cfdb1f22ba8d205e8f5a5b641a8

12 years agoCorrect punctuation for 'disambiguations-text'.
Siebrand Mazeland [Sun, 15 Apr 2012 18:14:44 +0000 (20:14 +0200)]
Correct punctuation for 'disambiguations-text'.

Change-Id: Iadf0e2619a9411cbd95d65a2180fc671e734fdd1

12 years agoFix gettoken loophole from https://gerrit.wikimedia.org/r/#change,4220
Szymon Świerkosz [Sun, 15 Apr 2012 17:40:20 +0000 (18:40 +0100)]
Fix gettoken loophole from https://gerrit.wikimedia.org/r/#change,4220

Reported and patch by Szymon Świerkosz/Beau

Change-Id: I3b5a001ad60e7e637b351331794cb275a7cf021a

12 years agoMerge "(bug 26909) follow up r102947: fix the navigation with 'dir' and 'continue...
Brion VIBBER [Sun, 15 Apr 2012 00:50:00 +0000 (00:50 +0000)]
Merge "(bug 26909) follow up r102947: fix the navigation with 'dir' and 'continue' for some prop-Modules"

12 years ago(bug 35920) Fix group addition/removal messages on Special:Listgrouprights
Alexandre Emsenhuber [Sat, 14 Apr 2012 20:31:50 +0000 (22:31 +0200)]
(bug 35920) Fix group addition/removal messages on Special:Listgrouprights

Fix for SVN r113178; seems that I forgot to remove 'parseinline' on some messages when changing wfMsgExt() to $this->msg().

Change-Id: I7138de97717b0976d1ae9da31a5d46f1ce513c85

12 years agofix the call of count( $module->getDependencies() ) in startup (bracket
umherirrender [Sat, 14 Apr 2012 10:41:49 +0000 (12:41 +0200)]
fix the call of count( $module->getDependencies() ) in startup (bracket
was wrong placed)

And by the way:
* store some result of getters in local variable and use it
* Title::newMainPage always returns an object
* rename a variable
* fix intendation for mw.loader.register call in debug mode

Change-Id: I083b4b61006493602b9345a822a96d538ef89f60

12 years agoUpdate jQuery requirements in resources/startup.js per jQuery 1.7.x release
Timo Tijhof [Sat, 14 Apr 2012 01:53:25 +0000 (03:53 +0200)]
Update jQuery requirements in resources/startup.js per jQuery 1.7.x release

- Check http://jquery.com/:
 * IE 6.0+, FF 3.6+, Safari 5.0+, Opera, Chrome

- It does not include an Opera number, but they are only
  actively testing for Opera 11.x versions. Also Operate
  is quite bold in their upgrade requirement in-browser,
  so that shouldn't be much of an issue.

  I've also updated
  https://www.mediawiki.org/wiki/Compatibility#Browser

  Note that this means that we no longer support enhanced functionality in
  some browsers that are currently still above the 0.1% wmf-traffic threshold
  we keep. I've therefor split [[mw:Compatibility#Browser]] in a "Grade A"
  and "Grade B" section. One that we support for all functionality, and the
  others we support because of traffic, but not "everything" will work.
  Right now the only notable difference will be jQuery and depending modules.

  In reality Grade B will still get the same data served as Grade A, since
  startup.js only enforces IE6 right now (bug 35906)

  Auto-updating Chrome will not need a check, and Chrome < 1.0 is very minor,
  and will probably even work just fine.

Change-Id: If60de580fc892ced1a43a0bc4958988d98d087d9

12 years agoUpdated some filebackend qqq messages.
Aaron [Fri, 13 Apr 2012 23:46:35 +0000 (16:46 -0700)]
Updated some filebackend qqq messages.

Change-Id: I9a5dd0d32afae945af681b049eda6414f0689781

12 years agoMerge "MockOutputPage class in its own file"
Antoine Musso [Fri, 13 Apr 2012 19:23:15 +0000 (19:23 +0000)]
Merge "MockOutputPage class in its own file"

12 years agoFix broken merge by 0a792a1dcba26dd70d64e307b301c6
saper [Fri, 13 Apr 2012 18:55:14 +0000 (20:55 +0200)]
Fix broken merge by 0a792a1dcba26dd70d64e307b301c6

Changeset 1 of https://gerrit.wikimedia.org/r/#change,3365:
763b57f9f2af131a2d8e65f520a23c00109be0e1

got mis-merged in changeset 2:
f752cf80423615b380cf5612a3f1f68a6b9d0173

And introduced into master wth
0a792a1dcba26dd70d64e307b301c6773279cfc9

Also, marking all new functions as @since 1.19
since we want to have them there later.

Patchset 2: whitespace fixes
Patchset 3: Fix <?php
Patchset 4: rebase to current master

Change-Id: Ic7d940dfec8890de20197128505962375fac4f06

12 years ago(bug 35941) Fix PHP notice in SpecialVersion::getVersion()
Alexandre Emsenhuber [Fri, 13 Apr 2012 14:56:47 +0000 (16:56 +0200)]
(bug 35941) Fix PHP notice in SpecialVersion::getVersion()

Seems that I forgot to change one instance of $info to $svnInfo in I2f4839fb587903524fdaf041597174003ccfdfeb.

Change-Id: I7e47ca6278569290df4b32cac584c94020c13b64

12 years agoduration formatter, makes time in sec easy to read
Jeroen De Dauw [Tue, 10 Apr 2012 13:37:03 +0000 (15:37 +0200)]
duration formatter, makes time in sec easy to read

The Language::formatDuration() method introduced by this patch let us
easily render an amount of seconds for easier human reading.

 $ maintenance/eval.php
 > var_dump( $wgLang->formatDuration( 1000 );
 string(25) "16 minutes and 40 seconds"

Also ran rebuildLanguage.php on Siebrands request

Change-Id: If287fb10e897d3d2374cf6eeae3bc5be00cdfc01

12 years agoMockOutputPage class in its own file
Antoine Musso [Fri, 13 Apr 2012 10:47:19 +0000 (12:47 +0200)]
MockOutputPage class in its own file

The MockOutputPage can be needed in various tests suite beside
GlobalFunctions. Seems to make sense to get it in its own class so we
can easily use it.

Change-Id: Icbb34db81e8cc8636d95f6326dd228bc74a741d7

12 years agoRemoved subclassing of PageQueryPage where not needed.
Alexandre Emsenhuber [Fri, 13 Apr 2012 08:30:57 +0000 (10:30 +0200)]
Removed subclassing of PageQueryPage where not needed.

These three classes (BrokenRedirectsPage, DisambiguationsPage and DoubleRedirectsPage) override formatResult() which is the only method defined in PageQueryPage; they can thus directly subclass QueryPage.
It also confused me when trying to find a page extending PageQueryPage to test my changes in PageQueryPage::formatResult().

Change-Id: Ic0923935b67a09e868367db6a21ef92305b4f8ee

12 years agoFixup/finish off function parameter documentation
Reedy [Fri, 13 Apr 2012 03:10:24 +0000 (04:10 +0100)]
Fixup/finish off function parameter documentation

Remove unused variable

Change-Id: I9b19388ded628c170d10ac371882a4debd845ea8

12 years agoMerge "[FileBackend] Simplified fj_batch_id index"
Catrope [Fri, 13 Apr 2012 01:13:34 +0000 (01:13 +0000)]
Merge "[FileBackend] Simplified fj_batch_id index"

12 years agoMerge "Fix https://gerrit.wikimedia.org/r/4830 , I botched the conflict resolution...
Demon [Fri, 13 Apr 2012 00:49:41 +0000 (00:49 +0000)]
Merge "Fix https://gerrit.wikimedia.org/r/4830 , I botched the conflict resolution there"

12 years agoFix https://gerrit.wikimedia.org/r/4830 , I botched the conflict
Catrope [Fri, 13 Apr 2012 00:48:03 +0000 (17:48 -0700)]
Fix https://gerrit.wikimedia.org/r/4830 , I botched the conflict
resolution there

Change-Id: I7d563851e8b89c249105e91ceed71f747732084f

12 years agoMerge "Revert "Bit more refactoring""
Catrope [Fri, 13 Apr 2012 00:25:41 +0000 (00:25 +0000)]
Merge "Revert "Bit more refactoring""

12 years agoRevert "Bit more refactoring"
Catrope [Fri, 13 Apr 2012 00:18:43 +0000 (17:18 -0700)]
Revert "Bit more refactoring"

This reverts commit 5586e73fac6f70d7b16bc5a4d185d35f80ff53b5.

This broke mergeMessageFileList.php by no longer running the extension
setup files in the global scope.

Change-Id: I8f22d0b3e938ba617f4297802edfc2012d78cc9b

12 years ago[FileBackend] Simplified fj_batch_id index
Aaron [Wed, 11 Apr 2012 20:11:07 +0000 (13:11 -0700)]
[FileBackend] Simplified fj_batch_id index

If we want to sort the ops for a batch ID, we can just use a tiny to small filesort.
No need to make the index bigger.

Change-Id: Ibf7592930ec633a26e675e33d42aebe7763547b1

12 years agoMerge "document how the parser handles list items coming from a template, especially...
GWicke [Thu, 12 Apr 2012 21:56:41 +0000 (21:56 +0000)]
Merge "document how the parser handles list items coming from a template, especially the surprising start-of-line behavior.  This test will be used to implement matching behavior in Parsoid."

12 years agoMerge "Add missing uploads link to deleted contributions."
Brion VIBBER [Thu, 12 Apr 2012 21:44:06 +0000 (21:44 +0000)]
Merge "Add missing uploads link to deleted contributions."

12 years agoUse local context to get messages
Alexandre Emsenhuber [Thu, 12 Apr 2012 20:43:08 +0000 (22:43 +0200)]
Use local context to get messages

Change-Id: I2c3a26f87eb70b4235c8d042d1e3a8ddc11bc14b

12 years agoMerge "Use $wgUser in ResourceLoaderUserGroupsModule when possible."
Catrope [Thu, 12 Apr 2012 20:33:32 +0000 (20:33 +0000)]
Merge "Use $wgUser in ResourceLoaderUserGroupsModule when possible."

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 12 Apr 2012 20:22:14 +0000 (20:22 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I91cffe747b9e1baca36bfd1324dd3d06227849ca

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 12 Apr 2012 17:32:30 +0000 (17:32 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I2074bd01faa0857441aab61aede21d6f73637bef

12 years agodocument how the parser handles list items coming from a template,
Adam Wight [Thu, 12 Apr 2012 15:50:29 +0000 (08:50 -0700)]
document how the parser handles list items coming from a template,
especially the surprising start-of-line behavior.  This test will
be used to implement matching behavior in Parsoid.

Change-Id: Ibfa13dfd2be2d62c285449cb090e2b112fe30f9b

12 years agoAdd missing uploads link to deleted contributions.
Alex Monk [Wed, 11 Apr 2012 20:35:28 +0000 (21:35 +0100)]
Add missing uploads link to deleted contributions.

Change-Id: I5a48a3543667a8f7a3dbb5f126eac985923fa34c

12 years agomisleading comment: s/append/prepend/
Mark A. Hershberger [Thu, 12 Apr 2012 03:47:47 +0000 (23:47 -0400)]
misleading comment: s/append/prepend/

Change-Id: I0855dd8c90270c902e78de36ecab711cb2b561ac

12 years agoUse local context to get messages
Alexandre Emsenhuber [Wed, 11 Apr 2012 19:47:48 +0000 (21:47 +0200)]
Use local context to get messages

Change-Id: I8964e683a81f45c871bedd283822e4ac72e937ee

12 years agoMerge "Check for namespace existence in Title::makeTitleSafe()."
Aaron Schulz [Wed, 11 Apr 2012 19:44:24 +0000 (19:44 +0000)]
Merge "Check for namespace existence in Title::makeTitleSafe()."

12 years ago(34037) phpunit tests timeout too fast
Antoine Musso [Wed, 11 Apr 2012 19:01:34 +0000 (21:01 +0200)]
(34037) phpunit tests timeout too fast

PHPUnit has a timeout protection system which let us put tests in three
categories having different timeout (default: 1s, 10s, 60s). The timeout
only happens when using strict mode and having PHPUnit Invoker
installed.

Recently, the continuous integration server has been upgraded and the
PHPUnit Invoker was installed to let us run a serie of tests related to
dumping the database to XML. They do need some timeout system. Suddenly,
some tests started failing.

By default all tests are in the 1 second timeout group. Since we use a
sqlite backend and the server hard disk can get busy, some test can take
more than one second to execute.

This patch raise the default (small group) timeout to 2seconds and
explicitly define the value for the two other groups (medium and large)
using PHPUnit default values.

Change-Id: I2f5613b0c0215023c413dec8e84804175d8c8d6e

12 years agoFixed missing argument to pingExpensiveCache() call.
Aaron [Wed, 11 Apr 2012 19:02:20 +0000 (12:02 -0700)]
Fixed missing argument to pingExpensiveCache() call.

Change-Id: If3cf56e9cc804388cf3396e8ab15cae2f80de828

12 years agoFixed use of undefined FILES_ONLY constant.
Aaron [Wed, 11 Apr 2012 18:47:15 +0000 (11:47 -0700)]
Fixed use of undefined FILES_ONLY constant.

Change-Id: Icc924785cdb394adc723666bf9f6a67e9d6a4d0d

12 years agoIncrease QUnit async stop() timeout limit, improve documentation
Timo Tijhof [Wed, 11 Apr 2012 17:26:06 +0000 (19:26 +0200)]
Increase QUnit async stop() timeout limit, improve documentation

- Raise from 5s to 10s. Should fix the false positives that sometimes
  happens in TestSwarm if a VM is being slow (especially IE6).

Change-Id: I4bc00b34040f5659c8456ce6978627c32497656d

12 years agoMerge "default gitreview to no rebase"
Nikerabbit [Wed, 11 Apr 2012 15:03:50 +0000 (15:03 +0000)]
Merge "default gitreview to no rebase"

12 years agoMerge "Refresh INSTALL's version numbers from RELEASE-NOTES"
Hashar [Wed, 11 Apr 2012 13:17:13 +0000 (13:17 +0000)]
Merge "Refresh INSTALL's version numbers from RELEASE-NOTES"

12 years agoCheck for namespace existence in Title::makeTitleSafe().
Alexandre Emsenhuber [Wed, 11 Apr 2012 12:37:27 +0000 (14:37 +0200)]
Check for namespace existence in Title::makeTitleSafe().

Namespace existence has to be checked before calling Title::makeName() because otherwise it will fallback to a page with the same name, but in the main namespace which is not what we want here.

Change-Id: I8c087390044c54dd0502c1b8bb9321dfaec6b5f7

12 years agoRefresh INSTALL's version numbers from RELEASE-NOTES
Christian Aistleitner [Wed, 11 Apr 2012 12:18:29 +0000 (14:18 +0200)]
Refresh INSTALL's version numbers from RELEASE-NOTES

Change-Id: I914656da45862fb62f9a9e4d6d573dc3e9a93e80

12 years agodefault gitreview to no rebase
Antoine Musso [Wed, 11 Apr 2012 12:00:24 +0000 (14:00 +0200)]
default gitreview to no rebase

Automatic rebasing is often unwanted when submitting a new patchset to
gerrit. That is a default behavior of git-review which is unwanted.

New release of git-review will have a new ini setting which let us
disable rebasing by default :-)

Change-Id: I634979b8fbc0ac23a5d13893fb5eaa60a5156764

12 years agoHtml::setSubmitTextMsg double escapes
Niklas Laxström [Wed, 11 Apr 2012 11:23:08 +0000 (11:23 +0000)]
Html::setSubmitTextMsg double escapes

On Dutch the button showed "Pagina&#039;s verwijderen"

Change-Id: I082e16e9320ba4aef1e2bf5f81cfe54fdf61b6c3

12 years agoMerge "Follow-up I5b02aa914916f64492c85ce6dcc3272b6406551a (#4335), also put a link...
Brion VIBBER [Tue, 10 Apr 2012 21:10:47 +0000 (21:10 +0000)]
Merge "Follow-up I5b02aa914916f64492c85ce6dcc3272b6406551a (#4335), also put a link in the debug toolbar."

12 years agoMerge "Remove request_with_session/request_without_session"
Aaron Schulz [Tue, 10 Apr 2012 20:59:44 +0000 (20:59 +0000)]
Merge "Remove request_with_session/request_without_session"

12 years agoMerge "Employing MediaWikiTestCase's temporary file methods"
Brion VIBBER [Tue, 10 Apr 2012 20:54:36 +0000 (20:54 +0000)]
Merge "Employing MediaWikiTestCase's temporary file methods"

12 years agoFollow-up I5b02aa914916f64492c85ce6dcc3272b6406551a (#4335), also put a link in the...
Alexandre Emsenhuber [Tue, 10 Apr 2012 08:52:11 +0000 (10:52 +0200)]
Follow-up I5b02aa914916f64492c85ce6dcc3272b6406551a (#4335), also put a link in the debug toolbar.

Now that there is a link on the revision hash in Special:Version, do the same in the debug toolbar.

Change-Id: I953ac70e17e72be68251e3908e164dfa46c68bf5

12 years agoMerge "(bug 33658) support for {{GRAMMAR:}} in jqueryMsg"
Brion VIBBER [Tue, 10 Apr 2012 20:42:34 +0000 (20:42 +0000)]
Merge "(bug 33658) support for {{GRAMMAR:}} in jqueryMsg"

12 years agoMerge "makes gitweb URL points to full sha1"
Aaron Schulz [Tue, 10 Apr 2012 20:30:26 +0000 (20:30 +0000)]
Merge "makes gitweb URL points to full sha1"

12 years agoMerge "Normalise categorymembers to take ascending/descending for direction, also...
Demon [Tue, 10 Apr 2012 20:30:17 +0000 (20:30 +0000)]
Merge "Normalise categorymembers to take ascending/descending for direction, also adding newer/older to make it like other modules"

12 years agomakes gitweb URL points to full sha1
Antoine Musso [Tue, 10 Apr 2012 20:20:15 +0000 (22:20 +0200)]
makes gitweb URL points to full sha1

The URL we are crafting are using a short sha1 (7 chars long) which can
have some good chance of pointing to two different sha1. I have seen git
log to use 8 chars from time to time because of sha1 collisions, 62
occurences outu of 45315 commits as of now.

So to play it safe, this patch makes the URL points to the full sha1.

Follow https://gerrit.wikimedia.org/r/4335
5734eac351dcd72f493bfd7547a5f638f582b048 (commit)
9afc1eff1c396a4d0273d2226e316cba2fb44ab0 (merge)

Change-Id: Ic65d0ca89916fe43999b9e3f257d9f322198f9f8

12 years agobug35572 Blocks appear to succeed w/DB error
saper [Fri, 30 Mar 2012 03:06:43 +0000 (05:06 +0200)]
bug35572 Blocks appear to succeed w/DB error

Bug 35572 - Blocks appear to succeed even if query fails due to wrong DB
structure

When emulating INSERT IGNORE ignore only SQL Error Code 23505
- unique key violation

http://www.postgresql.org/docs/9.1/interactive/errcodes-appendix.html

All other error codes (missing column, syntex error, whatever)
should unconditionally abort the transaction and show internal
error to the user.

Patchset 2: Fixed whitespace.
Patchset 3: More whitespace. And ()'s.
Patchset 4: Yet more whitespace.
Patchset 5: rebase & fix conflict in release-notes

Change-Id: Ic32bff9fff46bce124273156d224fa01b8adc008