lhc/web/wiklou.git
11 years agoAllow preferences that need not be rendered in Special:Preferences
Santhosh Thottingal [Fri, 7 Dec 2012 07:22:10 +0000 (12:52 +0530)]
Allow preferences that need not be rendered in Special:Preferences

Extensions can use their own interface for user preferences, with the
help of the action=options API.

For example, Universal Language Selector has a different UI to
allow anonymous and logged in users to set language related preferences.

Validation for the preference values is up to the extensions.

Change-Id: I18a5ffb5cc202c59ba76b86cfb63e49010cc1881

11 years agoMerge "Revert "Also delete the page information cache when invalidating cache of...
jenkins-bot [Mon, 7 Jan 2013 12:11:33 +0000 (12:11 +0000)]
Merge "Revert "Also delete the page information cache when invalidating cache of a non-existing page""

11 years agoRevert "Also delete the page information cache when invalidating cache of a non-exist...
Siebrand [Mon, 7 Jan 2013 12:06:51 +0000 (12:06 +0000)]
Revert "Also delete the page information cache when invalidating cache of a non-existing page"

Breaks LiquidThreads per bug 43693 and worsens bug 37209.

This reverts commit b3ff701cba6578ff0994ef3b42efcb1ba4eac9cd

11 years agoRemove docs for hook LoggableUserIPData
Siebrand Mazeland [Fri, 4 Jan 2013 16:04:17 +0000 (17:04 +0100)]
Remove docs for hook LoggableUserIPData

Hook does not exist (anymore). Some background in bug 32925.

Change-Id: I830abd60f559cdd276458447f8f4c772b2d136b1

11 years agoMerge "Remove orphan call to wfProfileOut()"
jenkins-bot [Mon, 7 Jan 2013 06:31:10 +0000 (06:31 +0000)]
Merge "Remove orphan call to wfProfileOut()"

11 years agoAdded $wgMaxBacklinksInvalidate to avoid massive html cache invalidation.
Aaron Schulz [Thu, 3 Jan 2013 00:56:00 +0000 (16:56 -0800)]
Added $wgMaxBacklinksInvalidate to avoid massive html cache invalidation.

Change-Id: I4fadded0e351883a907d307d64af31cdc6164240

11 years agoIntroduce $wgEnableCanonicalServerLink
Tim Starling [Mon, 31 Dec 2012 01:11:43 +0000 (12:11 +1100)]
Introduce $wgEnableCanonicalServerLink

(bug 43466) If enabled, send a rel=canonical link on every page
indicating the correct server to use. I tested all three callers:
Article, ImagePage and the variant feature in getHeadLinksArray().

Change-Id: I59b7c1d5589825ea390967036190218d5ce2db88

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 6 Jan 2013 19:54:52 +0000 (19:54 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I142cbcecec86d15539f29709c776a4dbdbf35367

11 years agoRemove orphan call to wfProfileOut()
Platonides [Sun, 6 Jan 2013 16:30:34 +0000 (17:30 +0100)]
Remove orphan call to wfProfileOut()

Also added spaces on line 247 per coding conventions.

Change-Id: Ib63167d4371ac71ce7580fafefdb0eabc2e0b590

11 years ago(bug 41368) Added category information to InfoAction.
Tyler Anthony Romeo [Fri, 2 Nov 2012 20:45:49 +0000 (16:45 -0400)]
(bug 41368) Added category information to InfoAction.

Added a Category information section to InfoAction that
only shows for NS_CATEGORY pages. It lists the number
of pages, subcategories, and files in the category.

Change-Id: Ic8965ffc7e4f9abb1f46d773839bdf5c2f06b72e

11 years agoMerge "Normalise inline comment markers to "//" in WikiPage.php"
jenkins-bot [Sat, 5 Jan 2013 22:07:32 +0000 (22:07 +0000)]
Merge "Normalise inline comment markers to "//" in WikiPage.php"

11 years agoMerge "Some fixes for Ia2782d64 (2f60cd2)"
jenkins-bot [Sat, 5 Jan 2013 22:04:17 +0000 (22:04 +0000)]
Merge "Some fixes for Ia2782d64 (2f60cd2)"

11 years agoMerge "Show changed bits on file version (oldimage) revdel logs."
IAlex [Sat, 5 Jan 2013 19:45:46 +0000 (19:45 +0000)]
Merge "Show changed bits on file version (oldimage) revdel logs."

11 years agoSome fixes for Ia2782d64 (2f60cd2)
Alexandre Emsenhuber [Sat, 5 Jan 2013 19:31:35 +0000 (20:31 +0100)]
Some fixes for Ia2782d64 (2f60cd2)

- Add doTable() check at the top of renameIndex()
- Return true instead of false when aborting an update due to unfulfilled
  condition; false is only to be used for updates that will be written to
  a schema update file to be run later
  Also removed the return false from addIndex() for consistency
- Break long line

Change-Id: I2efb6e3af4703ed8afeb315e8cda774d9a6c4a32

11 years agoNew methods to drop or rename extension index in DatabaseUpdater
Dereckson [Tue, 18 Dec 2012 01:03:44 +0000 (02:03 +0100)]
New methods to drop or rename extension index in DatabaseUpdater

- DatabaseUpdater::dropExtensionIndex( $tableName, $indexName, $sqlPath )
- DatabaseUpdater::renameExtensionIndex( $tableName, $oldIndexName, $newIndexName, $sqlPath, $skipBothIndexExistWarning = false )

[ Case use ]

This feature is required to help extensions schema change to ensure
compatibility with SQLite.

First extensions to use it will be Echo and Flagged Revisions.

Change-Id: Ia2782d644593ab6b64b67720ed61b3994db10346

11 years agoMerge "Use nocookiesfornew on account creation if no cookies"
IAlex [Sat, 5 Jan 2013 18:44:08 +0000 (18:44 +0000)]
Merge "Use nocookiesfornew on account creation if no cookies"

11 years agoMerge "Fix Sqlite upgrade test when profiling to database is enabled"
jenkins-bot [Fri, 4 Jan 2013 23:23:20 +0000 (23:23 +0000)]
Merge "Fix Sqlite upgrade test when profiling to database is enabled"

11 years ago[JobQueue] Increment stats for jobs ignored as duplicates.
Aaron Schulz [Fri, 21 Dec 2012 00:38:36 +0000 (16:38 -0800)]
[JobQueue] Increment stats for jobs ignored as duplicates.

Change-Id: If4130f4eb79dc2d55b50a7adebfca43620a36d2c

11 years agoMerge "Use Database::addQuotes instead of hardcoded quotes"
IAlex [Fri, 4 Jan 2013 21:58:39 +0000 (21:58 +0000)]
Merge "Use Database::addQuotes instead of hardcoded quotes"

11 years agoMerge "Partial normalisation of hooks.txt"
IAlex [Fri, 4 Jan 2013 21:52:14 +0000 (21:52 +0000)]
Merge "Partial normalisation of hooks.txt"

11 years agoMerge "recentchanges.rc_ip is used for retroactive autoblocks"
IAlex [Fri, 4 Jan 2013 21:49:50 +0000 (21:49 +0000)]
Merge "recentchanges.rc_ip is used for retroactive autoblocks"

11 years agoMerge "Made the profilers that output text not break js."
jenkins-bot [Fri, 4 Jan 2013 21:36:26 +0000 (21:36 +0000)]
Merge "Made the profilers that output text not break js."

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Fri, 4 Jan 2013 21:33:31 +0000 (21:33 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMade the profilers that output text not break js.
Aaron Schulz [Tue, 11 Dec 2012 21:18:57 +0000 (13:18 -0800)]
Made the profilers that output text not break js.

Change-Id: I12377e7ac08203113e8d6650f57091a63ad1af27

11 years agoMerge "Also delete the page information cache when invalidating cache of a non-existi...
jenkins-bot [Fri, 4 Jan 2013 21:18:58 +0000 (21:18 +0000)]
Merge "Also delete the page information cache when invalidating cache of a non-existing page"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 4 Jan 2013 21:05:19 +0000 (21:05 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Iaeeae73d2e7c3c44fa371c0691e5dc9ade2e52a2

11 years agoPartial normalisation of hooks.txt
Siebrand Mazeland [Fri, 4 Jan 2013 20:33:37 +0000 (21:33 +0100)]
Partial normalisation of hooks.txt

Follow-up to If43cafb5. Almost complete. Needs another scan.
Added TODO where work is needed. I'll create documentation bugs for these
after the last scan.

Change-Id: I16a7bc03be71d1c907393c2a0748bf2150828bed

11 years agorecentchanges.rc_ip is used for retroactive autoblocks
umherirrender [Fri, 4 Jan 2013 19:58:00 +0000 (20:58 +0100)]
recentchanges.rc_ip is used for retroactive autoblocks

Document this at $wgPutIPinRC and check the global explicit

Change-Id: I5a796edc855ae954ebd0fb11fe54b486e5eff7ed

11 years agoUse nocookiesfornew on account creation if no cookies
Brian Wolff [Fri, 4 Jan 2013 19:35:12 +0000 (15:35 -0400)]
Use nocookiesfornew on account creation if no cookies

follow-up I402c6bebcf.

Previously we used nocookiesfornew msg if the user tried to
make an account, and their cookies were missing. I402c6
changed this to session_failure, which was previously
used only for the cases where the token was tampered
with. I think the previous message was better as
it actually mentioned to the user that them not
having cookies could be the cause.

Also its removal may have been accidental as its
not mentioned in the commit msg of that change.
As well that change removed all uses of that
msg from core, but yet didn't delete it
from MessagesEn.php.

Change-Id: I421e294e4a3ddaa0eea90f2abf215af82ee6a00a

11 years agoUse Database::addQuotes instead of hardcoded quotes
umherirrender [Fri, 4 Jan 2013 19:07:37 +0000 (20:07 +0100)]
Use Database::addQuotes instead of hardcoded quotes

Change-Id: I29461e5332f3fc6523cbd899e14394aa88865d93

11 years agoMerge "Remove "read" from list of allowed actions on special pages"
jenkins-bot [Fri, 4 Jan 2013 18:18:01 +0000 (18:18 +0000)]
Merge "Remove "read" from list of allowed actions on special pages"

11 years agoMerge "Block::parseTarget() accepts and can return null"
jenkins-bot [Fri, 4 Jan 2013 18:16:12 +0000 (18:16 +0000)]
Merge "Block::parseTarget() accepts and can return null"

11 years agoUse consistent hashing for SqlBagOStuff servers
Tim Starling [Fri, 4 Jan 2013 09:23:26 +0000 (20:23 +1100)]
Use consistent hashing for SqlBagOStuff servers

Also factor out consistent hash code from Redis and the new application
into a class called ArrayUtils. The name "ArrayUtils" is from
I0f4e7d7c, I expect that change will be rebased on top of this one at
some point.

Change-Id: I9375087f4d7a6e8e629d97bfb6b117d9cb7d1bcf

11 years agoMerge "Multiple servers in one SqlBagOStuff"
jenkins-bot [Fri, 4 Jan 2013 18:06:43 +0000 (18:06 +0000)]
Merge "Multiple servers in one SqlBagOStuff"

11 years agoExplicitely add two undocumented hooks
Siebrand Mazeland [Fri, 4 Jan 2013 16:00:48 +0000 (17:00 +0100)]
Explicitely add two undocumented hooks

Found using php maintenance/findHooks.php.

Change-Id: I6977cd5c57566025a63be1c5042d5d64eed44676

11 years agoPartial normalisation of hooks.txt
Siebrand Mazeland [Fri, 4 Jan 2013 15:56:58 +0000 (16:56 +0100)]
Partial normalisation of hooks.txt

File formatting is very inconsistent. I updated approximately the first
part of the file.

Change-Id: If43cafb59828a1b846dd6dc751efc9ebcd7d5b72

11 years agoMerge "(bug 43595) Add a cache version variable to SiteArray"
jenkins-bot [Fri, 4 Jan 2013 13:49:53 +0000 (13:49 +0000)]
Merge "(bug 43595) Add a cache version variable to SiteArray"

11 years ago(bug 38633) Don't block non-existent users via the API
Alex Monk [Sat, 22 Dec 2012 19:33:05 +0000 (19:33 +0000)]
(bug 38633) Don't block non-existent users via the API

Change-Id: I49232e177b23e11d04f64ac0d939073fa9418d64

11 years agoReuse the WikiPage object to save a db query
Brian Wolff [Fri, 4 Jan 2013 09:11:13 +0000 (05:11 -0400)]
Reuse the WikiPage object to save a db query

Early in the request we call Action::getActionName to get the action
name for HTMLFileCache to see if the current action is cached.
This causes data to be loaded from the WikiPage object
stored in the main request context. However, later when
we're initializing the Article object, we overwrite that
WikiPage object with the one used by the Article object.
Later on the WikiPage object has to be re-loaded, and
hence the exact same db request is run twice in one request,
which seems wasteful.

Instead, initialize the Article object using the WikiPage
object from the context, in order to save the already
loaded data.

Change-Id: I292f0d70feb505fae5fa955fd735d85ad3b22fea

11 years agoMerge "(zhtable) Add zh2Hans: '这么' => '这么' for better segmentation"
jenkins-bot [Fri, 4 Jan 2013 12:49:15 +0000 (12:49 +0000)]
Merge "(zhtable) Add zh2Hans: '这么' => '这么' for better segmentation"

11 years agoMove logentry-* messages from newusers and rights log near the other ones
Alexandre Emsenhuber [Fri, 21 Dec 2012 07:39:28 +0000 (08:39 +0100)]
Move logentry-* messages from newusers and rights log near the other ones

'rightslogentry' and 'rightslogentry-autopromote' are now marked as ignored since
they are only used for IRC notifications.

Also moved new users log description messages near the ones for user rights log.

Change-Id: I63f90d824ff454c0e4177f9f80542c36175c3ffe

11 years ago(zhtable) Add zh2Hans: '这么' => '这么' for better segmentation
Liangent [Sat, 24 Nov 2012 17:50:33 +0000 (01:50 +0800)]
(zhtable) Add zh2Hans: '这么' => '这么' for better segmentation

Change-Id: I5cec6e1f1f966706b591de7b8d66b8f011cbace2

11 years agoFollow-up Idf308e82 (e88b0fb): use wfMessage() and numParams()
Alexandre Emsenhuber [Sun, 30 Dec 2012 12:14:04 +0000 (13:14 +0100)]
Follow-up Idf308e82 (e88b0fb): use wfMessage() and numParams()

So that it matches Language::formatDuration().

Change-Id: I7144640c93e95290600997d370a33d946897ef70

11 years ago(bug 33210) Don't convert blue categorylinks to another variant.
Liangent [Mon, 21 May 2012 15:33:32 +0000 (23:33 +0800)]
(bug 33210) Don't convert blue categorylinks to another variant.

By the way the check $oldkey != $vardbk is unnecessary because
there's already $variant != $category check.

Change-Id: I963be065723059073c9cb83c6ef636af8d023faf

11 years agoMerge "Parser test to test language conversion around HTML tags."
jenkins-bot [Fri, 4 Jan 2013 11:48:26 +0000 (11:48 +0000)]
Merge "Parser test to test language conversion around HTML tags."

11 years agoMerge "Use proper function recursiveConvertTopLevel() in recursive conversion"
jenkins-bot [Fri, 4 Jan 2013 11:43:12 +0000 (11:43 +0000)]
Merge "Use proper function recursiveConvertTopLevel() in recursive conversion"

11 years agozhtable maintenance
Liangent [Mon, 17 Dec 2012 15:05:23 +0000 (23:05 +0800)]
zhtable maintenance

* The old broken zhtable/Makefile is changed into a wrapper of Makefile.py
* includes/zhtable is moved to maintenance/language/zhtable

Change-Id: I55e431974dd9dcbcb47eb9c3aa6fbf31c5a23125

11 years agoUse getPageViewLanguage() instead of getPageLanguage() in firstHeading.
Liangent [Thu, 6 Dec 2012 14:34:03 +0000 (22:34 +0800)]
Use getPageViewLanguage() instead of getPageLanguage() in firstHeading.

This fixes I55dd392d and I20bd5b6a.

Change-Id: I0c0e3f869d00605090467a83e8f5065870dc8005

11 years ago(bug 37176) Localize autosummary of page protecting
Liangent [Fri, 2 Nov 2012 12:37:20 +0000 (20:37 +0800)]
(bug 37176) Localize autosummary of page protecting

Including parentheses, brackets, edit=sysop text, etc. A new message
'protect-summary-desc' has been added.

Change-Id: I888c616ea896bb2585d79ef8ecb6f34fab196191

11 years agoMerge "Add months and years to Timestamp::getHumanTimestamp()"
jenkins-bot [Fri, 4 Jan 2013 08:28:41 +0000 (08:28 +0000)]
Merge "Add months and years to Timestamp::getHumanTimestamp()"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 3 Jan 2013 22:58:16 +0000 (22:58 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I0ac6eb2b725856636cf1018d4c47f2c0be91fdd5

11 years agoAdd months and years to Timestamp::getHumanTimestamp()
Juliusz Gonera [Thu, 3 Jan 2013 20:57:59 +0000 (12:57 -0800)]
Add months and years to Timestamp::getHumanTimestamp()

Now if the difference between $now and $then is >= 30 days, "X months
ago" or "X years ago" is returned.

Month is defined as 30 days, but it shouldn't cause problems  in this
case. The "X time ago" messages are approximate anyway.

Change-Id: I228a11e23783484b64c29db94c3607a415fa81a8

11 years ago[JobQueue] Made showJobs.php work for non-DB queues.
Aaron Schulz [Fri, 14 Dec 2012 18:47:06 +0000 (10:47 -0800)]
[JobQueue] Made showJobs.php work for non-DB queues.

Change-Id: Idada1e3ca8278898de6e53fdcc5dee4786d5bae8

11 years agoMerge "Set $mLoadedItems to true in User::loadFromId()"
jenkins-bot [Thu, 3 Jan 2013 20:02:25 +0000 (20:02 +0000)]
Merge "Set $mLoadedItems to true in User::loadFromId()"

11 years ago(bug 43595) Add a cache version variable to SiteArray
Marius Hoch [Wed, 2 Jan 2013 22:18:50 +0000 (23:18 +0100)]
(bug 43595) Add a cache version variable to SiteArray

Added a $cacheVersion variable to SiteArray to prevent problems
on SiteArray format changes due to a Memcached value of the object
being stored in the outdated format. This already caused disruption
on wikidata.org twice.

(This new version isn't tested as I don't have a memcached environment
with me atm.)

Change-Id: Ib290b465276b6be8b8753c27ea3f57d4597ec3c1

11 years agoMerge "Update CREDITS"
IAlex [Thu, 3 Jan 2013 19:47:33 +0000 (19:47 +0000)]
Merge "Update CREDITS"

11 years agoMerge "(bug 43116) Don't run database updates for shared tables unless --doshared...
jenkins-bot [Thu, 3 Jan 2013 18:39:39 +0000 (18:39 +0000)]
Merge "(bug 43116) Don't run database updates for shared tables unless --doshared is provided"

11 years agoBlock::parseTarget() accepts and can return null
Alexandre Emsenhuber [Thu, 3 Jan 2013 10:53:41 +0000 (11:53 +0100)]
Block::parseTarget() accepts and can return null

Documentation currently omits this.

Change-Id: I183121e5134c1bbd53a613780d171b52737f071d

11 years agoAdd test for substitution of params with multiple digits
Niklas Laxström [Wed, 2 Jan 2013 17:06:23 +0000 (17:06 +0000)]
Add test for substitution of params with multiple digits

Change-Id: I293bcdeecd5ee83cf05887aa06dc86b5589398eb

11 years agoShow changed bits on file version (oldimage) revdel logs.
Alex Monk [Thu, 3 Jan 2013 04:00:06 +0000 (04:00 +0000)]
Show changed bits on file version (oldimage) revdel logs.

Don't know if there is a bug for this or not, but I noticed that we don't get "content hidden/unhidden" type notes for revdel logs when they're for file revisions (instead of page revisions)

Change-Id: I0de389e601aaad7fd8abb989b4a0004082206894

11 years agoMerge "Add new hook LinksUpdateAfterInsert to LinksUpdate"
Kaldari [Thu, 3 Jan 2013 01:56:51 +0000 (01:56 +0000)]
Merge "Add new hook LinksUpdateAfterInsert to LinksUpdate"

11 years agoMerge "Use Html::rawElement() instead of hardcoded string in Special:Contributions"
jenkins-bot [Thu, 3 Jan 2013 01:37:38 +0000 (01:37 +0000)]
Merge "Use Html::rawElement() instead of hardcoded string in Special:Contributions"

11 years agoMerge "(bug 42915) make MovePage aware of whether redirects are supported."
jenkins-bot [Thu, 3 Jan 2013 01:35:54 +0000 (01:35 +0000)]
Merge "(bug 42915) make MovePage aware of whether redirects are supported."

11 years agoMerge "Follow-up I9c7aa3b2 (b28c7a8): fix one more validation error"
jenkins-bot [Thu, 3 Jan 2013 01:27:06 +0000 (01:27 +0000)]
Merge "Follow-up I9c7aa3b2 (b28c7a8): fix one more validation error"

11 years agoMerge "[FileBackend] Improved some header related docs."
IAlex [Wed, 2 Jan 2013 22:02:42 +0000 (22:02 +0000)]
Merge "[FileBackend] Improved some header related docs."

11 years agoMerge "[JobQueue] Clarified documentation a bit."
IAlex [Wed, 2 Jan 2013 22:00:15 +0000 (22:00 +0000)]
Merge "[JobQueue] Clarified documentation a bit."

11 years agoMerge "Pass $user from WikiPage::getContent to Revision::getContent"
IAlex [Wed, 2 Jan 2013 21:45:19 +0000 (21:45 +0000)]
Merge "Pass $user from WikiPage::getContent to Revision::getContent"

11 years agoMerge "Cleaned up and optimized wfBaseConvert();"
jenkins-bot [Wed, 2 Jan 2013 21:38:58 +0000 (21:38 +0000)]
Merge "Cleaned up and optimized wfBaseConvert();"

11 years agoAdd new hook LinksUpdateAfterInsert to LinksUpdate
bsitu [Mon, 31 Dec 2012 22:30:32 +0000 (14:30 -0800)]
Add new hook LinksUpdateAfterInsert to LinksUpdate

This will allow extensions to do some work based on the links inserted

Change-Id: Ia522de65ff17e28c6a8cd9997cf6225100fefc9e

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 2 Jan 2013 20:39:32 +0000 (20:39 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I74352251601ed9c9fbc16dbf7b51ae168631722f

11 years ago[JobQueue] Clarified documentation a bit.
Aaron Schulz [Wed, 2 Jan 2013 20:12:59 +0000 (12:12 -0800)]
[JobQueue] Clarified documentation a bit.

Change-Id: I065efd6b41a42d2d39b034c3488d2f00c27d7ac5

11 years agoPass $user from WikiPage::getContent to Revision::getContent
umherirrender [Wed, 2 Jan 2013 19:22:58 +0000 (20:22 +0100)]
Pass $user from WikiPage::getContent to Revision::getContent

Change-Id: If909ad6049869e2bf38789bd429f08dc3a264cae

11 years agoAdd release note for I1a3c7ac6
Brad Jorsch [Wed, 2 Jan 2013 18:36:43 +0000 (13:36 -0500)]
Add release note for I1a3c7ac6

Change-Id: I9aee1a7e65ab0e235cc7c79fbecf5a0b458b0275

11 years agoMerge "(bug 43315) Cursor of enhancedchangelist wrong for non-toggle lines"
jenkins-bot [Wed, 2 Jan 2013 17:21:19 +0000 (17:21 +0000)]
Merge "(bug 43315) Cursor of enhancedchangelist wrong for non-toggle lines"

11 years agoFix Sqlite upgrade test when profiling to database is enabled
Alexandre Emsenhuber [Wed, 2 Jan 2013 13:52:02 +0000 (14:52 +0100)]
Fix Sqlite upgrade test when profiling to database is enabled

The 'profiling' table is missing from expected tables when
$wgProfileToDatabase is set to true, since patch-profiling.sql
is applied while updating in this case.

Change-Id: Iedbe72dca1deda728304fb95fe19ef3b4bdad8de

11 years agoDon't use isset() to check whether an existing variable is null
Alexandre Emsenhuber [Tue, 1 Jan 2013 21:13:30 +0000 (22:13 +0100)]
Don't use isset() to check whether an existing variable is null

Change-Id: I7b4207e91b6fa33ba31b1308f5e71f923def687e

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 1 Jan 2013 20:04:18 +0000 (20:04 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I0a954d32095fc9562dd97301a7985dd64d262e78

11 years agoSet $mLoadedItems to true in User::loadFromId()
Alexandre Emsenhuber [Tue, 1 Jan 2013 17:44:10 +0000 (18:44 +0100)]
Set $mLoadedItems to true in User::loadFromId()

CentralAuth calls User::loadFromId() directly after calling setId().
This avoid having to load the object two times in this case.

Change-Id: Iade37631a9346dff45e18acfa078af37c1fbbfab

11 years agoFixing find hooks script call error in docs/hooks.txt
Dereckson [Tue, 1 Jan 2013 16:44:02 +0000 (17:44 +0100)]
Fixing find hooks script call error in docs/hooks.txt

- maintenance/findhooks.php -> maintenance/findHooks.php
- ./maintenance/... -> php maintenance/... (*)

* Our maintenance files aren't released as executable, so this kind of
instruction could be confusing for UNIX system administration novices.

Change-Id: I5e1e76c46b3a8a4c7168c0b5715ede648044bd44

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 31 Dec 2012 20:05:45 +0000 (20:05 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I40c4740df64cf5454f8680f792d9847fa179c2ad

11 years agoMerge "use video/webm instead of audio/webm for webm"
jenkins-bot [Mon, 31 Dec 2012 18:16:45 +0000 (18:16 +0000)]
Merge "use video/webm instead of audio/webm for webm"

11 years agoMerge "(bug 40340) Fix cache issues with changing user groups"
jenkins-bot [Mon, 31 Dec 2012 17:46:30 +0000 (17:46 +0000)]
Merge "(bug 40340) Fix cache issues with changing user groups"

11 years agoMerge "(bug 34876) improve $.makeCollapsible performance on the initial collapsing"
jenkins-bot [Mon, 31 Dec 2012 16:14:59 +0000 (16:14 +0000)]
Merge "(bug 34876) improve $.makeCollapsible performance on the initial collapsing"

11 years ago* Oracle Schema update to latest
freakolowsky [Mon, 31 Dec 2012 14:12:11 +0000 (15:12 +0100)]
* Oracle Schema update to latest
* fixed makeSelectOptions (bug 43533)

Change-Id: Ib146a5073de18f2b20a22f34bd60222b230c9514

11 years agoWrong namespace in BackupDumperPageTest::testFullTextPlain
umherirrender [Mon, 31 Dec 2012 12:23:20 +0000 (13:23 +0100)]
Wrong namespace in BackupDumperPageTest::testFullTextPlain

The problem here is, that title objects are created before wgContLang is
changed, so the title can contains wrong namespace names.

1) BackupDumperPageTest::testFullTextPlain
Text of node title
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Diskussion:BackupDumperTestP1'
+'Talk:BackupDumperTestP1'

Change-Id: I975c0f6ae7e6f51b038fe41edda2f54cd8c97eb6

11 years agoAdd some missing parent::tearDown()
umherirrender [Mon, 31 Dec 2012 12:54:06 +0000 (13:54 +0100)]
Add some missing parent::tearDown()

Change-Id: Ibcdf5d440043cef25b4aa9fb08b61ec4a2c558d1

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 30 Dec 2012 19:03:03 +0000 (19:03 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ic569ea4b8d4d716bd5310134de8305f5e52048b5

11 years agoMerge "Add LanguageZh_hans::formatDuration() for Chinese."
jenkins-bot [Sun, 30 Dec 2012 09:34:04 +0000 (09:34 +0000)]
Merge "Add LanguageZh_hans::formatDuration() for Chinese."

11 years agowfMerge() now works if $wgDiff3 contains spaces
btongminh [Sat, 29 Dec 2012 20:39:54 +0000 (21:39 +0100)]
wfMerge() now works if $wgDiff3 contains spaces

Change-Id: Ia18012ee87fe45e292cf08542f5b0680d0b85371

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Sat, 29 Dec 2012 19:56:11 +0000 (19:56 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoMerge "Correct isset() and associated checks in Revision::__construct()"
jenkins-bot [Sat, 29 Dec 2012 19:34:18 +0000 (19:34 +0000)]
Merge "Correct isset() and associated checks in Revision::__construct()"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sat, 29 Dec 2012 19:24:47 +0000 (19:24 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ib9a9723b78d650f64fe030afbfeadde050259829

11 years agoMerge "Do correct average year length arithmetic."
IAlex [Sat, 29 Dec 2012 19:18:05 +0000 (19:18 +0000)]
Merge "Do correct average year length arithmetic."

11 years agoUse Html::rawElement() instead of hardcoded string in Special:Contributions
Alexandre Emsenhuber [Sat, 29 Dec 2012 15:47:22 +0000 (16:47 +0100)]
Use Html::rawElement() instead of hardcoded string in Special:Contributions

Since there is generally no classes in the list items, this avoids having a
lot of useless class="" in the output.

Change-Id: I804af2269def1f06d023145c9ced6f1afa0d0c71

11 years agoDo correct average year length arithmetic.
Liangent [Sat, 29 Dec 2012 14:07:21 +0000 (22:07 +0800)]
Do correct average year length arithmetic.

We have ( 24 * 3 + 25 ) leap years in total every 400 years in the
Gregorian calendar.

Change-Id: I2ad9036473afa914ecf8ddcf99ce27e316178f76

11 years ago(bug 39062) Show revs without rev_parent_id in Special:Contributions.
Brian Wolff [Thu, 27 Dec 2012 07:28:17 +0000 (03:28 -0400)]
(bug 39062) Show revs without rev_parent_id in Special:Contributions.

This is a follow-up to Ifd63cdf1 (c8e0ec3f)

Currently if rev_parent_id is not populated on a row we just
output an empty bullet - <li class=""></li>. (Which can
happen if an update is performed properly. There are (were?) some
examples of this on en wikipedia. I was just talking to a user
who had some of his revisions not be populated for that field,
so it can happen.) Heck there's even code that checks for this
case inside the if statement (before this commit) that stops
non rev_parent_id rows from being processed.

This seems very very wrong to me. Change the check for if a revision
is valid to look for rev_id (which is the primary key, so
going to be there, and always has been there).

Also in the
case we don't have a valid revision and can't format it
(For example, an ext made a hook that added random rows
to the Special:Contribs query, but forgot to format some),
instead of outputting an empty bullet, output just an
html comment, (and a debug log entry).

Thank you to Isarra for reporting this issue.

Change-Id: I7ef562d6e829877dd8ea4ffb1e7e04b46c943ec1

11 years agoMerge "API list=alltransclusions, rm unique+gen & continue restrict"
jenkins-bot [Fri, 28 Dec 2012 22:00:34 +0000 (22:00 +0000)]
Merge "API list=alltransclusions, rm unique+gen & continue restrict"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 28 Dec 2012 21:01:40 +0000 (21:01 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Icf200b83397e2d0c7d01269a063d23759c397b95

11 years agoAPI list=alltransclusions, rm unique+gen & continue restrict
Yuri Astrakhan [Fri, 28 Dec 2012 18:46:11 +0000 (13:46 -0500)]
API list=alltransclusions, rm unique+gen & continue restrict

* list=alltransclusions added to enumerate every instance of page embedding
* list=alllinks & alltransclusions now allow both 'from' and 'continue' in
  the same query. When both are present, 'from' is simply ignored.
* list=alllinks & alltransclusions now allow 'unique' in generators, to yield
  a list of all link/template target pages instead of source pages.

Change-Id: I4137e2d790f988e0cef638703d9d6961a47fe662

11 years agoMerge "ApiOptionsTest: Group medium (takes more than 2 seconds)."
Timo Tijhof [Fri, 28 Dec 2012 17:26:48 +0000 (17:26 +0000)]
Merge "ApiOptionsTest: Group medium (takes more than 2 seconds)."