lhc/web/wiklou.git
11 years agoMerge "(Bug 42616) Remove extra newline from redirect wikitext"
Daniel Kinzler [Wed, 12 Dec 2012 13:25:48 +0000 (13:25 +0000)]
Merge "(Bug 42616) Remove extra newline from redirect wikitext"

11 years ago(bug 41146) DatabaseOracle no more rely on mbstring
lupo [Fri, 16 Nov 2012 12:52:55 +0000 (13:52 +0100)]
(bug 41146) DatabaseOracle no more rely on mbstring

DatabaseOracle class has been using mb_check_encoding which might not
always be available.  We now rely on the StringUtils::isUtf8() method
implemented by I4cf4dfe2.

Change-Id: I5a9ffa23e3e738e4886d61e85974b0af25058308

11 years agoabstract utf8 validation fallback
Antoine Musso [Fri, 16 Nov 2012 12:47:10 +0000 (13:47 +0100)]
abstract utf8 validation fallback

Language class had a code snippet to verify whether a text is valid
UTF-8 though that could not be used from another place. The snippet use
mb_check_encoding() and fallback to some regex whenever mbstring is not
available.

* introduce StringUtils::isUtf8() which is mostly code moved out of the
  language class.
* Enhance regex readability by using an expanded regex (//x)
* Made the regex to recognize longer sequences
* Add some unit tests to the mbstring and the PHP native implementation
* An optional second parameter can be passed to isUtf8() to force the
  use of our PHP implementation. This is used for unit testing.

Change-Id: I4cf4dfe2eb02f046db1726f4654ba649e01419f2

11 years ago(minor) use wfDebugLog consistently.
daniel [Mon, 10 Dec 2012 10:59:02 +0000 (11:59 +0100)]
(minor) use wfDebugLog consistently.

ExternalStoreDB used a mixture of wfDebug() and wfDebugLog().

Change-Id: Ifea99cce5accd01bce85b9d877a8d8fc5ddbd98a

11 years ago(bug 24620) Add types and test for LogFormatter
jan [Mon, 22 Oct 2012 09:00:15 +0000 (11:00 +0200)]
(bug 24620) Add types and test for LogFormatter

This change adds types to LogFormatter like "msg" so log values
(parameters for the log message) can be formated as e.g. a message in
user or content language.

This change adds tests for LogFormatter, too. Tested are the normal log
params, the log params with type and the output of the comment.

This change repairs the changes I6a56c204 and I7218a173

Change-Id: Ief3665056b3bb613ff709821306017ee7967c444

11 years agoMerge "Localisation updates from http://translatewiki.net."
Translation updater bot [Tue, 11 Dec 2012 22:57:52 +0000 (22:57 +0000)]
Merge "Localisation updates from translatewiki.net."

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Tue, 11 Dec 2012 22:41:56 +0000 (22:41 +0000)]
Localisation updates from translatewiki.net.

Change-Id: I381b6e39f31bfea58a55241342c8401750e0c04d

11 years ago[Upload] Improvements to async stash uploading.
Aaron Schulz [Tue, 11 Dec 2012 22:29:33 +0000 (14:29 -0800)]
[Upload] Improvements to async stash uploading.

* Added a "stage" field to the status info. This lets clients detect
  if the process failed to even start much more quickly.
* Actually unset the status from $_SESSION if set to false.

Change-Id: I29703f14625b1b10e6413db27a3964324b4679e6

11 years agoMerge "messsage -> message"
Reedy [Tue, 11 Dec 2012 17:03:11 +0000 (17:03 +0000)]
Merge "messsage -> message"

11 years agomesssage -> message
Alex Monk [Tue, 11 Dec 2012 16:57:56 +0000 (16:57 +0000)]
messsage -> message

There were some other occurances in the Qqq messages, I have fixed those on translatewiki.

Change-Id: I2b1b34c9fe3cf24ed9086673c71c75486189fa78

11 years ago(bug 42948) $wiki parameter for getRevisionText().
daniel [Tue, 11 Dec 2012 11:57:37 +0000 (12:57 +0100)]
(bug 42948) $wiki parameter for getRevisionText().

Revision::getRevisionText should take wiki identifier, to allow for the loading
of revision blobs from another wiki's database. This is passed through to
ExternalStoreDB, so it uses the correct database connection.

Change-Id: I14a7ebb8aa31a4e50735db9c28ff8d2759cd872c

11 years agoMerge "[JobQueue] Pushed stats down to job queue subclasses."
ArielGlenn [Tue, 11 Dec 2012 08:20:51 +0000 (08:20 +0000)]
Merge "[JobQueue] Pushed stats down to job queue subclasses."

11 years agoFixed backwards return value in 55592f37f4ebf8f257ce5595d9c354016cdf0a47.
Aaron Schulz [Tue, 11 Dec 2012 07:48:59 +0000 (23:48 -0800)]
Fixed backwards return value in 55592f37f4ebf8f257ce5595d9c354016cdf0a47.

Change-Id: Ie6c80324c5a6c9f14bb7be076b38405012dc91af

11 years agoMerge "Remove the \ before the class name."
jenkins-bot [Tue, 11 Dec 2012 07:45:25 +0000 (07:45 +0000)]
Merge "Remove the \ before the class name."

11 years ago[JobQueue] Do not count claimed jobs in isEmpty().
Aaron Schulz [Tue, 11 Dec 2012 06:53:44 +0000 (22:53 -0800)]
[JobQueue] Do not count claimed jobs in isEmpty().

Change-Id: Ie5c14925c8d4797ada970de843091ead269e9ae5

11 years agoMerge "(bug 42604) fix faulty browser detection code for Opera"
jenkins-bot [Tue, 11 Dec 2012 03:09:10 +0000 (03:09 +0000)]
Merge "(bug 42604) fix faulty browser detection code for Opera"

11 years agoDeleting one last extension I left in master
Chad Horohoe [Tue, 11 Dec 2012 01:59:57 +0000 (20:59 -0500)]
Deleting one last extension I left in master

Change-Id: I18272893fcde9afb6b197078e4e22d7144c81c25

11 years agoRevert "Applied patches to new WMF 1.21wmf6 branch"
Chad Horohoe [Tue, 11 Dec 2012 01:57:34 +0000 (20:57 -0500)]
Revert "Applied patches to new WMF 1.21wmf6 branch"

This reverts commit b92b9b62c0c93d16c93541ea1cd5afa5d60eef52.

Change-Id: I4324813533ad984877b58d503aa0dc96010dbd50

11 years agoRevert "Commit of various live hacks"
Chad Horohoe [Tue, 11 Dec 2012 01:55:48 +0000 (20:55 -0500)]
Revert "Commit of various live hacks"

This reverts commit acddbc862afceead7cd3cce1dc1cc55c265e0ca1.

Change-Id: Iabf5f917938c347ca6ddc7a373c731f44f23363b

11 years agoUndoing more of my branching mistake, delete submodules from master
Chad Horohoe [Tue, 11 Dec 2012 01:50:27 +0000 (20:50 -0500)]
Undoing more of my branching mistake, delete submodules from master

Change-Id: I08fe85ebf7713bc3f783529ef532e3fdfa230bed

11 years agoMerge "StartProfiler.php shouldn't be under version control"
Reedy [Mon, 10 Dec 2012 23:53:39 +0000 (23:53 +0000)]
Merge "StartProfiler.php shouldn't be under version control"

11 years agoStartProfiler.php shouldn't be under version control
Reedy [Mon, 10 Dec 2012 23:52:41 +0000 (23:52 +0000)]
StartProfiler.php shouldn't be under version control

It's in .gitignore, and checkoutMediaWiki makes it

Change-Id: Id681a9ff875c15277ef27048f4ab7b91bde7a1b0

11 years agoMerge "ExternalStoreDB.php was moved to externalstore folder in c37937"
jenkins-bot [Mon, 10 Dec 2012 23:09:43 +0000 (23:09 +0000)]
Merge "ExternalStoreDB.php was moved to externalstore folder in c37937"

11 years agoRemove the \ before the class name.
Platonides [Fri, 7 Dec 2012 18:48:57 +0000 (19:48 +0100)]
Remove the \ before the class name.

Then 'stdclass' is preceded by T_NEW and taken as a class name.
Else it was misinterpreted as a function call.

Change-Id: Ib6afccb26e530a24bf7414ede10f573a9934d2ed

11 years agoExternalStoreDB.php was moved to externalstore folder in c37937
Platonides [Mon, 10 Dec 2012 22:55:27 +0000 (23:55 +0100)]
ExternalStoreDB.php was moved to externalstore folder in c37937

(revision cbc28d41ae)

Change-Id: I44c6c20de0a6066e035b76b3d6d62f242a175c15

11 years agoMerge "[Upload] Async upload code cleanups."
jenkins-bot [Mon, 10 Dec 2012 20:56:38 +0000 (20:56 +0000)]
Merge "[Upload] Async upload code cleanups."

11 years agoMoved ExternalStore stuff to a /externalstore subdir.
Aaron Schulz [Mon, 10 Dec 2012 20:43:35 +0000 (12:43 -0800)]
Moved ExternalStore stuff to a /externalstore subdir.

Change-Id: If631040d8242354734280403258ed5d51542728d

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

Change-Id: I47b8d6ee63edeadf81cca5e45e0c3124d498a4b1

11 years agoMerge "Remove fallback for PHP installs < v5.3.2 as that is now an install requiremen...
jenkins-bot [Mon, 10 Dec 2012 19:52:01 +0000 (19:52 +0000)]
Merge "Remove fallback for PHP installs < v5.3.2 as that is now an install requirement The native stream_resolve_include_path can now be used exclusively"

11 years agoUpdating Wikibase
Chad Horohoe [Mon, 10 Dec 2012 19:29:04 +0000 (14:29 -0500)]
Updating Wikibase

Change-Id: I1888e5b9810bc72d960d5a18c3e525ab338f992b

11 years agoAdd a test for braces in HTML attribute values, remove data-parsoid attributes
Gabriel Wicke [Mon, 10 Dec 2012 19:03:39 +0000 (11:03 -0800)]
Add a test for braces in HTML attribute values, remove data-parsoid attributes

* Disabled the test for the PHP parser as that entity-endocodes the opening
  brace for some reason.
* Removed all data-parsoid attributes, as we are mainly interested in the
  serialization / escaping of new HTML content in the parsoid-specific tests.
  Round-tripping with data-parsoid is already tested in regular wt2wt modes.

Change-Id: I6072a85b4dc03965a32ccf8ce03c6ddb8f4dc49c

11 years agoRemove fallback for PHP installs < v5.3.2 as that is now an install requirement
lwelling [Mon, 10 Dec 2012 18:40:01 +0000 (13:40 -0500)]
Remove fallback for PHP installs < v5.3.2 as that is now an install requirement
The native stream_resolve_include_path can now be used exclusively

Change-Id: I891fe9e08f5257614dbc966e725c9810423108a5

11 years agoApplied patches to new WMF 1.21wmf6 branch
Chad Horohoe [Mon, 10 Dec 2012 18:33:12 +0000 (13:33 -0500)]
Applied patches to new WMF 1.21wmf6 branch

11 years agoCommit of various live hacks
Reedy [Tue, 10 Apr 2012 18:27:59 +0000 (18:27 +0000)]
Commit of various live hacks

Disable of MessageBlobStore clear

Reset $wgAutopromote (should be moved to a config change!!)

Disable setting of wgStyleSheetPath

Disable squid updates in HTMLCacaheUpdate invalidateTitles

Throttle page_touched

Add apc htcp packet numbers to SquidUpdate

Disable set names binary/utf8

Commment out searchindex table indexes

Was c532e81d583d3d0439fe76eea4d105d675461b56

Original revision Change-Id I42c4f859e55eb198f6c6841e582b3552aad7b31f
https://gerrit.wikimedia.org/r/#/c/7606

Change-Id: I5ec8dd53188e9e4128f99ceaff38ebf9dcf570bb

11 years agoCreating new WMF 1.21wmf6 branch
Chad Horohoe [Mon, 10 Dec 2012 18:33:11 +0000 (13:33 -0500)]
Creating new WMF 1.21wmf6 branch

11 years agoMerge "(bug 29115) Add redirect target value on page info"
jenkins-bot [Mon, 10 Dec 2012 17:50:32 +0000 (17:50 +0000)]
Merge "(bug 29115) Add redirect target value on page info"

11 years agoMerge "(minor) use wfMemcKey when caching sites list."
jenkins-bot [Mon, 10 Dec 2012 17:42:49 +0000 (17:42 +0000)]
Merge "(minor) use wfMemcKey when caching sites list."

11 years agoFix spelling in nan date formats
Niklas Laxström [Sat, 15 Sep 2012 16:55:02 +0000 (16:55 +0000)]
Fix spelling in nan date formats

http://translatewiki.net/wiki/Thread:Portal_talk:Nan/Misspelt_word_in_date_format

Re-apply after overwrite by translation updated bot

Change-Id: Iec7678afbb4ccdaa43430891e35d58c740f107d5

11 years agoMerge "Less wild whitespace"
jenkins-bot [Mon, 10 Dec 2012 15:12:49 +0000 (15:12 +0000)]
Merge "Less wild whitespace"

11 years agoMerge "Fix incorrect documentation for Language::getFormattedNsText()"
jenkins-bot [Mon, 10 Dec 2012 14:51:25 +0000 (14:51 +0000)]
Merge "Fix incorrect documentation for Language::getFormattedNsText()"

11 years agoMerge "Fix check to see if element is there already."
Daniel Kinzler [Mon, 10 Dec 2012 14:10:08 +0000 (14:10 +0000)]
Merge "Fix check to see if element is there already."

11 years ago(minor) use wfMemcKey when caching sites list.
daniel [Thu, 6 Dec 2012 17:55:05 +0000 (18:55 +0100)]
(minor) use wfMemcKey when caching sites list.

Change-Id: I879b213a31809e9f01a7e86f50c87f04f187e635

11 years agoFix incorrect documentation for Language::getFormattedNsText()
Siebrand Mazeland [Mon, 10 Dec 2012 10:53:03 +0000 (11:53 +0100)]
Fix incorrect documentation for Language::getFormattedNsText()

Change-Id: I16e9deaa5c962f177dee83785ac5142d4681b75f

11 years agoMerge "Revert "(bug 24620) Add types to LogFormatter""
Reedy [Mon, 10 Dec 2012 01:25:48 +0000 (01:25 +0000)]
Merge "Revert "(bug 24620) Add types to LogFormatter""

11 years agoMerge "Revert "(bug 24620) Add tests for LogFormatter""
Reedy [Mon, 10 Dec 2012 01:25:40 +0000 (01:25 +0000)]
Merge "Revert "(bug 24620) Add tests for LogFormatter""

11 years agoRevert "(bug 24620) Add types to LogFormatter"
Siebrand [Mon, 10 Dec 2012 01:24:21 +0000 (01:24 +0000)]
Revert "(bug 24620) Add types to LogFormatter"

This breaks extensions because of changing protected methods to public (LogFormatter::getMessageParameters() in particular). We need a solid solution. The next 1.21-wmf is being branched tomorrow. Revert is the sanest solution at the moment.

This reverts commit 1c296faf58fe57328c97fff36a57b64c9b8fada7

11 years agoRevert "(bug 24620) Add tests for LogFormatter"
Siebrand [Mon, 10 Dec 2012 01:23:07 +0000 (01:23 +0000)]
Revert "(bug 24620) Add tests for LogFormatter"

As I6a56c204 breaks extensions because of changing protected methods to public, this has to be reverted. We need a solid solution and the next 1.21-wmf is being branched tomorrow. Revert is the sanest solution at the moment.

This reverts commit 888fe0ffb367e9714615e81f2890ec8314219125

11 years agoMerge "Use my full name in the credits"
jenkins-bot [Mon, 10 Dec 2012 00:56:12 +0000 (00:56 +0000)]
Merge "Use my full name in the credits"

11 years agoMerge "test: raise timeout on structure test"
jenkins-bot [Mon, 10 Dec 2012 00:37:49 +0000 (00:37 +0000)]
Merge "test: raise timeout on structure test"

11 years agotest: raise timeout on structure test
Antoine Musso [Mon, 10 Dec 2012 00:27:39 +0000 (01:27 +0100)]
test: raise timeout on structure test

The test testUnitTestFileNamesEndWithTest() does some file I/O which is
kind of slow.

Change-Id: I6792708bda755638e6b98c514f2c015ed094671f

11 years agoUse my full name in the credits
Alex Monk [Mon, 10 Dec 2012 00:02:07 +0000 (00:02 +0000)]
Use my full name in the credits

Change-Id: I3c366bc5ad98d47849556008f8204123a4356dac

11 years ago(bug 24620) Add tests for LogFormatter
jan [Wed, 31 Oct 2012 19:24:47 +0000 (20:24 +0100)]
(bug 24620) Add tests for LogFormatter

This change adds tests for LogFormatter. Tested are the normal log
params, the log params with type and the output of the comment.

Change-Id: I7218a1738c97db1d888605cecdfbffe21ca00fbf

11 years agoMerge "ORM: pass some __METHOD__ to database functions"
jenkins-bot [Sun, 9 Dec 2012 23:57:32 +0000 (23:57 +0000)]
Merge "ORM: pass some __METHOD__ to database functions"

11 years ago(bug 24620) Add types to LogFormatter
jan [Mon, 22 Oct 2012 09:00:15 +0000 (11:00 +0200)]
(bug 24620) Add types to LogFormatter

This change adds types to LogFormatter like "msg" so log values
(paramaters for the log message) can be formated as e.g. a message in
user or content language.

If you want to add another type feel free to suggest it in your review.

Change-Id: I6a56c2041bcbce292cff485e706db02305aab01c

11 years agoMerge "(Bug 38439) Attempt on fixing the suicidal LangObjCache"
Siebrand [Sun, 9 Dec 2012 23:42:34 +0000 (23:42 +0000)]
Merge "(Bug 38439) Attempt on fixing the suicidal LangObjCache"

11 years agoMerge "Genderize Special:Preferences"
jenkins-bot [Sun, 9 Dec 2012 23:28:47 +0000 (23:28 +0000)]
Merge "Genderize Special:Preferences"

11 years agoLocalisation updates from http://translatewiki.net.
Translation updater bot [Sun, 9 Dec 2012 20:06:59 +0000 (20:06 +0000)]
Localisation updates from translatewiki.net.

Change-Id: Id7a882a6e7c4915b47594fdcb3afaada84e2f2a6

11 years agoMerge "Set wgWellFormedXml for LinkerTest::testUserLink"
jenkins-bot [Sun, 9 Dec 2012 19:54:08 +0000 (19:54 +0000)]
Merge "Set wgWellFormedXml for LinkerTest::testUserLink"

11 years ago(bug 29115) Add redirect target value on page info
umherirrender [Fri, 30 Nov 2012 10:55:42 +0000 (11:55 +0100)]
(bug 29115) Add redirect target value on page info

Added inprop=redirecttarget

Refactored ApiPageSet::getRedirectTargets to having one method for
resolving redirect targets and calling that from prop=info.

Change-Id: Ia5fb9f25488880c2dd63e613c913a0864464d327

11 years ago(bug 42604) fix faulty browser detection code for Opera
MatmaRex [Sat, 1 Dec 2012 13:34:29 +0000 (14:34 +0100)]
(bug 42604) fix faulty browser detection code for Opera

Opera's `navigator.userAgent` might not include the "Version/major.minor"
part, causing the code relying on it being present to blow up. This patch
fixes the issue.

Also added tests for Opera.

Change-Id: I9ceb7517e00042366e45cf13aa89262ed19709c0

11 years agoMerge "Set wgHtml5/wgWellFormedXml for XmlTests"
jenkins-bot [Sun, 9 Dec 2012 16:35:19 +0000 (16:35 +0000)]
Merge "Set wgHtml5/wgWellFormedXml for XmlTests"

11 years agoORM: pass some __METHOD__ to database functions
umherirrender [Fri, 23 Nov 2012 14:29:46 +0000 (15:29 +0100)]
ORM: pass some __METHOD__ to database functions

Change-Id: Ic76f88fe682118a097964e4011678ef4ad69113b

11 years agoSet wgWellFormedXml for LinkerTest::testUserLink
umherirrender [Sun, 9 Dec 2012 10:56:45 +0000 (11:56 +0100)]
Set wgWellFormedXml for LinkerTest::testUserLink

Change-Id: I9ab370e2f23e0134741680ff620e8bb552496868

11 years agoSet wgHtml5/wgWellFormedXml for XmlTests
umherirrender [Sun, 9 Dec 2012 10:47:03 +0000 (11:47 +0100)]
Set wgHtml5/wgWellFormedXml for XmlTests

Change-Id: I3cab843bad9461098cf3c6b574fb767c3267ab14

11 years agoFix SanitizerTest for wikis with wgUseTidy = true;
umherirrender [Sun, 9 Dec 2012 10:03:03 +0000 (11:03 +0100)]
Fix SanitizerTest for wikis with wgUseTidy = true;

testRemovehtmltagsOnHtml5Tags needs wgUseTidy = false;

3) SanitizerTest::testRemovehtmltagsOnHtml5Tags with data set #2
('time', false)

Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'<time></time>
-'
+'<time>'

Change-Id: Ib7e156293e2efae053b055e40393e442719eb5bd

11 years agoMerge "ParserOutput::addLanguageLink needs a string"
IAlex [Sun, 9 Dec 2012 09:52:05 +0000 (09:52 +0000)]
Merge "ParserOutput::addLanguageLink needs a string"

11 years agoMerge "Tidy up some unbalanced returns in methods"
IAlex [Sun, 9 Dec 2012 09:48:40 +0000 (09:48 +0000)]
Merge "Tidy up some unbalanced returns in methods"

11 years agoMerge "Remove static method from interface"
IAlex [Sun, 9 Dec 2012 09:39:12 +0000 (09:39 +0000)]
Merge "Remove static method from interface"

11 years agoMerge "Adding missing @group Database to unit tests"
IAlex [Sun, 9 Dec 2012 09:37:32 +0000 (09:37 +0000)]
Merge "Adding missing @group Database to unit tests"

11 years agoMerge "Remove unreachable lines"
jenkins-bot [Sun, 9 Dec 2012 09:30:10 +0000 (09:30 +0000)]
Merge "Remove unreachable lines"

11 years agoAdding missing @group Database to unit tests
umherirrender [Sun, 9 Dec 2012 09:27:56 +0000 (10:27 +0100)]
Adding missing @group Database to unit tests

Reasons:
* Signature parsing
* GenderCache
* Using TestUser class (inside ApiTestCase)

Change-Id: Iea4e9f9cafaa3afe7da8b922644061d3d575afe3

11 years agoMerge "[JobQueue] Make doIsEmpty return bool in all cases."
jenkins-bot [Sun, 9 Dec 2012 09:25:33 +0000 (09:25 +0000)]
Merge "[JobQueue] Make doIsEmpty return bool in all cases."

11 years ago[JobQueue] Make doIsEmpty return bool in all cases.
Reedy [Sun, 9 Dec 2012 02:40:33 +0000 (02:40 +0000)]
[JobQueue] Make doIsEmpty return bool in all cases.

Change-Id: Ic42f426ef3d13bd0726955fe29b7e7c3d0cae152

11 years agoMerge "Add numerous missing @throws to method documentation"
IAlex [Sun, 9 Dec 2012 07:52:43 +0000 (07:52 +0000)]
Merge "Add numerous missing @throws to method documentation"

11 years agoMerge "Fixup a couple of uses of return values of functions that return void"
IAlex [Sun, 9 Dec 2012 07:44:43 +0000 (07:44 +0000)]
Merge "Fixup a couple of uses of return values of functions that return void"

11 years agoFixup a couple of uses of return values of functions that return void
Reedy [Sun, 9 Dec 2012 03:16:14 +0000 (03:16 +0000)]
Fixup a couple of uses of return values of functions that return void

Change-Id: I7c8f08c5b436cb3209fd98b9479a50abe223cccc

11 years agoAdd numerous missing @throws to method documentation
Reedy [Sun, 9 Dec 2012 03:09:48 +0000 (03:09 +0000)]
Add numerous missing @throws to method documentation

Change-Id: Iba868e82a75fef7c7d011bc5be192bf059d037c0

11 years agoTidy up some unbalanced returns in methods
Reedy [Sun, 9 Dec 2012 02:59:04 +0000 (02:59 +0000)]
Tidy up some unbalanced returns in methods

Leave a TODO

Change-Id: Ic49ac8630650b341aafb3c17abd22f3a07805d27

11 years agoRemove unreachable lines
Reedy [Sun, 9 Dec 2012 02:37:10 +0000 (02:37 +0000)]
Remove unreachable lines

Change-Id: Ie7ec14f4ce65bc87b0cd49ec9266c394770ee7c4

11 years agoMove insertUpdateRow call before return applyPatch to make it reachable
Reedy [Sun, 9 Dec 2012 02:33:51 +0000 (02:33 +0000)]
Move insertUpdateRow call before return applyPatch to make it reachable

This might not be quite right... We might want to cache the result of apply patch, insert the row and then return the result...

Change-Id: Ie6a1bb16d2912ad43aa8fd45b2bf10a8bf8652ae

11 years agoFix condition for the entries with a null model.
daniel [Sat, 8 Dec 2012 21:09:30 +0000 (22:09 +0100)]
Fix condition for the entries with a null model.

A null model means ‘guess from page name’.

Change-Id: I63e80761e46cc7707e9c862e2e50a950c1766aa4

11 years agoThe error message should refer to $wgContentHandlerUseDB
Platonides [Sat, 8 Dec 2012 21:04:50 +0000 (22:04 +0100)]
The error message should refer to $wgContentHandlerUseDB

Change-Id: I81bc50e6949cecdc7f3d7e0b89f54464b4a146c7

11 years agoMerge "Remove broken test."
jenkins-bot [Sat, 8 Dec 2012 18:54:01 +0000 (18:54 +0000)]
Merge "Remove broken test."

11 years agoRemove broken test.
jeroendedauw [Fri, 7 Dec 2012 18:42:13 +0000 (19:42 +0100)]
Remove broken test.

Calling the method does not raise an exception but a notice (depending on settings).
PHPUnit just happens to turn this into an exception. The test thus breaks if PHPUnit
does not do this, which apparently happens in some cases and caused bug 41491

Change-Id: I9d14fd875c70c8b3d164c0b8a4fa2667c5769682

11 years agoFix check to see if element is there already.
jeroendedauw [Sat, 8 Dec 2012 18:13:44 +0000 (19:13 +0100)]
Fix check to see if element is there already.

PHP docs disagree with reality when it comes to return type of offsetGet, so switching to offsetExists.

Issue spotted by Brad Jorsch

Change-Id: I4ce1651d4ed681ab55cf297090ee963b64584bbf

11 years agoMerge "prefix debug log when they end up in the main log"
IAlex [Sat, 8 Dec 2012 15:08:46 +0000 (15:08 +0000)]
Merge "prefix debug log when they end up in the main log"

11 years agoMerge "(bug 38897) Fix unhandled exception when visiting e.g. MediaWiki:Somemessage/0"
IAlex [Sat, 8 Dec 2012 14:44:43 +0000 (14:44 +0000)]
Merge "(bug 38897) Fix unhandled exception when visiting e.g. MediaWiki:Somemessage/0"

11 years agoMerge "Replace deprecated Title::userIsWatching()"
IAlex [Sat, 8 Dec 2012 14:40:55 +0000 (14:40 +0000)]
Merge "Replace deprecated Title::userIsWatching()"

11 years agoMerge "worthwhile tests in testTitleObjectStringConversion"
IAlex [Sat, 8 Dec 2012 14:37:31 +0000 (14:37 +0000)]
Merge "worthwhile tests in testTitleObjectStringConversion"

11 years agoMerge "Memory setting for djvutext is now a constant"
IAlex [Sat, 8 Dec 2012 14:20:27 +0000 (14:20 +0000)]
Merge "Memory setting for djvutext is now a constant"

11 years agoMerge "Use MWNamespace method instead of binary arithmetic"
IAlex [Sat, 8 Dec 2012 14:13:04 +0000 (14:13 +0000)]
Merge "Use MWNamespace method instead of binary arithmetic"

11 years agoMerge "Allow SQL queries with long field list to wrap"
jenkins-bot [Sat, 8 Dec 2012 13:54:26 +0000 (13:54 +0000)]
Merge "Allow SQL queries with long field list to wrap"

11 years agoMerge "mediawiki.Uri.test: Clean up"
jenkins-bot [Sat, 8 Dec 2012 13:16:31 +0000 (13:16 +0000)]
Merge "mediawiki.Uri.test: Clean up"

11 years agoMerge "(bug 40585) Don't drop 'step="any"' in HTML input fields."
jenkins-bot [Sat, 8 Dec 2012 12:47:07 +0000 (12:47 +0000)]
Merge "(bug 40585) Don't drop 'step="any"' in HTML input fields."

11 years agoAllow SQL queries with long field list to wrap
Niklas Laxström [Sat, 8 Dec 2012 12:12:34 +0000 (12:12 +0000)]
Allow SQL queries with long field list to wrap

Change-Id: I7ed64a246455a7f2c48e7e120d45d1ebeb929584

11 years agoUse MWNamespace method instead of binary arithmetic
umherirrender [Sat, 8 Dec 2012 11:09:15 +0000 (12:09 +0100)]
Use MWNamespace method instead of binary arithmetic

"& ~1" or "| 1" are not easy to read

Change-Id: I08ff92669d32f3663ea58e98d8c49f0a54dfeca4

11 years agoMemory setting for djvutext is now a constant
Dereckson [Fri, 7 Dec 2012 21:00:41 +0000 (22:00 +0100)]
Memory setting for djvutext is now a constant

This is a follow-up for change Ia735e1b7.
See also bug 42466.

Change-Id: I67d8ae9000713c349c7506e9a77d350c89992400

11 years agoMerge "Adding fragment support to SpecialPage::getTitleFor()"
Bsitu [Fri, 7 Dec 2012 22:40:26 +0000 (22:40 +0000)]
Merge "Adding fragment support to SpecialPage::getTitleFor()"

11 years ago[Upload] Async upload code cleanups.
Aaron Schulz [Fri, 7 Dec 2012 20:08:04 +0000 (12:08 -0800)]
[Upload] Async upload code cleanups.

* Make sure the failure is written to the session on error.
* Added some wfDebug calls to the script.

Change-Id: I772f1822401f22b49662d8091164c8b47dffdbb0

11 years agomediawiki.Uri.test: Clean up
Timo Tijhof [Sun, 2 Dec 2012 04:23:08 +0000 (05:23 +0100)]
mediawiki.Uri.test: Clean up

* Grouped assertions together by logical test unit (method names).
* Re-ordered (constructor, properties, methods, special cases).

Change-Id: Ia8de947278cdf469859062af47e1333c7a9f827b