lhc/web/wiklou.git
12 years agoFix bug in getXVO() that produced XVO headers with stray semicolons
Catrope [Fri, 1 Jun 2012 10:19:53 +0000 (03:19 -0700)]
Fix bug in getXVO() that produced XVO headers with stray semicolons

addVaryHeader() converts $options to an array, so null values (no XVO
options) are converted to empty arrays. This led to headers like:

X-Vary-Options: Foo;string-contains=bar,Baz;,Quux;string-contains=xyz

This fix changes the "Baz;," part to "Baz,"

Change-Id: I2fa0b374f5d4cfa6b894cbd9de8c14354f04ad86

12 years agoMerge "(bug 35264) Wrong type used for <ns> in export.xsd"
Reedy [Fri, 1 Jun 2012 12:10:33 +0000 (12:10 +0000)]
Merge "(bug 35264) Wrong type used for <ns> in export.xsd"

12 years agoMerge "Add BackupDumper to the tests AutoLoader and kill the register globals include...
Reedy [Fri, 1 Jun 2012 09:55:32 +0000 (09:55 +0000)]
Merge "Add BackupDumper to the tests AutoLoader and kill the register globals include vulnerability added in 8ba9856."

12 years agoMerge "The 4th Database::select() parameter is the function name. The ORDER BY should...
Aaron Schulz [Fri, 1 Jun 2012 00:00:47 +0000 (00:00 +0000)]
Merge "The 4th Database::select() parameter is the function name. The ORDER BY should be at $options. This was throwing errors in PHP 5.4 due to the array being converted to a string down at Database.php:862"

12 years agoThe 4th Database::select() parameter is the function name.
Platonides [Thu, 31 May 2012 22:13:36 +0000 (00:13 +0200)]
The 4th Database::select() parameter is the function name.
The ORDER BY should be at $options.
This was throwing errors in PHP 5.4 due to the array being
converted to a string down at Database.php:862

Fixes 50ee1d2

Change-Id: Ifb0fc70144242f25fc916fb8d380ed3e2d334fb9

12 years agoAdd BackupDumper to the tests AutoLoader and kill the
Platonides [Thu, 31 May 2012 20:19:39 +0000 (22:19 +0200)]
Add BackupDumper to the tests AutoLoader and kill the
register globals include vulnerability added in 8ba9856.

Change-Id: If7fa6d76c91daa44aa53e80ac39be4860a763723

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Thu, 31 May 2012 19:45:13 +0000 (19:45 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I5dc83c468e542fccded921064326e2e2f2d4135f

12 years agoMerge "Show revdel links instead of checkboxes on pages where there is no multiple...
Aaron Schulz [Thu, 31 May 2012 18:48:03 +0000 (18:48 +0000)]
Merge "Show revdel links instead of checkboxes on pages where there is no multiple log entry revdel form."

12 years ago(bug 35264) Wrong type used for <ns> in export.xsd
Mormegil [Thu, 31 May 2012 17:16:41 +0000 (19:16 +0200)]
(bug 35264) Wrong type used for <ns> in export.xsd

Change-Id: I6d5a399d3fde4d70a8814c4f8d107765c8e3da96

12 years agoMerge "cleanup EditWatchlist a bit"
Aaron Schulz [Thu, 31 May 2012 17:10:07 +0000 (17:10 +0000)]
Merge "cleanup EditWatchlist a bit"

12 years agoMerge "Revision::getTitle produce rev_id IS NULL query"
Aaron Schulz [Thu, 31 May 2012 17:06:50 +0000 (17:06 +0000)]
Merge "Revision::getTitle produce rev_id IS NULL query"

12 years agocleanup EditWatchlist a bit
umherirrender [Thu, 31 May 2012 15:23:50 +0000 (17:23 +0200)]
cleanup EditWatchlist a bit

* set fields explict in select statement
* get database connection only, if there is anything to do
* store often used object in local var

Change-Id: I41325ee0fdd935e48e2539668dfa0a46ff04af51

12 years agoMerge "(bug 37194) remove obsoletes *.deps.php"
Reedy [Thu, 31 May 2012 13:54:00 +0000 (13:54 +0000)]
Merge "(bug 37194) remove obsoletes *.deps.php"

12 years agoMerge "(bug 36839) Use mb_check_encoding() if available."
Tim Starling [Thu, 31 May 2012 12:36:19 +0000 (12:36 +0000)]
Merge "(bug 36839) Use mb_check_encoding() if available."

12 years ago(bug 36839) Use mb_check_encoding() if available.
lupo [Thu, 31 May 2012 12:21:36 +0000 (14:21 +0200)]
(bug 36839) Use mb_check_encoding() if available.

This is not a real fix for the cause of the bug (which is a
pcre.recursion_limit that is far too low), but I do wonder
about the efficiency of using a regexp to test for valid
UTF-8 encoding. After all the regexp has to be compiled first
into a state machine.

Patch set 2: Php unit test for Language.checkTitleEncoding
Patch set 3: benchmark
Patch set 4: add benchmark for non-capturing subgroup in regexp, and
since that's faster than a capturing subgroup, use it in
checkTitleEncoding() in the regexp branch.
Patch set 5: use Tim's suggestion (once-only pattern) in the regexp
branch. Also add to benchmark.

Change-Id: I551f096921d4c9c57cbcb091b80ab5970ca86a9b

12 years agoMerge "Localisation updates from http://translatewiki.net."
Reedy [Thu, 31 May 2012 10:19:36 +0000 (10:19 +0000)]
Merge "Localisation updates from translatewiki.net."

12 years agomissing $dbr instance in JobQueue
Antoine Musso [Wed, 30 May 2012 19:17:30 +0000 (21:17 +0200)]
missing $dbr instance in JobQueue

This comes from factoring done with commit fb69ee4. To add quotes based
on the database type, we actually need a Database instance!

Fault introduced by https://gerrit.wikimedia.org/r/9116

Change-Id: I7a4f7fb1a744cd7adb5166e66424b664edb3d9e8

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Wed, 30 May 2012 19:04:30 +0000 (19:04 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Idd4148e96ec8e655c55bf4a694bf9044deb5164b

12 years agoShow revdel links instead of checkboxes on pages where there is no multiple log entry...
Alex Monk [Tue, 15 May 2012 00:45:05 +0000 (01:45 +0100)]
Show revdel links instead of checkboxes on pages where there is no multiple log entry revdel form.

Change-Id: Ie061ee5b77a39c13628bfdb73f09cb3fa97dd090

12 years agowrong class name: JobQueue -> Job
Antoine Musso [Wed, 30 May 2012 14:51:12 +0000 (16:51 +0200)]
wrong class name: JobQueue -> Job

Commit fb69ee48 used a wrong class name JobQueue instead of Job
Was https://gerrit.wikimedia.org/r/#/c/9116/

Change-Id: Ibe3e146e021a95376d2c57d0366645d8f5370431

12 years agoAdd new message 'brackets' and use it to kill some hardcoded []s.
Liangent [Tue, 29 May 2012 06:59:30 +0000 (14:59 +0800)]
Add new message 'brackets' and use it to kill some hardcoded []s.

Change-Id: Idae8d9201d1c291316ab520d204ae8c5cde2d890

12 years agoMerge "Localisation updates from http://translatewiki.net."
Reedy [Tue, 29 May 2012 20:43:36 +0000 (20:43 +0000)]
Merge "Localisation updates from translatewiki.net."

12 years agoMerge "Added missing GPLv2 headers in some places."
Reedy [Tue, 29 May 2012 20:43:24 +0000 (20:43 +0000)]
Merge "Added missing GPLv2 headers in some places."

12 years agoRemoved dead code since PHP minimum is > 5.2.1.
Aaron Schulz [Sat, 26 May 2012 03:41:06 +0000 (20:41 -0700)]
Removed dead code since PHP minimum is > 5.2.1.

Change-Id: I565ff44e5e058ce72cd2eaeaec9ea1e441d01010

12 years agoMerge "Unused variable $wgUser"
Aaron Schulz [Tue, 29 May 2012 20:20:58 +0000 (20:20 +0000)]
Merge "Unused variable $wgUser"

12 years agoMerge "(bug 37072) - prevents infinite job loop"
Aaron Schulz [Tue, 29 May 2012 20:19:58 +0000 (20:19 +0000)]
Merge "(bug 37072) - prevents infinite job loop"

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 29 May 2012 19:17:15 +0000 (19:17 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ia3e858b72222f17a8bdefcfac3541f97327a6ffc

12 years agoMerge "Change if/else to a ternary operator"
Hashar [Tue, 29 May 2012 18:59:38 +0000 (18:59 +0000)]
Merge "Change if/else to a ternary operator"

12 years agoChange if/else to a ternary operator
Platonides [Mon, 28 May 2012 17:37:35 +0000 (19:37 +0200)]
Change if/else to a ternary operator

This keep the wfProfileOut() detector happy.

Change-Id: I85ecc33121d94e6a2d2e8ea3d1f5ca47f3db86bc

12 years agoMerge "Minor changes to Ic50d01f5 Accept-Language code."
Hashar [Tue, 29 May 2012 18:43:55 +0000 (18:43 +0000)]
Merge "Minor changes to Ic50d01f5 Accept-Language code."

12 years agoMinor changes to Ic50d01f5 Accept-Language code.
Platonides [Mon, 28 May 2012 16:23:53 +0000 (18:23 +0200)]
Minor changes to Ic50d01f5 Accept-Language code.

Minor improvments to commit 894c5c1

Change-Id: I8cc63cb1ba2c3aa74ca9e225022d5be75e75ad23

12 years agoMerge "wfProfileOut() for new return added in c6396 (c4e407c)"
Aaron Schulz [Tue, 29 May 2012 18:08:25 +0000 (18:08 +0000)]
Merge "wfProfileOut() for new return added in c6396 (c4e407c)"

12 years agoUnused variable $wgUser
Platonides [Tue, 29 May 2012 17:54:48 +0000 (19:54 +0200)]
Unused variable $wgUser

Change-Id: Ib00ba04cc372788b791fec3f1358048530ecca9f

12 years agowfProfileOut() for new return added in c6396 (c4e407c)
Platonides [Tue, 29 May 2012 17:34:43 +0000 (19:34 +0200)]
wfProfileOut() for new return added in c6396 (c4e407c)

Change-Id: I9fed0ba277fb32df65a772c8c4de123e2867b4c5

12 years agoMerge "Adding sanity check to Title::isRedirect()."
Aaron Schulz [Tue, 29 May 2012 17:29:19 +0000 (17:29 +0000)]
Merge "Adding sanity check to Title::isRedirect()."

12 years agoFix user rights check to display the "revert" link on file histories.
Alexandre Emsenhuber [Tue, 29 May 2012 17:09:01 +0000 (19:09 +0200)]
Fix user rights check to display the "revert" link on file histories.

* Don't do expensive checks for display (for the consistency of the interface)
* Removed the logged-in check and changed it for 'upload' right (as the user need this right to execute the action)

Change-Id: Ie5752e5292a953cbcf81ab665365c3efbd4eba6a

12 years agoHandle more ES exceptions when getting text.
Aaron Schulz [Sat, 26 May 2012 20:27:38 +0000 (13:27 -0700)]
Handle more ES exceptions when getting text.

Change-Id: I795dce37bcf4a24d5922d2d5166bf27ba9b77607

12 years ago`mobile` sub-directories for mobile-related code
Max Semenik [Fri, 25 May 2012 15:05:21 +0000 (19:05 +0400)]
`mobile` sub-directories for mobile-related code

Move DeviceDetection.php and DeviceDetectionTest.php

Change-Id: Ia4aaf7ad499dd2021ef9d2ebf7f6d829e8fc4656

12 years agoAdding sanity check to Title::isRedirect().
daniel [Thu, 24 May 2012 14:42:26 +0000 (16:42 +0200)]
Adding sanity check to Title::isRedirect().

isRedirect() assumes that the LinkCache already contains
information about this title. If that is not the case, it
currently returns false, even though it just doesn't know
whether this link is a redirect.

The new check asserts the assumption that this title
is already known to the link cache.

Amend: use Exception instead of assert()

Change-Id: Id3ad2d4e140b270b1f5ca1f7af9b3320cffff5a2

12 years agotests covering WebRequest->getAcceptLang()
Platonides [Mon, 28 May 2012 16:39:57 +0000 (18:39 +0200)]
tests covering WebRequest->getAcceptLang()

Change-Id: I981574e854bc43aba2bd5def7cb6b1b665c5b6ca

12 years agoFixed the API doc. for aurights (list=allusers)
Hoo man [Sun, 27 May 2012 12:37:19 +0000 (14:37 +0200)]
Fixed the API doc. for aurights (list=allusers)

Listings with aurights can't show users with rights which are
granted by implicit or auto-promoted groups like *, user, or autoconfirmed.
This is my first commit, btw.

Change-Id: I083eb977393729961317d0f3cf9f7cfaa50fde51

12 years ago(bug 37194) remove obsoletes *.deps.php
Antoine Musso [Tue, 29 May 2012 12:05:03 +0000 (14:05 +0200)]
(bug 37194) remove obsoletes *.deps.php

PHP had a nasty bug related to late/early binding and referenced at
https://bugs.php.net/bug.php?id=56776 . The workaround was to add some
.deps.php files to make sure code is loaded early.

Upstream PHP issue #56778 was fixed in PHP 5.1.

See also:
http://lists.wikimedia.org/pipermail/wikitech-l/2006-January/021311.html

Change-Id: I4c85f65c6b5f3df3218bb107881547d44f0cf107

12 years ago(bug 37072) - prevents infinite job loop
Antoine Musso [Mon, 28 May 2012 08:20:19 +0000 (10:20 +0200)]
(bug 37072) - prevents infinite job loop

nextJob.php does not honor jobs types being excluded from the default
job queue by using $wgJobTypesExcludedFromDefaultQueue. Since those jobs
can never get processed, nextJob.php will always return a database which
might produce a nasty infinite loop while trying to process the whole
queue.

Job::pop did take in account wgJobTypesExcludedFromDefaultQueue to
filter the jobs out. So this patch factor out the code in a new method
and uses it for nextJob.php.

Change-Id: I15197ffcca00f229c9004e2abd87e009bc40f384

12 years agoAdded missing GPLv2 headers in some places.
Alexandre Emsenhuber [Fri, 25 May 2012 06:24:55 +0000 (08:24 +0200)]
Added missing GPLv2 headers in some places.

Also made file/class documentation more consistent.

Change-Id: Ia1a7230adc92079b505362317d2e03b36130cc8b

12 years ago(bug 37186) Remove hard coded parentheses in ImagePage.php
Liangent [Tue, 29 May 2012 08:03:59 +0000 (16:03 +0800)]
(bug 37186) Remove hard coded parentheses in ImagePage.php

Change-Id: Ib516e501953f37a69707a5de3e2ed96004760caa

12 years agoMerge "Use localised parentheses for Han script autonyms"
Siebrand [Tue, 29 May 2012 07:40:22 +0000 (07:40 +0000)]
Merge "Use localised parentheses for Han script autonyms"

12 years agoMerge "All zh messages should be falling back to a variant (zh-hans currently)"
Nikerabbit [Tue, 29 May 2012 07:36:27 +0000 (07:36 +0000)]
Merge "All zh messages should be falling back to a variant (zh-hans currently)"

12 years agoUse localised parentheses for Han script autonyms
Translation updater bot [Tue, 29 May 2012 07:28:57 +0000 (07:28 +0000)]
Use localised parentheses for Han script autonyms

Change-Id: I93a056cd7d5fd9c4d76dce1ee74f62b57ae3135f

12 years agoAll zh messages should be falling back to a variant (zh-hans currently)
Liangent [Tue, 29 May 2012 07:04:34 +0000 (15:04 +0800)]
All zh messages should be falling back to a variant (zh-hans currently)

The use of 'disable' in variant names has been overrided by
$wgDisabledVariants years ago.

Change-Id: Ifd66f4de66cb3af83303145403b6d446a00c4b3b

12 years agoMerge "Use message 'parentheses' in prefs-changeemail."
Siebrand [Tue, 29 May 2012 06:29:10 +0000 (06:29 +0000)]
Merge "Use message 'parentheses' in prefs-changeemail."

12 years agoUse message 'parentheses' in prefs-changeemail.
Liangent [Tue, 29 May 2012 03:22:54 +0000 (11:22 +0800)]
Use message 'parentheses' in prefs-changeemail.

Change-Id: Iba4498b93e3ae45be84b6716bd6764ddfab7c113

12 years agoMerge "$wgUseSquid unused since parent commit (fa1a8d5)"
Aaron Schulz [Mon, 28 May 2012 22:36:38 +0000 (22:36 +0000)]
Merge "$wgUseSquid unused since parent commit (fa1a8d5)"

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Mon, 28 May 2012 19:00:20 +0000 (19:00 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Ic7ab821c94d801f69eb7f9b616b38fd471f65367

12 years ago$wgUseSquid unused since parent commit (fa1a8d5)
Platonides [Mon, 28 May 2012 17:32:18 +0000 (19:32 +0200)]
$wgUseSquid unused since parent commit (fa1a8d5)

Change-Id: I47e103e6c4bb44f74f9d940505775ac2f2e66b29

12 years agoMerge "Tweak Accept-Language sorting method to respect RFC 3282."
Platonides [Mon, 28 May 2012 16:33:07 +0000 (16:33 +0000)]
Merge "Tweak Accept-Language sorting method to respect RFC 3282."

12 years agoMerge "bug 37015: Allow disabling special page summary"
Nikerabbit [Mon, 28 May 2012 15:15:33 +0000 (15:15 +0000)]
Merge "bug 37015: Allow disabling special page summary"

12 years agoForward port of https://www.mediawiki.org/wiki/Special:Code/MediaWiki/105964
Reedy [Mon, 28 May 2012 14:43:06 +0000 (15:43 +0100)]
Forward port of https://mediawiki.org/wiki/Special:Code/MediaWiki/105964

"Temporary workaround for bug 31576. The logs show that once every hour or so, a job runner somewhere in the cluster somehow loses all its magic words and starts hitting this case. Throwing an exception should kill the job runner before it does too much damage."

Currently keeps being re-imported into deployment branches...

Change-Id: I9d6ef2f4e0755a86476388508a8c08266fc94a9f

12 years agoMerge "Revert "Remove old compat methods/functions for mb_ functions""
Nikerabbit [Mon, 28 May 2012 13:34:12 +0000 (13:34 +0000)]
Merge "Revert "Remove old compat methods/functions for mb_ functions""

12 years agoRevert "Remove old compat methods/functions for mb_ functions"
Reedy [Mon, 28 May 2012 12:55:31 +0000 (12:55 +0000)]
Revert "Remove old compat methods/functions for mb_ functions"

mb_ functions are in an extension, but apparently not enabled/compiled in by default. Safer to just keep these around till it maybe happens in the future

This reverts commit 1497bd1f36567a5ba39346af879abfbcc2539665

12 years agoTweak Accept-Language sorting method to respect RFC 3282.
Liangent [Mon, 28 May 2012 10:51:53 +0000 (18:51 +0800)]
Tweak Accept-Language sorting method to respect RFC 3282.

Now in Accept-Language handling (in the language converter),
languages appearing earlier in the list are treated as more
preferred languages (variants).

Change-Id: Ic50d01f52dce1ae1f4f4e747d5f8b8399ca03b0b

12 years agoMerge "Localisation updates from http://translatewiki.net."
Reedy [Sun, 27 May 2012 21:43:37 +0000 (21:43 +0000)]
Merge "Localisation updates from translatewiki.net."

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 27 May 2012 19:45:42 +0000 (19:45 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Id6e1aac5c0c91f83e2e2ded8ac9937035bb9c104

12 years agoremove windows lines ending
Antoine Musso [Sun, 27 May 2012 19:40:19 +0000 (21:40 +0200)]
remove windows lines ending

Introduced by commit 6c2cf98
https://gerrit.wikimedia.org/r/8919

Change-Id: Idfe6dd1f6d2b7fabfdbccd9acf6f0dcbbb5833be

12 years agoCheck validity of fetched titles and show a descriptive messages when an invalid...
Alexandre Emsenhuber [Sun, 27 May 2012 17:28:22 +0000 (19:28 +0200)]
Check validity of fetched titles and show a descriptive messages when an invalid title is encountered.

Change-Id: I84804c9d89e778d263c781393afe9c8f70395c99

12 years agoMerge "Remove old compat methods/functions for mb_ functions"
Aaron Schulz [Sun, 27 May 2012 16:33:39 +0000 (16:33 +0000)]
Merge "Remove old compat methods/functions for mb_ functions"

12 years agoMerge "Block.php: replace '*' with explicit fields in selects"
Aaron Schulz [Sun, 27 May 2012 16:30:05 +0000 (16:30 +0000)]
Merge "Block.php: replace '*' with explicit fields in selects"

12 years agoMerge "Fix trailing whitespace (and mixed spaces) in XSD files"
Aaron Schulz [Sun, 27 May 2012 16:26:42 +0000 (16:26 +0000)]
Merge "Fix trailing whitespace (and mixed spaces) in XSD files"

12 years agosetTitle on a new null revision
umherirrender [Sun, 27 May 2012 15:47:29 +0000 (17:47 +0200)]
setTitle on a new null revision

Revision::getTitle will make a query against slave to load the title on
demand. But when there is a slave lag, the slave does not know the new
revision id and the caller gets null back

Change-Id: Ia85866362715ba666d51106037e7771d6bf4a237

12 years agoRevision::getTitle produce rev_id IS NULL query
umherirrender [Sun, 27 May 2012 14:39:04 +0000 (16:39 +0200)]
Revision::getTitle produce rev_id IS NULL query

Seen on Special:NewPages: Linker::revComment is calling
Revision::getTitle, but the revision object has no id set.
This is another way to avoid a query per non-empty comment on
Special:NewPages, see gerrit 9003

Change-Id: I1786a4c13000f574c0f34fb59759bb2fc4117bcd

12 years agoFix trailing whitespace (and mixed spaces) in XSD files
Reedy [Sun, 27 May 2012 13:03:29 +0000 (14:03 +0100)]
Fix trailing whitespace (and mixed spaces) in XSD files

Change-Id: Ie3c9917442c0bb47e1e95ad304943a721eb430cd

12 years agoRemove old compat methods/functions for mb_ functions
Reedy [Sun, 27 May 2012 12:10:08 +0000 (13:10 +0100)]
Remove old compat methods/functions for mb_ functions

PHP docs suggest all were added well before our minimum version, and as such should exist

Change-Id: I6921b1374df0b997b3519699556528973882565a

12 years agoMerge "Set title for Linker::revComment on Special:NewPages"
Nikerabbit [Sun, 27 May 2012 06:29:09 +0000 (06:29 +0000)]
Merge "Set title for Linker::revComment on Special:NewPages"

12 years agoMerge "Revert "Re-phrased titles for diff and history pages""
Krinkle [Sat, 26 May 2012 23:57:34 +0000 (23:57 +0000)]
Merge "Revert "Re-phrased titles for diff and history pages""

12 years agoRevert "Re-phrased titles for diff and history pages"
Krinkle [Sat, 26 May 2012 23:54:58 +0000 (23:54 +0000)]
Revert "Re-phrased titles for diff and history pages"

This reverts commit af988eccc8981467c8bf4b639b47f673ab8d59e6

- It is inconsistent with all other actions and special pages (move page, edit page, delete page, What links here, search, ...)
- The exact spelling is (whether or not to uppercase the suffix, how to use quotation) is under heavy discussion on en.wikipedia (although it is not deployed yet, someone took the liberty to make the same change locally to see how people react, see also next point)
- Whether or not this actually improves tabbed browsing is imho highly doubtful. I consider myself to be an active vandal fighter and when working with fixing up vandals' contributions I sometimes have 50 tabs open. Some are diffs some are history etc. Knowing the action is imho more important than the page title. But having said that, both have their fair points (Either you can have 3 tabs like "Foo:Bar .." and not know which is what action. Or have 3 tabs like "Difference be.." and not know which is for which page). Imho the breadcrumb path "Action < Page < Site" makes more sense.
- See also discussion on the original gerrit change

Overal revert summary: Has issues, until resolved and if still relevant after that, for now reverting to status quo.

12 years agoMerge "[ResourceLoader] Use getLanguage() accessor as the field is lazy-loaded."
Krinkle [Sat, 26 May 2012 21:34:32 +0000 (21:34 +0000)]
Merge "[ResourceLoader] Use getLanguage() accessor as the field is lazy-loaded."

12 years agoRemoved function_exists() check for header_remove() since it's now always available.
Alexandre Emsenhuber [Sat, 26 May 2012 16:31:32 +0000 (18:31 +0200)]
Removed function_exists() check for header_remove() since it's now always available.

header_remove() was added in PHP 5.3.0 which is below that our minimum requirement; also fixed a comment for the minimum required PHP version.

Change-Id: Ib6992ed772f1a707f96020fdfe6eb6152102402a

12 years agoSet title for Linker::revComment on Special:NewPages
umherirrender [Sat, 26 May 2012 19:10:52 +0000 (21:10 +0200)]
Set title for Linker::revComment on Special:NewPages

When Linker::revComment gets the title from the revision object, he can
produce section links for autocomments
This will also avoid a query per non-empty comment, because the revision
object loads the title on demand, if not set

Change-Id: I891afe9aaa6eeeb8382a6131376c26690082a8c7

12 years agoCheck validity of fetched titles and show a descriptive messages when an invalid...
Alexandre Emsenhuber [Sat, 26 May 2012 16:13:31 +0000 (18:13 +0200)]
Check validity of fetched titles and show a descriptive messages when an invalid title is encountered.

Change-Id: I8989430db3eb817d24b5128df46942eda15eb535

12 years agoMerge "Localisation updates from http://translatewiki.net."
Siebrand [Sat, 26 May 2012 10:49:30 +0000 (10:49 +0000)]
Merge "Localisation updates from translatewiki.net."

12 years agoFollow up change Ia4147e83: Register new message key
raymond [Sat, 26 May 2012 07:27:00 +0000 (09:27 +0200)]
Follow up change Ia4147e83: Register new message key

Change-Id: I6087a02ebe82e22984621c0667ecc5f6b76533d8

12 years agoMerge "Adding a prefs header for options related to User Pages"
awjrichards [Fri, 25 May 2012 23:23:05 +0000 (23:23 +0000)]
Merge "Adding a prefs header for options related to User Pages"

12 years agoMerge "(bug 4220) dump schema get unique contraints on id"
Aaron Schulz [Fri, 25 May 2012 22:39:30 +0000 (22:39 +0000)]
Merge "(bug 4220) dump schema get unique contraints on id"

12 years ago[ResourceLoader] Use getLanguage() accessor as the field is lazy-loaded.
Aaron [Fri, 25 May 2012 21:52:39 +0000 (14:52 -0700)]
[ResourceLoader] Use getLanguage() accessor as the field is lazy-loaded.

Change-Id: I6a106d1557366f6ff4586c9604fd324be51d7e1f

12 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Fri, 25 May 2012 19:54:33 +0000 (19:54 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I41a2a158064fa9545cd14fdb98e34d657402bef5

12 years agoAdding a prefs header for options related to User Pages
Kaldari [Fri, 25 May 2012 19:07:04 +0000 (12:07 -0700)]
Adding a prefs header for options related to User Pages

Right now this is mostly for WikiLove, which needs to be moved out
of the Labs header

Change-Id: Ia4147e83a9c47daad22b7e3dafe09b541ac95000

12 years agoMerge "Add passing test for definition list with empty definition"
Aaron Schulz [Fri, 25 May 2012 19:06:03 +0000 (19:06 +0000)]
Merge "Add passing test for definition list with empty definition"

12 years agoMerge "user table: replace some '*' with explicit fields in selects"
Aaron Schulz [Fri, 25 May 2012 17:14:08 +0000 (17:14 +0000)]
Merge "user table: replace some '*' with explicit fields in selects"

12 years agoMerge "Title.php: replace some '*' with explicit fields in selects"
Aaron Schulz [Fri, 25 May 2012 17:10:18 +0000 (17:10 +0000)]
Merge "Title.php: replace some '*' with explicit fields in selects"

12 years agoMerge "Avoid extreme performance regression in ImagePage."
Aaron Schulz [Fri, 25 May 2012 17:04:52 +0000 (17:04 +0000)]
Merge "Avoid extreme performance regression in ImagePage."

12 years agoMerge "Add some more detailed info about the xslt param of format=xml"
Catrope [Fri, 25 May 2012 16:01:28 +0000 (16:01 +0000)]
Merge "Add some more detailed info about the xslt param of format=xml"

12 years agoAdd some more detailed info about the xslt param of format=xml
Liangent [Wed, 16 May 2012 12:48:36 +0000 (20:48 +0800)]
Add some more detailed info about the xslt param of format=xml

Change-Id: I77e1dcbdf3ff1d201a2346c5a397469b4fc21d74

12 years agouser table: replace some '*' with explicit fields in selects
umherirrender [Fri, 25 May 2012 15:53:29 +0000 (17:53 +0200)]
user table: replace some '*' with explicit fields in selects

It is good practice to select only fields, which are used later

Change-Id: Iaaa252d594112894334a8ee9916007352d5bc4e7

12 years agoTitle.php: replace some '*' with explicit fields in selects
umherirrender [Fri, 25 May 2012 14:55:25 +0000 (16:55 +0200)]
Title.php: replace some '*' with explicit fields in selects

It is good practice to select only fields, which are used later

Change-Id: I4e765d60aea3c11261497346a85e65ed755a085d

12 years agoBlock.php: replace '*' with explicit fields in selects
umherirrender [Fri, 25 May 2012 14:50:57 +0000 (16:50 +0200)]
Block.php: replace '*' with explicit fields in selects

It is good practice to select only fields, which are used later

Change-Id: I50d149b3ecd3a9e0325fecbe8d0b6e1fff353893

12 years agoMerge "Fix a typo in resources/jquery/jquery.byteLimit.js"
Nikerabbit [Fri, 25 May 2012 13:44:05 +0000 (13:44 +0000)]
Merge "Fix a typo in resources/jquery/jquery.byteLimit.js"

12 years agoAdd passing test for definition list with empty definition
Gabriel Wicke [Fri, 25 May 2012 13:37:53 +0000 (15:37 +0200)]
Add passing test for definition list with empty definition

Change-Id: I850f2389274aca76bab0b4a340a14af58e349b93

12 years ago(bug 4220) dump schema get unique contraints on id
Elvis Stansvik [Fri, 25 May 2012 07:44:26 +0000 (09:44 +0200)]
(bug 4220) dump schema get unique contraints on id

This patch was made in December 2005 by Elvis Stansvik on bug 4220, you
will find below the rewritten introduction for his patch contribution.

"""
The XML Schema for the XML dump format used by MediaWiki has no
constraints for the page and revision identifiers. This patch solve that
issue by enforcing the constraint in the XSD.

It most probably makes sense, since I think that:

 - some parsers capable of Schema validation can work more efficiently
   if constraints are in the XSD.
 - Another reason is that (however unlikely) some other software might
   output files in this format are not obliged to keep the IDs unique,
   according the the XSD in its current form.
"""

Updating the http://www.mediawiki.org/xml/export-0.7/ public URL is
tracked by bug 37111.

Change-Id: Idb82fe620c3395acaa8f051b4d4d0d770cd33d44

12 years agoFix a typo in resources/jquery/jquery.byteLimit.js
Liangent [Fri, 25 May 2012 05:08:36 +0000 (13:08 +0800)]
Fix a typo in resources/jquery/jquery.byteLimit.js

Change-Id: I35d501704567eb62bcb905f0d9633fefd4c23271

12 years agoMerge "HTMLForm: throw a warning when no callback is set"
Aaron Schulz [Thu, 24 May 2012 23:31:30 +0000 (23:31 +0000)]
Merge "HTMLForm: throw a warning when no callback is set"

12 years agoMerge "Make it work in wikis not configured in English. (hardcodes message values...
Aaron Schulz [Thu, 24 May 2012 23:26:16 +0000 (23:26 +0000)]
Merge "Make it work in wikis not configured in English. (hardcodes message values)  php phpunit.php includes/WikiPageTest.php"