lhc/web/wiklou.git
13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 31 Jan 2011 20:16:49 +0000 (20:16 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-31 20:09:00 UTC)

13 years agoFixups to r81266
Chad Horohoe [Mon, 31 Jan 2011 20:09:29 +0000 (20:09 +0000)]
Fixups to r81266

13 years ago(bug 26857) Fatal error during installation enabling 'Vector' extension (or any exten...
Chad Horohoe [Mon, 31 Jan 2011 20:00:59 +0000 (20:00 +0000)]
(bug 26857) Fatal error during installation enabling 'Vector' extension (or any extension, really). The reason we're including extensions during setup is so they have a chance to register with LoadExtensionSchemaUpdates. Before including extensions, we now include DefaultSettings.php, so any operations on those variables won't result in the fatals described in the bug.

More importantly, this adds support for installing extension tables *at* install time. Previously, the best we could do was to add the require()s to LocalSettings. However, without a subsequent update, wikis will probably start having errors immediately after install (this is really bad!). So I've added an interface to the DatabaseUpdater passed to LoadExtensionSchemaUpdates. An extension can now call addNewExtension() which will allow the extension to be enabled on install and not just update. Example committed in CodeReview

13 years agoWrapping core modules (FIXME from r79929)
Krinkle [Mon, 31 Jan 2011 19:33:16 +0000 (19:33 +0000)]
Wrapping core modules (FIXME from r79929)
(Touch: r74088, r73046)

13 years agoFollow-up r81209: Use the same param detection method as WebStore, so that thumbnails...
Bryan Tong Minh [Mon, 31 Jan 2011 18:07:44 +0000 (18:07 +0000)]
Follow-up r81209: Use the same param detection method as WebStore, so that thumbnails with different mimetypes than the original file are thumbnailed as well.

13 years agoAdd a fairly pants TRUNCATE vs DELETE benchmark...
Sam Reed [Mon, 31 Jan 2011 17:33:30 +0000 (17:33 +0000)]
Add a fairly pants TRUNCATE vs DELETE benchmark...

13 years agoSwap "or" to ||
Sam Reed [Mon, 31 Jan 2011 16:41:19 +0000 (16:41 +0000)]
Swap "or" to ||

13 years agoStupid references, stupid PHP. I blame Nikerabbit (fixing r81254)
Chad Horohoe [Mon, 31 Jan 2011 16:23:38 +0000 (16:23 +0000)]
Stupid references, stupid PHP. I blame Nikerabbit (fixing r81254)

13 years agoRemove a bunch of useless $wgOuts. Just pass them like we should. Also make them...
Chad Horohoe [Mon, 31 Jan 2011 15:47:47 +0000 (15:47 +0000)]
Remove a bunch of useless $wgOuts. Just pass them like we should. Also make them protected so people don't call them

13 years ago(bug 27046) Do not strip newlines following C++-style // comments. Prior to this...
Roan Kattouw [Mon, 31 Jan 2011 12:48:08 +0000 (12:48 +0000)]
(bug 27046) Do not strip newlines following C++-style // comments. Prior to this commit, such newlines were always stripped, causing invalid JS output in certain cases. They are now always preserved, even if they would normally qualifiy for vertical whitespace stripping/collapsing when wgResourceLoaderMinifyJSVerticalSpace is enabled.

13 years agoCleanup for r66268, r66267: merge WikiImporter back into Import.php, where it started...
Tim Starling [Mon, 31 Jan 2011 07:07:43 +0000 (07:07 +0000)]
Cleanup for r66268, r66267: merge WikiImporter back into Import.php, where it started. It doesn't really make sense to have a class called WikiImporter in a file called ImportXMLReader.php, and a few little helper classes for it in a file called Import.php.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sun, 30 Jan 2011 22:35:06 +0000 (22:35 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-30 22:23:00 UTC)

13 years agoRemove usage of $dbw->escapeLike in RenameDbPrefix (per bug 270042)
Sam Reed [Sun, 30 Jan 2011 22:12:13 +0000 (22:12 +0000)]
Remove usage of $dbw->escapeLike in RenameDbPrefix (per bug 270042)

13 years agoTweak install steps to be on the POST rather than GET. It makes more sense architectu...
Chad Horohoe [Sun, 30 Jan 2011 18:21:37 +0000 (18:21 +0000)]
Tweak install steps to be on the POST rather than GET. It makes more sense architecturally. It also gives us one last chance for them to say no (in case they clicked "I'm bored already" but changed their minds). Check final step of installer for fatals, and if everything's good, suppress the back button. It's just going to confuse people. And the opposite, suppress continue on fatals...no need pretending things went dandy if they didn't. It's basically now impossible to re-run 'page=Install' after it completes. This is probably a good thing as it throws errors. Coincidentally this also fixes bug 26947.

13 years ago(Bug 26961) hide anons from watchlist preference was broken due to typo in
Brian Wolff [Sun, 30 Jan 2011 18:17:57 +0000 (18:17 +0000)]
(Bug 26961) hide anons from watchlist preference was broken due to typo in
r39314.

Fix by duplicatebug.

Given that this preference has been broken since it was introduced,
and the only person to notice in 3 years has been the testers, that may be
a good argument to remove the preference altogether.

13 years agoAs per my comments on bug 27038 and my comments on r75906, use a /thumb and /file...
Bryan Tong Minh [Sun, 30 Jan 2011 16:57:19 +0000 (16:57 +0000)]
As per my comments on bug 27038 and my comments on r75906, use a /thumb and /file prefix for files fetched via Special:UploadStash. Make filenames more consistent with regular thumbs by using the /thumb/$fileName/$thumbName scheme. Now uses MediaHandler::parseParamString so that params like page are properly handled.

13 years agoFollow-up r80775: Check for meta.tiff as well.
Bryan Tong Minh [Sun, 30 Jan 2011 14:26:38 +0000 (14:26 +0000)]
Follow-up r80775: Check for meta.tiff as well.
Bump wgStyleVersion

13 years agoParseMaster is designed to use big regexes, with many starting characters.
Platonides [Sun, 30 Jan 2011 14:19:55 +0000 (14:19 +0000)]
ParseMaster is designed to use big regexes, with many starting characters.
It makes sense to pcre_study() them.

13 years agoA few return type hints
Sam Reed [Sun, 30 Jan 2011 08:16:13 +0000 (08:16 +0000)]
A few return type hints

13 years agoPer fixme on r78786, obey sortDescending in Cached mode (ie if sortDescending, force...
Sam Reed [Sat, 29 Jan 2011 22:07:22 +0000 (22:07 +0000)]
Per fixme on r78786, obey sortDescending in Cached mode (ie if sortDescending, force order by qc_value DESC)

13 years ago(bug 27021) Session key was changed somewhere from an int to a string, which broke...
Bryan Tong Minh [Sat, 29 Jan 2011 21:42:03 +0000 (21:42 +0000)]
(bug 27021) Session key was changed somewhere from an int to a string, which broke stashed uploads totally. Changed $wgRequest->getInt to $wgRequest->getText. The API never explicitly defined it as int, so should not be affected.
Note that this also may break API clients in certain cases for strongly, statically typed languages (e.g. int sessionKey = request->sessionKey;). I see no way around this, so I will announce a breaking change on the API mailing list shortly.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 29 Jan 2011 20:23:00 +0000 (20:23 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-29 19:51:00 UTC)

13 years ago* (bug 22606) Follow-up r63059: don't send the "someone registred an account" message...
Alexandre Emsenhuber [Sat, 29 Jan 2011 09:32:02 +0000 (09:32 +0000)]
* (bug 22606) Follow-up r63059: don't send the "someone registred an account" message when setting email address (i.e. old one empty) in user preferences

13 years ago* (bug 27016) Fix for r77638: dumpTextPass.php now consider the "output" parameter
Alexandre Emsenhuber [Sat, 29 Jan 2011 09:00:38 +0000 (09:00 +0000)]
* (bug 27016) Fix for r77638: dumpTextPass.php now consider the "output" parameter

Also added "output" parameter to the doc since nothing was mentioning it

13 years agofixing php Parse error: syntax error from r81169
Krinkle [Fri, 28 Jan 2011 23:31:01 +0000 (23:31 +0000)]
fixing php Parse error: syntax error from r81169

13 years agoRemoving more, no longer needed, overrides for the white table background (which...
Krinkle [Fri, 28 Jan 2011 23:30:04 +0000 (23:30 +0000)]
Removing more, no longer needed, overrides for the white table background  (which is no longer the case since bug 26449 was solved in r79087 and r79091)
* table#mw-search-top-table (r52669 / 55748)
* table.allpageslist, table.mw-allpages-table-form, table.mw-allpages-table-chunk (r49500)
* (r32269, r55393, r78865)
Thanks to Fomafix!
See also r80495 CR

13 years agoUpdate comments to take into account r80443 and r80614 changes, per CR.
Platonides [Fri, 28 Jan 2011 22:27:52 +0000 (22:27 +0000)]
Update comments to take into account r80443 and r80614 changes, per CR.

13 years agoFollow up r81100. Don't hardcode hiddencat quotes, per r80936 CR.
Platonides [Fri, 28 Jan 2011 22:17:01 +0000 (22:17 +0000)]
Follow up r81100. Don't hardcode hiddencat quotes, per r80936 CR.

13 years ago(bug 26938) "wikipedia compatible" should not be part of the license name. We already...
Chad Horohoe [Fri, 28 Jan 2011 21:07:18 +0000 (21:07 +0000)]
(bug 26938) "wikipedia compatible" should not be part of the license name. We already explain this in the help box, there's no need to repeat it here

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 28 Jan 2011 21:06:09 +0000 (21:06 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-28 20:52:00 UTC)

13 years ago(bug 26939) $wgMetaNamespace is not being generated
Chad Horohoe [Fri, 28 Jan 2011 21:02:36 +0000 (21:02 +0000)]
(bug 26939) $wgMetaNamespace is not being generated

13 years ago* Adding cursor:pointer when hovering the headers (which hide/show stuff)
Krinkle [Fri, 28 Jan 2011 19:38:16 +0000 (19:38 +0000)]
* Adding cursor:pointer when hovering the headers (which hide/show stuff)
* Remove unneeded parens from r81151.
* Whitespaces

(Follow-up r81151, r81152, r81126)

13 years agoMade mediaWiki JS test suite table no longer sortable. This functionality broke with...
Krinkle [Fri, 28 Jan 2011 19:32:46 +0000 (19:32 +0000)]
Made mediaWiki JS test suite table no longer sortable. This functionality broke with the introduction of hide/show clickers in r81126. But we don't need this so we might as well remove it.

13 years agoSome adjustments to new functionality from r81133
Krinkle [Fri, 28 Jan 2011 19:25:40 +0000 (19:25 +0000)]
Some adjustments to new functionality from r81133
* Floating result to the right (looked a little messy)
* In Safari the 0.8em looked really pixelated and unreadably. Font-size back to normal size.
* Converted variable names to camelCase
* Fixed bug from r81133 (first array item is 0, first counter is 1). Added a +1 to fix it for now (since the headings were overwritten and the first one was removed). Perhaps should be done better at a later time.

13 years agoopen a series of files for xml input, if supplied (used for multiple xml prefetch...
Ariel Glenn [Fri, 28 Jan 2011 19:20:49 +0000 (19:20 +0000)]
open a series of files for xml input, if supplied (used for multiple xml prefetch files)

13 years agoopen a series of files for xml input, if supplied (used for multiple xml prefetch...
Ariel Glenn [Fri, 28 Jan 2011 19:16:16 +0000 (19:16 +0000)]
open a series of files for xml input, if supplied (used for multiple xml prefetch files)

13 years agoRandom fixes in mediawiki.js: add a var, fix indentation, and get our ABC right
Roan Kattouw [Fri, 28 Jan 2011 18:33:48 +0000 (18:33 +0000)]
Random fixes in mediawiki.js: add a var, fix indentation, and get our ABC right

13 years agoRestore global wrongly removed in r80892
Platonides [Fri, 28 Jan 2011 18:10:39 +0000 (18:10 +0000)]
Restore global wrongly removed in r80892

13 years agoJSMin is gone, please talk with JavaScriptDistiller
Platonides [Fri, 28 Jan 2011 17:51:46 +0000 (17:51 +0000)]
JSMin is gone, please talk with JavaScriptDistiller
(r80656 follow up)

13 years agoRemove empty statement (r80993) and unused global (r80766).
Platonides [Fri, 28 Jan 2011 17:34:37 +0000 (17:34 +0000)]
Remove empty statement (r80993) and unused global (r80766).

13 years agoFollow-up r81132 removal of pre-8.3 support.
Platonides [Fri, 28 Jan 2011 17:25:00 +0000 (17:25 +0000)]
Follow-up r81132 removal of pre-8.3 support.
Still needs removal of $wgDBts2schema inside initial_setup()

13 years agocall parent constructor so that include path and other things work right
Ariel Glenn [Fri, 28 Jan 2011 17:18:35 +0000 (17:18 +0000)]
call parent constructor so that include path and other things work right

13 years agogoodNames isn't used anymore
Chad Horohoe [Fri, 28 Jan 2011 15:42:55 +0000 (15:42 +0000)]
goodNames isn't used anymore

13 years agoFollowup r81132, missed some more ts2 removal
Chad Horohoe [Fri, 28 Jan 2011 15:25:15 +0000 (15:25 +0000)]
Followup r81132, missed some more ts2 removal

13 years agoMinor cleanup, docs
Chad Horohoe [Fri, 28 Jan 2011 15:00:18 +0000 (15:00 +0000)]
Minor cleanup, docs

13 years agoPer comment on bug 26612, we should drop the pre-Postgres 8.3 support with the TSearc...
Chad Horohoe [Fri, 28 Jan 2011 14:12:26 +0000 (14:12 +0000)]
Per comment on bug 26612, we should drop the pre-Postgres 8.3 support with the TSearch2 schema.
This removes a bunch of back-compat code in the installer and search code.
Minimum postgres version is now 8.3

13 years agoJS tests: fold headers, adapt style
Antoine Musso [Fri, 28 Jan 2011 12:13:42 +0000 (12:13 +0000)]
JS tests: fold headers, adapt style

Update the style by removing padding inherited from .wikitable and make
the font smaller (0.8em). Make easier to see the tests on a small screen.

I have folded out the tests by section (using headers as reference), added
some classes and id around to help selection.

TODO: we probably only want to hide tests which are OK

13 years agoImplement prop=wikitext in action=parse, (optionally) returning the original wikitext...
Roan Kattouw [Fri, 28 Jan 2011 01:47:08 +0000 (01:47 +0000)]
Implement prop=wikitext in action=parse, (optionally) returning the original wikitext. Requested by some Google folks wanting to get data about a revision in one request.

13 years agoAdd the resolved URL of each langlink to the API's action=parse output
Roan Kattouw [Fri, 28 Jan 2011 01:09:47 +0000 (01:09 +0000)]
Add the resolved URL of each langlink to the API's action=parse output

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 27 Jan 2011 21:35:41 +0000 (21:35 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-27 21:09:00 UTC)

13 years ago(bug 26285) Extensions will be automatically generated on upload if the user specifie...
Bryan Tong Minh [Thu, 27 Jan 2011 21:15:50 +0000 (21:15 +0000)]
(bug 26285) Extensions will be automatically generated on upload if the user specified a filename without extension.
Note that this still will throw a warning.

13 years agoinvalid 'var' in JS email validation
Antoine Musso [Thu, 27 Jan 2011 21:14:36 +0000 (21:14 +0000)]
invalid 'var' in JS email validation
follow up r81101

13 years agoFix c&p error in r81103
Raimond Spekking [Thu, 27 Jan 2011 21:08:10 +0000 (21:08 +0000)]
Fix c&p error in r81103

13 years ago(bug 26929) Introduced the edittools-upload message, which will be inserted under...
Bryan Tong Minh [Thu, 27 Jan 2011 20:58:37 +0000 (20:58 +0000)]
(bug 26929) Introduced the edittools-upload message, which will be inserted under the upload form instead of edittools if available

13 years agoBug 26948 - hyphens incorrectly interpreted as range
Antoine Musso [Thu, 27 Jan 2011 20:52:12 +0000 (20:52 +0000)]
Bug 26948 - hyphens incorrectly interpreted as range

This is the kind of easy to fix, hard to review bug. Email validation
make uses of strings listing characters, those strings are then
enclosed between brackets "[]". Inside brackets, the hyphen is used
to describe a range of character [a-d] being a b c d.
The string containing an unescaped hyphen, made JS/PHP validation
to match the incorrect comma ",".

* Backslash hyphen
* JS,PHP: add tests for commas and hyphens in username or domain
* JS: add var to rfc_1034_ldh_str
* JS: minor code cleanup

TESTS:

php phpunit.php -c suite.xml --filter ValidEmail
OK (13 tests, 32 assertions)

Special:BlankPage?action=mwutiltest&debug=true
Ran 66 tests. 66 passed test(s). 0 error(s). 0 partially passed test(s).

13 years agoFollowup r81067, use the right syntax for doing a join
OverlordQ [Thu, 27 Jan 2011 20:25:37 +0000 (20:25 +0000)]
Followup r81067, use the right syntax for doing a join

13 years agoAdded triggerClientTestResources, which makes the use of separate test resourecs...
Markus Glaser [Thu, 27 Jan 2011 14:51:58 +0000 (14:51 +0000)]
Added triggerClientTestResources, which makes the use of separate test resourecs optional. Needed for testing installer functions.

13 years ago* Fixed Oracle new installer support, broken by r80957. This is a minimal patch and...
Tim Starling [Thu, 27 Jan 2011 08:25:48 +0000 (08:25 +0000)]
* Fixed Oracle new installer support, broken by r80957. This is a minimal patch and doesn't address the architectural issues.
** Moved the responsibility for calling setupSchemaVars() on install to the DatabaseInstaller subclass. This allows it to be called after setupDatabase() has completed, as required by Oracle and PostgreSQL.
** Fixed OracleInstaller::getConnection() so that it respects $this->useSysDBA correctly.
** In OracleInstaller, added some more variables to the list of schema vars, which are needed by user.sql and tables.sql
** In SearchOracle, specify the database name when calling ctx_ddl.sync_index(). This fixes a fatal error in the createMainpage step, caused by the schema name not being equal to the current user.

* In oracle/tables.sql, fixed a couple of indexes with missing table prefixes.
* Improved debugging output in DatabaseInstaller::getConnection() and Installer::createMainpage().
* In DatabaseBase::selectDB(), set $this->mDBname correctly, as in DatabaseMysql.

13 years agoRemoved getConnectionOrDie(), accidentally added in r80957
Tim Starling [Thu, 27 Jan 2011 03:54:33 +0000 (03:54 +0000)]
Removed getConnectionOrDie(), accidentally added in r80957

13 years agoFixup query fail from r80936
Sam Reed [Wed, 26 Jan 2011 23:13:20 +0000 (23:13 +0000)]
Fixup query fail from r80936

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 26 Jan 2011 22:01:54 +0000 (22:01 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-26 21:38:00 UTC)

13 years agoFollowup fixme on r80861,
Sam Reed [Wed, 26 Jan 2011 20:03:38 +0000 (20:03 +0000)]
Followup fixme on r80861,

Do cl_from <> 0 check not in SQL, remove order by.

Fixup casing error noticed also

13 years agoEscape the output of $wgLang->timeanddate() in SpecialContributions. Was escaped...
Roan Kattouw [Wed, 26 Jan 2011 17:59:54 +0000 (17:59 +0000)]
Escape the output of $wgLang->timeanddate() in SpecialContributions. Was escaped in one code path but not in the other

13 years ago* Whitespace fixups
Mark A. Hershberger [Wed, 26 Jan 2011 17:48:58 +0000 (17:48 +0000)]
* Whitespace fixups
* followup r66675 - Robla caught a problem with the parameter munging

13 years agoMessageCache.php: fixed a typo, tweaked spacing, added braces where needed, etc.
Jack Phoenix [Wed, 26 Jan 2011 17:41:18 +0000 (17:41 +0000)]
MessageCache.php: fixed a typo, tweaked spacing, added braces where needed, etc.

13 years agoLast $wgArticle junk in Skin(Template). Just pass the article on hand to lastModified...
Chad Horohoe [Wed, 26 Jan 2011 17:06:18 +0000 (17:06 +0000)]
Last $wgArticle junk in Skin(Template). Just pass the article on hand to lastModified(). Nothing outside of here calls it anyway

13 years agosyntax error, stupid me
Chad Horohoe [Wed, 26 Jan 2011 16:58:48 +0000 (16:58 +0000)]
syntax error, stupid me

13 years agoFollowup r81034, remove the global statements
Chad Horohoe [Wed, 26 Jan 2011 16:56:46 +0000 (16:56 +0000)]
Followup r81034, remove the global statements

13 years agoFirst round of $wgArticle removals
Chad Horohoe [Wed, 26 Jan 2011 16:54:58 +0000 (16:54 +0000)]
First round of $wgArticle removals

13 years agoHooks.php: trim trailing spaces, tweak docs, etc.
Jack Phoenix [Wed, 26 Jan 2011 16:50:31 +0000 (16:50 +0000)]
Hooks.php: trim trailing spaces, tweak docs, etc.

13 years ago* Replaced $wgMessageCache by MessageCache::singleton(); since we only use one instan...
Alexandre Emsenhuber [Wed, 26 Jan 2011 15:42:04 +0000 (15:42 +0000)]
* Replaced $wgMessageCache by MessageCache::singleton(); since we only use one instance of this class (as for ParserCache, LinkCache)
* MessageCache::singleton() calls wfGetMessageCacheStorage() directly instead of using $messageMemc, just in case this would be called before that variable is set
* Per TimStarling: also removed deprecated methods in MessageCache class: addMessages() and related, [get|set|enable|disable]Transform(), loadAllMessages(), loadMessageFile() and some others. Same for the legacyData stuff in LocalisationCache that was only used by MessageCache::addMessages() and related.
* Converted remaining extensions

13 years agoCreate index only if it doesn't already exist
Matěj Grabovský [Wed, 26 Jan 2011 10:33:21 +0000 (10:33 +0000)]
Create index only if it doesn't already exist

13 years agoProvisionally reverting r80430 (bug 529, 12974)
Brion Vibber [Wed, 26 Jan 2011 01:16:18 +0000 (01:16 +0000)]
Provisionally reverting r80430 (bug 529, 12974)

As noted in CR there are some issues where we're trading one set of weird behavior for a different, but previously unknown, set of weird behavior which breaks existing markup that works around the old behavior.
I'd recommend keeping this in store for after the 1.17 stuff calms down so unexpected parser changes aren't cropping up in the middle of things for people working with trunk.

If these are the right changes to make then great -- but they should be done after the consequences are better understood and folks can prepare for changes.

13 years agoTransforming a message uses automatically $wgTitle, which may not be set if running...
Platonides [Wed, 26 Jan 2011 00:23:39 +0000 (00:23 +0000)]
Transforming a message uses automatically $wgTitle, which may not be set if running from eg. a script, usecase broken by r80819.
Creating a new title in transformMsg() in such case. Reverting r80987 (its revert), and r80898 (workaround).

Confirmed that now both the installer and extensions/Translate/scripts/sync-group.php work.

13 years agogenerateUpgradeKey() could produce NULL return, which means a fatal error when
Platonides [Tue, 25 Jan 2011 23:37:11 +0000 (23:37 +0000)]
generateUpgradeKey() could produce NULL return, which means a fatal error when
Call to a member function isOk() in includes/installer/WebInstallerPage.php on line 1039

13 years agoThe function wfShorthandToInteger() is precisely for that.
Platonides [Tue, 25 Jan 2011 22:42:53 +0000 (22:42 +0000)]
The function wfShorthandToInteger() is precisely for that.
The previous way only worked for megabytes, which made it
'raise' the memory limit from several gigabytes to 50M

13 years agoMake the UploadStash repo specific by creating FileRepo::getUploadStash(). In practic...
Bryan Tong Minh [Tue, 25 Jan 2011 21:26:53 +0000 (21:26 +0000)]
Make the UploadStash repo specific by creating FileRepo::getUploadStash(). In practice this will probably not be used and makes getting an UploadStash object slightly more type work, but I think it is cleaner to have an upload stash explicitly bound to a repo.

13 years agoTest uploading a file of size $wgMaxUploadSize
Antoine Musso [Tue, 25 Jan 2011 21:26:28 +0000 (21:26 +0000)]
Test uploading a file of size $wgMaxUploadSize

TODO: method testMaxUploadSize() shoud be able to use differents
settings.  The assertion could then get moved elsewhere in a nice
helper.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 25 Jan 2011 21:05:19 +0000 (21:05 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-25 20:45:00 UTC)

13 years agoUploads that throw a warning (UploadFromStash) a thumbnail is now shown.
Bryan Tong Minh [Tue, 25 Jan 2011 20:59:32 +0000 (20:59 +0000)]
Uploads that throw a warning (UploadFromStash) a thumbnail is now shown.

13 years agoHTMLForm: All section headers and footers. Added an optional second $section paramete...
Bryan Tong Minh [Tue, 25 Jan 2011 20:56:56 +0000 (20:56 +0000)]
HTMLForm: All section headers and footers. Added an optional second $section parameter to addHeaderText and addFooterText.

13 years agorevert r80819 for now so we can use phpunit
Antoine Musso [Tue, 25 Jan 2011 20:37:33 +0000 (20:37 +0000)]
revert r80819 for now so we can use phpunit

function foo (Title $title = null ) {} does not work

13 years agoFix r80982, re-add accidental removed AND during debugging
Sam Reed [Tue, 25 Jan 2011 19:58:20 +0000 (19:58 +0000)]
Fix r80982, re-add accidental removed AND during debugging

13 years agoFollowup r80856, don't unconditionally add the "AND" as if '' is returned by a functi...
Sam Reed [Tue, 25 Jan 2011 19:56:58 +0000 (19:56 +0000)]
Followup r80856, don't unconditionally add the "AND" as if '' is returned by a function, we can get some silly errors (Yay for crappily built SQL strings)

Remove trailing whitespace

13 years agoSmall fixes
Krinkle [Tue, 25 Jan 2011 19:53:21 +0000 (19:53 +0000)]
Small fixes
* Missing space in SpecialPage.php
* Raising z-index of .suggestions (when used in a jQuery UI modal box the suggestion list appeared behind the modal instead of on top (ui modal has z-index: 1000; )

13 years agoResolves bug 26931, where comments were not only not being properly stripped out...
Trevor Parscal [Tue, 25 Jan 2011 19:00:21 +0000 (19:00 +0000)]
Resolves bug 26931, where comments were not only not being properly stripped out, but were being transformed into syntax errors.

13 years agoLanguageConverter::captionConvert(): remove HTML tags and escape HTML special chars...
Philip Tzou [Tue, 25 Jan 2011 18:33:21 +0000 (18:33 +0000)]
LanguageConverter::captionConvert(): remove HTML tags and escape HTML special chars to prevent disrupting the layout.

13 years agowhitespace fix (tab too many)
Krinkle [Tue, 25 Jan 2011 18:24:16 +0000 (18:24 +0000)]
whitespace fix (tab too many)

13 years agoFollow r80973, fix a tiny error.
Philip Tzou [Tue, 25 Jan 2011 17:28:15 +0000 (17:28 +0000)]
Follow r80973, fix a tiny error.

13 years agoUpdate Chinese conversion tables.
Philip Tzou [Tue, 25 Jan 2011 17:23:36 +0000 (17:23 +0000)]
Update Chinese conversion tables.

13 years agoReset the cache used in User::idFromName(), otherwise tests will try to add the user...
Alexandre Emsenhuber [Tue, 25 Jan 2011 16:32:43 +0000 (16:32 +0000)]
Reset the cache used in User::idFromName(), otherwise tests will try to add the user '127.0.0.1' multiple times, resulting in a database error (duplicate key for `user_name` field)

13 years agoAllow the $result parameter of the isValidPassword hook to be an array if the message...
Alexandre Emsenhuber [Tue, 25 Jan 2011 15:36:36 +0000 (15:36 +0000)]
Allow the $result parameter of the isValidPassword hook to be an array if the message requires parameters

13 years ago* Fixed a bug causing the installer to ignore the "engine" and "charset" settings...
Tim Starling [Tue, 25 Jan 2011 07:37:48 +0000 (07:37 +0000)]
* Fixed a bug causing the installer to ignore the "engine" and "charset" settings when installing a MySQL database.
* Fixed a bug causing the engine and charset settings to not be properly preserved when adding new tables on upgrade.
* Fixed total breakage of SQLite upgrade, by reusing the administrative connection to the SQLite database instead of creating a new one when wfGetDB() is called. Added LBFactory_Single to support this.
* Introduced a "schema variable" concept to DatabaseBase to avoid the use of globals for communication between the installer and the Database. Removed a lot of old global variable names from Database::replaceVars(), most were only added on a whim and were never used.
* Introduced DatabaseInstaller::getSchemaVars(), to allow schema variables to be supplied by the DatabaseInstaller child classes.
* Removed messages config-mysql-egine-mismatch [sic] and config-mysql-charset-mismatch. In the old installer it was possible for users to request a certain character set for an upgrade, but in the new installer the question is never asked. So these warnings were shown whenever a non-default character set or engine was used in the old database.
* In MysqlInstaller::preUpgrade(), fixed the incorrect strings used to identify the MySQL character sets: mysql5 instead of utf8 and mysql5-binary instead of binary.
* On install, initialise the site_stats table, using code copied from the old installer. Unlike the old installer, use SiteStats to increment the user count when the initial user is added.
* Fixed several instances of inappropriate call-by-reference.
* Replaced call_user_func_array() with call_user_func() where possible, it is shorter and simpler.
* Moved the caching boilerplate for DatabaseInstaller::getConnection() to the base class, and have the derived classes override an uncached function openConnection() instead. Updates r80892.
* In MysqlInstaller::getLocalSettings(), escape PHP strings correctly with LocalSettingsGenerator::escapePhpString().
* Reduce timeout for checks in dirIsExecutable() to 3 seconds, so that it doesn't take 30s to run when apache is in single-threaded mode for debugging.
* MySQL and SQLite have been tested and they appear to work. PostgreSQL upgrade is totally broken, apparently it was like that before I started. The Oracle code is untested.

13 years agofixed typo from r80924
Krinkle [Tue, 25 Jan 2011 02:13:22 +0000 (02:13 +0000)]
fixed typo from r80924

13 years agoCouple more raw SQL to query arrays
Sam Reed [Mon, 24 Jan 2011 23:15:10 +0000 (23:15 +0000)]
Couple more raw SQL to query arrays

13 years agoMissed the case where there is an equals.
Platonides [Mon, 24 Jan 2011 22:10:22 +0000 (22:10 +0000)]
Missed the case where there is an equals.
It's ugly having to add that literal node there.

13 years agoport rtl specific parts of modern RTL css to main.css
Derk-Jan Hartman [Mon, 24 Jan 2011 22:05:03 +0000 (22:05 +0000)]
port rtl specific parts of modern RTL css to main.css

In the new auto flipped CSS, the "html > body div#mw_contentholder ul li" specific hacks were breaking layout on other browsers, so removing those.

Follow up to r80776

13 years agoIntegrate what was functionally left of common_rtl.css into oldshared.css
Derk-Jan Hartman [Mon, 24 Jan 2011 21:50:17 +0000 (21:50 +0000)]
Integrate what was functionally left of common_rtl.css into oldshared.css
Commit the Resourceloader conversion of oldshared.css that I had forgotten to commit

Follow up to r80785

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 24 Jan 2011 21:31:38 +0000 (21:31 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-01-24 20:59:00 UTC)

13 years agoupdate colors (I could not see them)
Antoine Musso [Mon, 24 Jan 2011 21:28:47 +0000 (21:28 +0000)]
update colors (I could not see them)