Commit graph

25676 commits

Author SHA1 Message Date
Aaron Schulz
50adb91fee Merge "add Interwiki::selectFields" 2012-05-11 22:33:58 +00:00
Aaron Schulz
4104f10fe0 Merge "Add unit test for MWNamespace::isNonincludable" 2012-05-11 22:32:54 +00:00
Aaron Schulz
270b13df54 Merge "Add user talk page in newusers log to LinkBatch" 2012-05-11 22:31:15 +00:00
Alexandre Emsenhuber
a06b79ab53 Use local context to get messages.
Also added "false, false" to Language::time() and Language::date() calls in Special:Lockdb, this is to have the date using the default format and not in the format of the user locking the database.

Change-Id: I9309022b005fcc7d31350242b8989ca7eabf69a8
2012-05-11 22:22:06 +02:00
umherirrender
38a2cd320a add Interwiki::selectFields
to avoid * inside select

Change-Id: I9d0ac631d9389744f68d744fa1d3fa3e3866a956
2012-05-11 22:16:19 +02:00
umherirrender
d6c651f608 Add user talk page in newusers log to LinkBatch
Using NewUsersLogFormatter::getPreloadTitles for that

Change-Id: Ib3bede90e33c3d240aad5950247d52d732d8876b
2012-05-11 21:27:40 +02:00
umherirrender
e9fa97f76e Add unit test for MWNamespace::isNonincludable
rename MWNamespace::isNonincludableNamespace
to MWNamespace::isNonincludable, because "Namespace" is already in the
class name

Change-Id: Ie982835c7dc84cb10c823996e5360cc1b342f704
2012-05-11 19:52:34 +02:00
Demon
f950f4b39f Merge "Added missing GPLv2 headers in some places." 2012-05-11 12:49:12 +00:00
Nikerabbit
03ecf97aec Merge "(bug 33928) make diff title page more relevant" 2012-05-11 09:05:44 +00:00
Alexandre Emsenhuber
d1f8640a3b Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: Ia45d0756cd84138da267bf1cbd1a58be7f28c6d1
2012-05-11 10:34:29 +02:00
Aaron Schulz
ae78b076cd Merge "Parameter documentation stuffs" 2012-05-10 23:17:40 +00:00
Reedy
6885d1fd90 Parameter documentation stuffs
Change-Id: I2d9e800bf21d420fb26c130d0f271f6739c730a4
2012-05-11 00:09:58 +01:00
Aaron Schulz
d0bdc038e8 Merge "Revert r97711" 2012-05-10 23:00:50 +00:00
Catrope
f3b8e30521 Merge "[SiteStatsUpdate] Reduced contention by using a new lockIsFree() DB function." 2012-05-10 22:52:23 +00:00
Aaron
ff187ea7cc [SiteStatsUpdate] Reduced contention by using a new lockIsFree() DB function.
* Note: follows up a4b3979160
* Cleanup up transaction statements a bit; transactions don't effect the lock calls
* Also made DatabaseMysql::unlock() actually return a bool

Change-Id: Iade2efa94165b6918eae0863716cc163f36a07b8
2012-05-10 15:48:58 -07:00
Catrope
78ead2330b Merge "Add support for User:0 in 'user' and 'user.groups' RL modules." 2012-05-10 22:42:03 +00:00
Catrope
4a75357363 Merge "[SiteStatsUpdate] Added support for memcached staging of stats updates." 2012-05-10 22:23:14 +00:00
Aaron
a4b3979160 [SiteStatsUpdate] Added support for memcached staging of stats updates.
Change-Id: I0bfdd6a4c9b8b09355bf008bd97456401f8b485b
2012-05-10 15:19:43 -07:00
Reedy
c87a63935a Merge "(bug 19195) Make user IDs more readily available with the API" 2012-05-10 18:47:42 +00:00
Petr Onderka
7264a75515 Fixed typo in description in categorymembers module
Change-Id: I7d82df6a4b0f65fe763e0eea23dfa05ae2e7c5f1
2012-05-10 20:36:34 +02:00
Szymon Świerkosz
bde989e74c Add support for User:0 in 'user' and 'user.groups' RL modules.
Change-Id: I290e44166306036629ada990e233f098558c2aea
2012-05-10 20:12:13 +02:00
Aaron Schulz
eec6d86af3 Merge "Use local context to get messages" 2012-05-10 18:11:02 +00:00
Aaron Schulz
afb23b2ad3 Merge "Fix typo in comments, rm debugging code" 2012-05-10 18:10:01 +00:00
Reedy
2705e07bfd Merge "Added missing GPLv2 headers in some places." 2012-05-10 18:09:23 +00:00
Max Semenik
aacbb6bea7 Fix typo in comments, rm debugging code
Change-Id: I1ae2e59048fbeaf1a1f279dd5bd38bd19b5a8498
2012-05-10 21:01:50 +04:00
Alexandre Emsenhuber
8138e2ab38 Use local context to get messages
Change-Id: I942ce637b53599b865f36012bd9a91f0fea63b1f
2012-05-10 17:58:38 +02:00
Alexandre Emsenhuber
bc9d9f1f9c Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent and removed a duplicate comment from SpecialPageFactory.php in SpecialPage.php.

Change-Id: I99dd2de7fe461f2fad4e0bd315ebc2899958a90f
2012-05-10 17:51:44 +02:00
Kaldari
57975e257f Adding new getCreator and getOldestRevision methods to WikiPage class.
Patch 2: Adding getOldest method per comments
Patch 3: whitespace fix
Patch 4: renaming getOldest to getOldestRevision
Patch 5: separating into 3 methods: getOldestRevisionId, getOldestRevision, getCreator
Patch 6: more concise, fixing whitespace
Patch 7: return user object instead of user id
Patch 8: consolidating revision methods per discussion
Patch 9: whitespace
Patch 11: better commit summary
Patch 12: Typo, sigh
Patch 13: switching to use Revision::newFromRow per comment
Patch 14: using Revision::selectFields()
Patch 15: moving outside of while loop
Change-Id: I140e17a95b89c9263978942fd642d6a236a5cc4f
2012-05-09 20:41:16 -07:00
Aaron Schulz
f1a37c1618 Merge "Factor out module name validation into a static function" 2012-05-09 23:41:44 +00:00
Catrope
4910a61046 Factor out module name validation into a static function
Also add the requirement that module names be at most 255 bytes, so
they'll fit in the DB fields that we put module names in (md_module,
mr_resource, mrl_resource)

Change-Id: I7193c9beb7aff4eabfe20db461e6f9032ae994b1
2012-05-09 14:41:27 -07:00
Aaron
b9ac85cbf3 [SiteStatsUpdate] Changing raw DB update calls to use SiteStatsUpdate.
* Made SiteStatsUpdate fields protected
* Added factory function for unretarded object construction
* Changed FileRepo code to use deferred stats updates like everything else

Change-Id: I93039104b14f0362509e37b6852604ffb0898dc7
2012-05-09 14:17:56 -07:00
Aaron Schulz
2004c44a14 Merge "Use local context to get messages" 2012-05-09 18:44:11 +00:00
Brion VIBBER
92f645b2ae Merge "[FileRepo] Purging/transaction fixes." 2012-05-09 18:37:23 +00:00
Alexandre Emsenhuber
28309ef5b4 Use local context to get messages
Change-Id: Ieb3564e5532e421b4b803ed6c327d6a75ed0103c
2012-05-09 20:18:30 +02:00
Alexandre Emsenhuber
2040d1337e Added missing GPLv2 headers in some places.
Also made file/class documentation more consistent.

Change-Id: Ib46e50da4ec649a6a06cbeed00752effb79ed06e
2012-05-09 20:11:36 +02:00
Timo Tijhof
5d0dae240b Revert r97711
WONTFIX:
 * (bug 30245) Use the correct way to construct a log page title.

 This was previously reverted for 1.19 and now reverting again for
 1.20, only this time proposing it not to be temporary.

 Right now this is already live on 2 wikis and as soon as it goes
 live on a non-English wiki (since English namespace name for Log
 matches the canonical name "Log", and as such causes no breakage yet
 for bots using the IRC feed), as soon as it goes live on a
 non-English wiki it will all log actions that bots are monitoring
 using the irc feed.

 (because no matter which log action is monitored, it all goes
 back to detecting the page title of Special:Log)

 If properly announced ahead of time it could be done, but we don't
 have that time anymore. Perhaps re-try in 1.21 or 1.22, but as far
 as I'm concerned, this bug can be kept WONTFIX as it only affects
 the IRC feed. And it's not worth the loss that will undoubtedly
 result from breaking this.
 Theoretically a certain amount of time for the announcement could be
 required, and if the change enables something or fixes a security
 problem, it could be justified, but for this it is just not worth
 it.

 The human-readable output from the API and on Special:Log are fully
 localized and even better so with the rewrite that Niklas did last
 year. The IRC feed however, has little to no gain from this and only
 causes breakages for the the large amount of bot usage from it, of
 which many are no longer maintained and as such will not be fixed,
 no matter how much time it is given. Granted those will probably
 break no matter what at some point, but hopefully we will have
 push notification *with* structured data[2] by that time to
 encourage rewrites of those bots.

Change-Id: I229e345c74b10f4d96b8d2d305b4a7623825b3f6
Links:
 * https://www.mediawiki.org/wiki/Special:Code/MediaWiki/97711
 * https://www.mediawiki.org/wiki/Requests_for_comment/Structured_data_push_notification_support_for_recent_changes
2012-05-09 16:45:39 +02:00
Krinkle
0c9a4522cc Merge "HTTP: Fix ded6170bd2, which broke all HTTP calls." 2012-05-09 06:39:09 +00:00
Aaron
e4f0c1f57b HTTP: Fix ded6170bd2, which broke all HTTP calls.
* respHeaders contains arrays for each header (should've been
  respHeaders['content-length'][0] instead of respHeaders['content-length'])
  using getResponseHeader() instead.
* This also fixes InstantCommons, which was broken by this (bug 36653).
* Also cleaned up a bit of w/s in foreign repo code while in the area.

Change-Id: I429b0a36618cc2b873077516e9c1023dc5b7d693
2012-05-09 08:35:14 +02:00
Timo Tijhof
2100e3e591 Merge "(bug 36669) Installer CSS outdated" 2012-05-09 06:09:42 +00:00
Aaron
fa1a8d5119 [FileRepo] Purging/transaction fixes.
* Purge old version thumbnails on move
* Pushed purge operations outside of the DB transaction for move/delete

Change-Id: I260940149599eea814226d3c5b7092f4d6544a72
2012-05-08 17:29:39 -07:00
Timo Tijhof
6540260001 (bug 36669) Installer CSS outdated
Change-Id: I7ac606f2e8538eb5fd10a3944cf9d8b42bbc5ed5
2012-05-09 02:20:03 +02:00
Aaron Schulz
7f04814796 Merge changes Ic19071c7,Icc8dc4ae
* changes:
  Message documentation for Icc8dc4ae (circular references in strip tags)
  (bug 35315) Detect circular references in strip tags
2012-05-08 22:54:59 +00:00
Platonides
2af392378d Typo in comment
Change-Id: Ic5e1451f86d7bcda374fd12b5a9b85fe199a7c1a
2012-05-08 23:27:21 +02:00
Brion VIBBER
d0d2c9bb49 Merge "Show descriptive error message on invalid title instead of showing an empty line" 2012-05-08 20:47:59 +00:00
Brion VIBBER
78a58988d4 Merge "Optimized SqlBagOStuff::getBatch() a bit." 2012-05-08 20:30:55 +00:00
Brion VIBBER
bf76d27595 Merge "(bug 35993) gettoken should go die in a fire (part 1)" 2012-05-08 20:26:28 +00:00
Brion VIBBER
364be04f3f Merge "[FileRepo] Locking and transaction fixes." 2012-05-08 20:21:44 +00:00
Brion VIBBER
7201be76e7 Merge "Add new-inline-tags to tidy.conf" 2012-05-08 20:15:53 +00:00
Alexandre Emsenhuber
c7958d6bfd Show descriptive error message on invalid title instead of showing an empty line
Change-Id: Ided20c465fee37087239a0caef01c7427c5ceeef
2012-05-08 21:34:40 +02:00
Brion VIBBER
4614e395e4 Merge "(bug 36568) Fixed "Illegal string offset 'LIMIT'" warnings in updater" 2012-05-08 18:56:41 +00:00