lhc/web/wiklou.git
13 years agoChanged some magic __get method calls to accessors, were throwing notices
Alexandre Emsenhuber [Sun, 12 Jun 2011 19:09:14 +0000 (19:09 +0000)]
Changed some magic __get method calls to accessors, were throwing notices

13 years agoMoved action=deletetrackback and action=markpatrolled to Action class.
Alexandre Emsenhuber [Sun, 12 Jun 2011 18:46:07 +0000 (18:46 +0000)]
Moved action=deletetrackback and action=markpatrolled to Action class.
Also fixed order in DefaultSettings.php

13 years agosafer check if mhash is available (and I'm about to make it unavailable by disabling...
Ariel Glenn [Sun, 12 Jun 2011 12:02:53 +0000 (12:02 +0000)]
safer check if mhash is available (and I'm about to make it unavailable by disabling the fn in the php.ini for lucid builds)

13 years agoUpdate Chinese conversion tables.
Philip Tzou [Sun, 12 Jun 2011 08:02:04 +0000 (08:02 +0000)]
Update Chinese conversion tables.

13 years agoRemove resize/arrow cursors from jquery.makeCollapsible
Krinkle [Sun, 12 Jun 2011 00:17:02 +0000 (00:17 +0000)]
Remove resize/arrow cursors from jquery.makeCollapsible
* In Safari they look nice (a visual clue which direction we're heading on-click) but on other browsers there is only a general arrow-icon that points both up and down, and other browsers have an even weirder cursor for this. Summarized: It's inconsistent and redundant with the text-label we already have.

(Poke r79083 CR)

13 years agoRemove $wgCheckCopyrightUpload from DefaultSettings.php since the feature was removed...
Brian Wolff [Sat, 11 Jun 2011 21:10:26 +0000 (21:10 +0000)]
Remove $wgCheckCopyrightUpload from DefaultSettings.php since the feature was removed about 5 years ago

Looks like the feature was partially removed back in r10168. In any case, its long gone out of trunk now.

13 years agosqlite.php: don't fail after --check-syntax on a non-SQLite DB
Max Semenik [Sat, 11 Jun 2011 18:45:56 +0000 (18:45 +0000)]
sqlite.php: don't fail after --check-syntax on a non-SQLite DB

13 years agoFix jquery.tabIndex even more.
Krinkle [Sat, 11 Jun 2011 10:56:54 +0000 (10:56 +0000)]
Fix jquery.tabIndex even more.
* Discovered through TestSwarm. Aside from IE6/IE7, which already needed extra checking, when IE6/IE7 is on Windows NT 5.2, it can also return NaN.

13 years agomediawiki.util.test.js: IE7 doesn't expose the CSSStyleSheet publicly (like it doesn...
Krinkle [Sat, 11 Jun 2011 10:37:39 +0000 (10:37 +0000)]
mediawiki.util.test.js: IE7 doesn't expose the CSSStyleSheet publicly (like it doesn't for many). Checking object type instead.

13 years agoAnd I forgot to commit this file in r89874
Alexandre Emsenhuber [Sat, 11 Jun 2011 08:40:35 +0000 (08:40 +0000)]
And I forgot to commit this file in r89874

13 years ago* Made Special:RevisionDelete use the local variables stored in the RequestContext...
Alexandre Emsenhuber [Sat, 11 Jun 2011 08:30:19 +0000 (08:30 +0000)]
* Made Special:RevisionDelete use the local variables stored in the RequestContext object instead of global ones and removed the $skin member
* Also updated classes in includes/revisiondelete that were using the $skin member of Special:RevisionDelete
* Handle action=revisiondelete (or rather action=historysubmit&revisiondelete=1) with an Action object that sets the RequestContext object of the SpecialPage object, and in this case get the target Title object through the context instead of $wgTitle

13 years agoRemoved usage of error suppression operator, also removed function_exists() check...
Alexandre Emsenhuber [Sat, 11 Jun 2011 08:03:59 +0000 (08:03 +0000)]
Removed usage of error suppression operator, also removed function_exists() check for timezone_open() since we now require PHP 5.2.3

13 years agoMoved part of action handling functions near other ones
Alexandre Emsenhuber [Sat, 11 Jun 2011 07:43:40 +0000 (07:43 +0000)]
Moved part of action handling functions near other ones

13 years agoFollowup r88873, remove setting of $wgEnableCreativeCommonsRdf in LocalSettingsGenerator
Sam Reed [Sat, 11 Jun 2011 07:33:35 +0000 (07:33 +0000)]
Followup r88873, remove setting of $wgEnableCreativeCommonsRdf in LocalSettingsGenerator

13 years agoChanged more magic __get method calls to accessors, were throwing notices
Alexandre Emsenhuber [Sat, 11 Jun 2011 07:02:34 +0000 (07:02 +0000)]
Changed more magic __get method calls to accessors, were throwing notices

13 years agoRELEASE-NOTES for r89866
Krinkle [Sat, 11 Jun 2011 00:28:20 +0000 (00:28 +0000)]
RELEASE-NOTES for r89866

13 years agoUpgrade jQuery from 1.4.4 to 1.6.1
Krinkle [Sat, 11 Jun 2011 00:25:55 +0000 (00:25 +0000)]
Upgrade jQuery from 1.4.4 to 1.6.1

Poke r88725, r88607, bug 28904;

13 years agoFollow-up r89853: Documentation for completenesstest + minor fixes/whitespace
Krinkle [Sat, 11 Jun 2011 00:24:36 +0000 (00:24 +0000)]
Follow-up r89853: Documentation for completenesstest + minor fixes/whitespace

13 years agoAdd missing language name
Robin Pepermans [Sat, 11 Jun 2011 00:02:22 +0000 (00:02 +0000)]
Add missing language name

13 years agoFollow-up to r75241 / 75241: rename LanguageBat_smg to LanguageSgs
Robin Pepermans [Fri, 10 Jun 2011 22:33:49 +0000 (22:33 +0000)]
Follow-up to r75241 / 75241: rename LanguageBat_smg to LanguageSgs

13 years agoFix for r89821, r89839: we can skip certain tests if the web user is the same as...
Tim Starling [Fri, 10 Jun 2011 22:33:16 +0000 (22:33 +0000)]
Fix for r89821, r89839: we can skip certain tests if the web user is the same as the install user.

13 years agoAdded jquery.qunit.completenessTest.js (A jQuery/QUnit test coverage utility)
Krinkle [Fri, 10 Jun 2011 22:15:14 +0000 (22:15 +0000)]
Added jquery.qunit.completenessTest.js (A jQuery/QUnit test coverage utility)
* Added to /resources
* Conditionally loaded (condition being that the url parameter "completenesstest" has a truthy value)
* Fixed a test that was using === and true
* Setting an added method somewhere back to undefined so it won't be listed as a potential "missing test".

13 years agoFollow-up r89835: Accidently comitted from a deeper dir than the diff. Comitting...
Krinkle [Fri, 10 Jun 2011 20:16:42 +0000 (20:16 +0000)]
Follow-up r89835: Accidently comitted from a deeper dir than the diff. Comitting the rest now

13 years agoFollow-up: r89845: Forgot to commit changes in the other directory
Krinkle [Fri, 10 Jun 2011 20:08:19 +0000 (20:08 +0000)]
Follow-up: r89845: Forgot to commit changes in the other directory

13 years agoReview of unit test suites
Krinkle [Fri, 10 Jun 2011 19:55:40 +0000 (19:55 +0000)]
Review of unit test suites
* There's more than ok(), equal() and deepEqual(). Using the others as appropriate.
** Considered: strictEqual(a,b) tests the same as ok(a===b). But the latter doesn't include the values in the report when it fails. So strictEqual saves a lot of time in debugging (especially on TestSwarm where the report is all you have, there "not okay" or "Expected { foo: 500 }, Given: ['bar', '250']" is a big saver.
* Adding an "expect" to every test.
* Applying whitespace conventions and bringing consistency in the use of mw, mediaWiki, $, $j, jQuery. (except in the initial test where the aliases are being checked)
* Added cleanup for added CSSStyleSheet
* Making IPtest more complete (Based on IPTest.php)

13 years agoMake Pg installer work in the “common” case: follow up r89821 so that $exists can...
Mark A. Hershberger [Fri, 10 Jun 2011 18:48:16 +0000 (18:48 +0000)]
Make Pg installer work in the “common” case: follow up r89821 so that $exists can be set true if same user is the same for install and web.

13 years ago[Installer] .mw-help-hint and #config-live-log
Krinkle [Fri, 10 Jun 2011 17:09:15 +0000 (17:09 +0000)]
[Installer] .mw-help-hint and #config-live-log
* Merged padding rules into one
* Fixed the width issues of the textarea (see also r87975)

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 10 Jun 2011 16:48:37 +0000 (16:48 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-06-10 16:40:00 UTC)

13 years agoSimplify link construction a bit.
Raimond Spekking [Fri, 10 Jun 2011 16:48:15 +0000 (16:48 +0000)]
Simplify link construction a bit.

13 years agoPostgreSQL install fixes:
Tim Starling [Fri, 10 Jun 2011 11:32:57 +0000 (11:32 +0000)]
PostgreSQL install fixes:
* Made PG throw a DBQueryError when it gets a query error, instead of DBUnexpectedError. Apparently this mistake goes back to r14625, when exceptions were first introduced. Did it by removing reportQueryError(), the DatabaseBase version works fine.
* Fixed several places where there was an attempt to check for a query error by checking if the result of query() was false. This never worked. Used try/catch instead.
* Made the DBConnectionError messages go on one line so that they don't mess up the formatting in the installer.
* In DatabasePostgres::selectDB(), only disconnect and reconnect if the DB name is actually changing.
* Made DatabasePostgres::schemaExists() less weird and scary.
* Added DatabasePostgres::roleExists() for use by the installer.
* Removed the PostgreSQL-specific hack to make _InstallUser have a default other than "root". Made _InstallUser into a proper DBMS-specific internal variable instead, since every DBMS we support so far needs a different default.
* Removed the $dbName parameters from openConnection/getConnection, and got rid of $this->useAdmin. Implemented a more sophisticated caching scheme instead. Partial revert of r89389 and r81440.
* When connecting as the install user before DB creation, and when testing the web user's credentials, try a few different database names and use whichever one works.
* Instead of connecting as the web user to create tables, I used SET ROLE. It seems cleaner and more like what the other DBMSes do during installation. "SET ROLE wikiuser" requires the same privileges as "CREATE SCHEMA ... AUTHORIZATION wikiuser", so it's unlikely to break anything.
* In the area of web account creation, fixed various minor logic errors and introduced more informative error messages at the submit stage, pre-install. Show a helpful error message if the web user exists already and the install user can't do the relevant SET ROLE.
* Split schema creation out to a separate install step.
* When creating an account as a non-superuser, add the administrative account to the new account's group. This is necessary to avoid a fatal error during installation (bug 28845).
* Removed code which alters an existing web user to have appropriate search paths and permissions. This may break other apps and is not necessary. As in other DBMSes, If the web user exists, it is the responsibility of the sysadmin to ensure that it has appropriate permissions.
* Rewrote setupPLpgSQL() to use the query builder functions.

13 years agoFixed typo in comment.
Tim Starling [Fri, 10 Jun 2011 11:32:28 +0000 (11:32 +0000)]
Fixed typo in comment.

13 years agoFix for r86741 which broke PG update due to the math table disappearing
Tim Starling [Fri, 10 Jun 2011 08:03:35 +0000 (08:03 +0000)]
Fix for r86741 which broke PG update due to the math table disappearing

13 years agoFix for logic error in r89529 causing a notice.
Tim Starling [Fri, 10 Jun 2011 07:48:21 +0000 (07:48 +0000)]
Fix for logic error in r89529 causing a notice.

13 years agoReverted r89393. A single Database object certainly should not be attempting to manag...
Tim Starling [Fri, 10 Jun 2011 07:36:22 +0000 (07:36 +0000)]
Reverted r89393. A single Database object certainly should not be attempting to manage multiple database connections, that is the job of LBFactory/LoadBalancer. I would like to see $wgSharedDB managed by LBFactory instead, for all DBMSes. Then the cruft in Database::tableName() can be removed.

r89393 caused tableExists() etc. to be completely broken, so PostgreSQL upgrade was broken too, see CR.

13 years ago(bug 29332) don't let install progress if user requests mediawiki-announce subscripti...
Chad Horohoe [Fri, 10 Jun 2011 03:27:37 +0000 (03:27 +0000)]
(bug 29332) don't let install progress if user requests mediawiki-announce subscription but does not enter email. Thanks Sumana :)

13 years agoSelf revert r89797: At least the block log link is wrong. I should not commit when...
Raimond Spekking [Thu, 9 Jun 2011 21:31:51 +0000 (21:31 +0000)]
Self revert r89797: At least the block log link is wrong. I should not commit when bed calls me :/

13 years agor89767 didn't please overlords
Niklas Laxström [Thu, 9 Jun 2011 21:25:41 +0000 (21:25 +0000)]
r89767 didn't please overlords

13 years agoSimplify link construction a bit.
Raimond Spekking [Thu, 9 Jun 2011 21:22:00 +0000 (21:22 +0000)]
Simplify link construction a bit.

13 years agoMarked Article::doRedirect() as deprecated, was used by Article::insertNewArticle...
Alexandre Emsenhuber [Thu, 9 Jun 2011 21:17:41 +0000 (21:17 +0000)]
Marked Article::doRedirect() as deprecated, was used by Article::insertNewArticle() and Article::updateArticle() that were removed. No usage left in core or extensions.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 9 Jun 2011 20:58:25 +0000 (20:58 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-06-09 20:44:00 UTC)

13 years agoRecommit SpecialPage.php and SpecialPageFactory.php parts of r89406 (removal of magic...
Alexandre Emsenhuber [Thu, 9 Jun 2011 20:00:40 +0000 (20:00 +0000)]
Recommit SpecialPage.php and SpecialPageFactory.php parts of r89406 (removal of magic __get() accessor for RequestContext)

13 years agoChange whitespace so it is easier to read.
Platonides [Thu, 9 Jun 2011 19:58:30 +0000 (19:58 +0000)]
Change whitespace so it is easier to read.

13 years agoIf this was ever passed an empty string it would spit "PHP Notice: Uninitialized...
Platonides [Thu, 9 Jun 2011 19:57:10 +0000 (19:57 +0000)]
If this was ever passed an empty string it would spit "PHP Notice:  Uninitialized string offset: 0..."

13 years agoRemoved some usage of error suppression operator
Alexandre Emsenhuber [Thu, 9 Jun 2011 19:52:07 +0000 (19:52 +0000)]
Removed some usage of error suppression operator

13 years agoMFT r89770
Mark A. Hershberger [Thu, 9 Jun 2011 15:42:23 +0000 (15:42 +0000)]
MFT r89770

13 years agoAttempt at fixing the issue raised in r82948.
Niklas Laxström [Thu, 9 Jun 2011 10:43:55 +0000 (10:43 +0000)]
Attempt at fixing the issue raised in r82948.

13 years ago* merge r89759 from REL1_17 into trunk
Jure Kajzer [Thu, 9 Jun 2011 08:43:53 +0000 (08:43 +0000)]
* merge r89759 from REL1_17 into trunk
* changed addQuotes expected result for addQuotes in DatabaseTest

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 8 Jun 2011 21:24:03 +0000 (21:24 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-06-08 20:51:00 UTC)

13 years agofollowup r88946 to add $1 to message
Mark A. Hershberger [Wed, 8 Jun 2011 20:31:03 +0000 (20:31 +0000)]
followup r88946 to add $1 to message

13 years agoW/S fixups
Mark A. Hershberger [Wed, 8 Jun 2011 20:28:33 +0000 (20:28 +0000)]
W/S fixups

13 years agoRevert r89374, r88936 backports.
Mark A. Hershberger [Wed, 8 Jun 2011 20:04:45 +0000 (20:04 +0000)]
Revert r89374, r88936 backports.

13 years ago* fixed regex to work
Alexandre Emsenhuber [Wed, 8 Jun 2011 17:43:25 +0000 (17:43 +0000)]
* fixed regex to work
* added missing directories

13 years agoLocalization update for he.
Rotem Liss [Wed, 8 Jun 2011 13:25:24 +0000 (13:25 +0000)]
Localization update for he.

13 years agoRevert r87145, bug 28752: Xcache doesn't work in cli mode. As pointed out on CR,...
Chad Horohoe [Wed, 8 Jun 2011 00:53:56 +0000 (00:53 +0000)]
Revert r87145, bug 28752: Xcache doesn't work in cli mode. As pointed out on CR, this didn't fix it, it just hid the issue.

13 years agoRevert r87173: adds 'wrap: break-word' which seems opposite to what pre blocks are...
Brion Vibber [Tue, 7 Jun 2011 23:55:10 +0000 (23:55 +0000)]
Revert r87173: adds 'wrap: break-word' which seems opposite to what pre blocks are meant to do.

13 years agoFollow up r89707. No need for the explicit concatenations.
Platonides [Tue, 7 Jun 2011 22:33:41 +0000 (22:33 +0000)]
Follow up r89707. No need for the explicit concatenations.

13 years agoquick fix for bug28983 . Do not use $path in the loop. Even the remaining $e is dange...
Thomas Gries [Tue, 7 Jun 2011 22:30:06 +0000 (22:30 +0000)]
quick fix for bug28983 . Do not use $path in the loop. Even the remaining $e is dangerous subject to change from the require-once-loaded extensions. This is NOT A FINAL fix, just a small improvement

13 years agoReinstate r79122 (fix for bug 14404), reverting r83868. The real bug seem to have...
Platonides [Tue, 7 Jun 2011 22:28:57 +0000 (22:28 +0000)]
Reinstate r79122 (fix for bug 14404), reverting r83868. The real bug seem to have been r86131, fixed in r88902 (1.17) and  r88902 (1.18).
This is not merged with the r86131 change to Article::getParserOptions() since I don't see the point for the new function yet.
Reenabled its test ArticleTablesTest which was disabled in r85618

13 years agoFix (bug 29307) Line-height in <pre> is too narrow, edges overlap in some environments
Krinkle [Tue, 7 Jun 2011 21:39:48 +0000 (21:39 +0000)]
Fix (bug 29307) Line-height in <pre> is too narrow, edges overlap in some environments

13 years agoKill the extra indenting, and fix trailing whitespace
Sam Reed [Tue, 7 Jun 2011 21:30:02 +0000 (21:30 +0000)]
Kill the extra indenting, and fix trailing whitespace

13 years agoRevert r87292
Sam Reed [Tue, 7 Jun 2011 21:28:47 +0000 (21:28 +0000)]
Revert r87292

13 years agoFollow up r85410 & r89688. Try to make clearer that this is a message key.
Platonides [Tue, 7 Jun 2011 21:20:07 +0000 (21:20 +0000)]
Follow up r85410 & r89688. Try to make clearer that this is a message key.

13 years agoDoc fix for r85410
Chad Horohoe [Tue, 7 Jun 2011 20:56:21 +0000 (20:56 +0000)]
Doc fix for r85410

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 7 Jun 2011 20:55:30 +0000 (20:55 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-06-07 20:35:00 UTC)

13 years agoFollowup to r86061: add parser test case to confirm that '&apos' in wikitext doesn...
Brion Vibber [Tue, 7 Jun 2011 20:11:24 +0000 (20:11 +0000)]
Followup to r86061: add parser test case to confirm that '&apos' in wikitext doesn't make it to output.

'&apos;' is not defined in HTML 4, and some browsers (for instance IE at least through 8) do not support it.
It is however part of XML 1 (and thus XHTML 1), and is also defined in HTML 5 provisional, so it's fine to accept it.

Normalization seems to already handle turning the &apos; named char reference into &#39; so we don't have any compatibility worries.

Also added a comment on the def in Sanitizer that it shouldn't be used in output.

13 years agoremove useless type hint (fu r85004)
Antoine Musso [Tue, 7 Jun 2011 19:58:10 +0000 (19:58 +0000)]
remove useless type hint (fu r85004)

13 years agoForgot to press save on the comment
Chad Horohoe [Tue, 7 Jun 2011 18:51:03 +0000 (18:51 +0000)]
Forgot to press save on the comment

13 years agoFollowup r87347, bug 22227, use makeTitleSafe.
Chad Horohoe [Tue, 7 Jun 2011 18:50:21 +0000 (18:50 +0000)]
Followup r87347, bug 22227, use makeTitleSafe.

13 years agoFix (Api)BlockTest for Sqlite. getRangeStart()/getRangeEnd() were returning null...
Chad Horohoe [Tue, 7 Jun 2011 18:13:21 +0000 (18:13 +0000)]
Fix (Api)BlockTest for Sqlite. getRangeStart()/getRangeEnd() were returning null for user blocks, which was then happily inserted into a NOT NULL column. The IGNORE was just masking the real error. Thanks Brion and MaxSem. Oh, and ping r84475

13 years agoAdded phpunit test cases for r87497, r88076: ResourceLoader module name prefix collapsing
Brion Vibber [Tue, 7 Jun 2011 17:56:40 +0000 (17:56 +0000)]
Added phpunit test cases for r87497, r88076: ResourceLoader module name prefix collapsing

13 years agoProvisional revert of r89648: "Another try at fixing bug 93 "tilde signatures inside...
Brion Vibber [Tue, 7 Jun 2011 17:34:20 +0000 (17:34 +0000)]
Provisional revert of r89648: "Another try at fixing bug 93 "tilde signatures inside nowiki tags sometimes get expanded (<includeonly><nowiki>~~~~</nowiki></includeonly>)""

This seems to disable PST for <includeonly>...</includeonly> in addition to the <includeonly><nowiki>...</nowiki></includeonly> that the bug is about.
This was caught by a parser test case, but the test case was changed to match... seems like the wrong change?

Also failed to update Preprocessor_HipHop.hphp to match the other two preprocessor classes.

13 years agoGet rid of addNewExtension()/getNewExtensions() method of adding new extensions ...
Chad Horohoe [Tue, 7 Jun 2011 17:33:34 +0000 (17:33 +0000)]
Get rid of addNewExtension()/getNewExtensions() method of adding new extensions (added in r81266). Since r85021, this isn't necessary because we run old updates like we should. Fix the 3 extensions using it. Reverts most of r81266, all of r84868, tiny part of r86741. Also ping r89653 which is what caused me to look at this again.

13 years agoFix r85021: extension tables weren't created in some cases
Max Semenik [Tue, 7 Jun 2011 15:52:38 +0000 (15:52 +0000)]
Fix r85021: extension tables weren't created in some cases

13 years agoAnother try at fixing bug 93 "tilde signatures inside nowiki tags sometimes get expan...
Paul Copperman [Tue, 7 Jun 2011 15:12:26 +0000 (15:12 +0000)]
Another try at fixing bug 93 "tilde signatures inside nowiki tags sometimes get expanded (<includeonly><nowiki>~~~~</nowiki></includeonly>)"

* Change the preprocessor to insert strip items for <ignore> nodes during pre-save-transform, just like <comment> nodes are handled already. This effectively disables all pre-save-transform steps inside <includeonly> tags.
* Adapt parser tests to the new behavior.

13 years agoFix broken r89643.
Siebrand Mazeland [Tue, 7 Jun 2011 12:42:28 +0000 (12:42 +0000)]
Fix broken r89643.

13 years agoAdd GENDER support for 'lockedbyandtime'. Suggested by Purodha Blissenbach.
Siebrand Mazeland [Tue, 7 Jun 2011 12:12:13 +0000 (12:12 +0000)]
Add GENDER support for 'lockedbyandtime'. Suggested by Purodha Blissenbach.

13 years agoFix error noticed in r88174, wasn't actually validating sha1base36 hash
Sam Reed [Tue, 7 Jun 2011 09:13:09 +0000 (09:13 +0000)]
Fix error noticed in r88174, wasn't actually validating sha1base36 hash

13 years ago* Fix for r89624: fixed logo HTML escaping
Tim Starling [Tue, 7 Jun 2011 05:22:50 +0000 (05:22 +0000)]
* Fix for r89624: fixed logo HTML escaping

13 years ago* Restored the page shown when LocalSettings.php is missing to how it was before...
Tim Starling [Tue, 7 Jun 2011 05:11:50 +0000 (05:11 +0000)]
* Restored the page shown when LocalSettings.php is missing to how it was before r85918. That template is a welcome page, not a "catastrophic error".
* Fixed attempted remote loading of the logo image in index.php's wfDie(). Use the distributed mediawiki.png instead, that's what it's there for.

13 years ago* fixed table duplication for unit tests
Jure Kajzer [Tue, 7 Jun 2011 05:09:32 +0000 (05:09 +0000)]
* fixed table duplication for unit tests
* fixed sequence handling when using DB prefix
* deferring constraints on transaction, switching back to immediate on commit/rollback
* hardcoded NLS_NUMERIC_CHARACTERS as it breaks using floats in sql if connection is in a non-US-like NLS_LANG (all vars are bound as chars)

13 years agoWhen detecting $wgServer, do not fall back to $_SERVER['HTTP_HOST']. It's unlikely...
Tim Starling [Tue, 7 Jun 2011 03:31:09 +0000 (03:31 +0000)]
When detecting $wgServer, do not fall back to $_SERVER['HTTP_HOST']. It's unlikely that this is used by anything, since SERVER_NAME takes precedence, and SERVER_NAME is required by CGI 1.1 and appears to always be set by the major web servers. If it were ever used, it would open up a cache-poisoning vulnerability. Partially reverts r8010.

13 years agoPartial revert of r85022. Removing added auto-margin that changed behaviour.
Krinkle [Tue, 7 Jun 2011 00:08:56 +0000 (00:08 +0000)]
Partial revert of r85022. Removing added auto-margin that changed behaviour.

13 years ago(bug 25124) Resource loader should respect $wgStyleDirectory
Krinkle [Mon, 6 Jun 2011 22:08:52 +0000 (22:08 +0000)]
(bug 25124) Resource loader should respect $wgStyleDirectory
* Yay, one down, one resourceloader 1.0 blocker to go

13 years agoAlright, IE7 is fixed by r89613. IE6 stays problematic, for some reason it contains...
Krinkle [Mon, 6 Jun 2011 21:51:18 +0000 (21:51 +0000)]
Alright, IE7 is fixed by r89613. IE6 stays problematic, for some reason it contains non-nodes as well (presumably whitespace/textnodes). This oughta fix it forever (poke r89605)

13 years agoRedo r89605 in a better way.
Krinkle [Mon, 6 Jun 2011 21:43:03 +0000 (21:43 +0000)]
Redo r89605 in a better way.

13 years agoFollow up r89585. Clean up after the test, expand inContentLanguage() comment.
Platonides [Mon, 6 Jun 2011 21:24:23 +0000 (21:24 +0000)]
Follow up r89585. Clean up after the test, expand inContentLanguage() comment.

13 years agoFix bug that brakes the 'jquery.tabIndex > firstTabIndex' test in IE8/IE9. Some value...
Krinkle [Mon, 6 Jun 2011 21:10:42 +0000 (21:10 +0000)]
Fix bug that brakes the 'jquery.tabIndex > firstTabIndex' test in IE8/IE9. Some values default to a "unknown" string.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 6 Jun 2011 20:57:48 +0000 (20:57 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-06-06 20:43:00 UTC)

13 years agoFix bug that brakes the 'jquery.tabIndex > firstTabIndex' test in IE6/IE7 (Thanks...
Krinkle [Mon, 6 Jun 2011 20:57:28 +0000 (20:57 +0000)]
Fix bug that brakes the 'jquery.tabIndex > firstTabIndex' test in IE6/IE7 (Thanks TestSwarm).

13 years agoRelease notes for bug 27655 (r89545 and related revs)
Krinkle [Mon, 6 Jun 2011 20:52:33 +0000 (20:52 +0000)]
Release notes for bug 27655 (r89545 and related revs)

13 years agojquery.client.js JSPERF+Unit test suite
Krinkle [Mon, 6 Jun 2011 20:51:27 +0000 (20:51 +0000)]
jquery.client.js JSPERF+Unit test suite
- Using one closure function instead of two
- Comparing to undefined instead it's type (faster, [[mw:JSPERF]])
- Adding basic test suite

13 years agotest thead / tfooter contains th elements
Antoine Musso [Mon, 6 Jun 2011 20:10:51 +0000 (20:10 +0000)]
test thead / tfooter contains th elements

Implemented by r85922. Cover r85943.

TEST PLAN:

$ php parserTests.php --regex 'Table have th inside t'
This is MediaWiki version 1.19alpha (r89594).

Reading tests from "tests/parser/parserTests.txt"...
Running test Table have th inside tfoot... PASSED
Running test Table have th inside thead... PASSED

Reading tests from "tests/parser/extraParserTests.txt"...

Reading tests from "../mwexts/LabeledSectionTransclusion/lstParserTests.txt"...

Passed 2 of 2 tests (100%)... ALL TESTS PASSED!
$

13 years agoadd credits to bluehairedlawyer for thead/tbody
Antoine Musso [Mon, 6 Jun 2011 20:09:21 +0000 (20:09 +0000)]
add credits to bluehairedlawyer for thead/tbody

(bug 4740, r85922)

13 years ago;
Chad Horohoe [Mon, 6 Jun 2011 20:01:48 +0000 (20:01 +0000)]
;

13 years agoRevert r89537 till we decide a sane way to have it on/off as API bools suck
Sam Reed [Mon, 6 Jun 2011 19:26:58 +0000 (19:26 +0000)]
Revert r89537 till we decide a sane way to have it on/off as API bools suck

13 years agoFollow-up r89586: actually delete the file
Max Semenik [Mon, 6 Jun 2011 19:23:36 +0000 (19:23 +0000)]
Follow-up r89586: actually delete the file

13 years agoRevert r89263, r89297, r89347: unclear whether this is needed; DatabaseUpdater action...
Brion Vibber [Mon, 6 Jun 2011 18:35:28 +0000 (18:35 +0000)]
Revert r89263, r89297, r89347: unclear whether this is needed; DatabaseUpdater actions list is already extensible and it might just need some rearrangement?

13 years agoFix for bug 29274 - Message class ignores $wgForceUIMsgAsContentMsg
Niklas Laxström [Mon, 6 Jun 2011 17:55:19 +0000 (17:55 +0000)]
Fix for bug 29274 - Message class ignores $wgForceUIMsgAsContentMsg
Also added tests, which pass

13 years ago* (bug 27716) Make a method to do checking of 0 or 1 of the parameters existence...
Sam Reed [Mon, 6 Jun 2011 16:45:40 +0000 (16:45 +0000)]
* (bug 27716) Make a method to do checking of 0 or 1 of the parameters existence (like requireOnlyOneParameter), but without needing one of the parameters

13 years agoFollowup r89542, validate hashes
Sam Reed [Mon, 6 Jun 2011 16:06:59 +0000 (16:06 +0000)]
Followup r89542, validate hashes