lhc/web/wiklou.git
13 years agoFor Ævar, re-add make tap
Chad Horohoe [Fri, 10 Sep 2010 21:38:10 +0000 (21:38 +0000)]
For Ævar, re-add make tap

13 years agoRemoved a comment, which should have been removed in r72743
Trevor Parscal [Fri, 10 Sep 2010 21:27:19 +0000 (21:27 +0000)]
Removed a comment, which should have been removed in r72743

13 years agoRemoved blank line in array definition.
Trevor Parscal [Fri, 10 Sep 2010 21:19:04 +0000 (21:19 +0000)]
Removed blank line in array definition.

13 years agoFixed remanant of when the site module was called sitejs
Trevor Parscal [Fri, 10 Sep 2010 20:57:05 +0000 (20:57 +0000)]
Fixed remanant of when the site module was called sitejs

13 years agoAdjusted comments
Trevor Parscal [Fri, 10 Sep 2010 20:55:28 +0000 (20:55 +0000)]
Adjusted comments

13 years agotweak "remembermypassword" for consistency with "tog-rememberpassword" (follow-up...
Robin Pepermans [Fri, 10 Sep 2010 20:49:07 +0000 (20:49 +0000)]
tweak "remembermypassword" for consistency with "tog-rememberpassword" (follow-up r72377 / r72718)

13 years agoMerged load and go. At least for now, this seems to make sense.
Trevor Parscal [Fri, 10 Sep 2010 20:45:58 +0000 (20:45 +0000)]
Merged load and go. At least for now, this seems to make sense.

13 years agoFollow up r70957. Remove the double semicolon.
Platonides [Fri, 10 Sep 2010 20:45:17 +0000 (20:45 +0000)]
Follow up r70957. Remove the double semicolon.

13 years agoMoved mediaWiki.loader.go() up to be above scripts that are not wrapped, and need...
Trevor Parscal [Fri, 10 Sep 2010 20:42:44 +0000 (20:42 +0000)]
Moved mediaWiki.loader.go() up to be above scripts that are not wrapped, and need access to stuff being loaded by go().

13 years agoMoved fixaplha to run after scripts are loaded - otherwise the function isn't ready...
Trevor Parscal [Fri, 10 Sep 2010 20:41:07 +0000 (20:41 +0000)]
Moved fixaplha to run after scripts are loaded - otherwise the function isn't ready yet.

13 years agoCleaned up the vector skin, removing $wgVectorExtraStyles (a temporary hack for exper...
Trevor Parscal [Fri, 10 Sep 2010 20:36:48 +0000 (20:36 +0000)]
Cleaned up the vector skin, removing $wgVectorExtraStyles (a temporary hack for experimentation), the generated right-to-left style-sheet (ResourceLoader does this on the fly now) and two unsued images - left over from the copy-past of monobook.

13 years ago(Bug 25138) ApiUndelete begins a transaction, but does not commit.
Platonides [Fri, 10 Sep 2010 20:31:44 +0000 (20:31 +0000)]
(Bug 25138) ApiUndelete begins a transaction, but does not commit.
The UI doesn't use a transaction either, although it seems appropiate.
The begin() should be moved into PageArchive::undelete()

13 years agoAdjusted a comment
Trevor Parscal [Fri, 10 Sep 2010 20:25:46 +0000 (20:25 +0000)]
Adjusted a comment

13 years agoResourceLoaderSiteModule now supports CSS too!
Trevor Parscal [Fri, 10 Sep 2010 20:18:24 +0000 (20:18 +0000)]
ResourceLoaderSiteModule now supports CSS too!

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Fri, 10 Sep 2010 20:10:17 +0000 (20:10 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-10 19:38:00 UTC)

13 years agotypo. Spotted by User:Kghbln@Translatewiki
Raimond Spekking [Fri, 10 Sep 2010 19:14:14 +0000 (19:14 +0000)]
typo. Spotted by User:Kghbln@Translatewiki

13 years agoFix r72737: Oops. I fail
X! [Fri, 10 Sep 2010 19:14:13 +0000 (19:14 +0000)]
Fix r72737: Oops. I fail

13 years agoFollowup to r72736: Alphabetical order
X! [Fri, 10 Sep 2010 19:13:07 +0000 (19:13 +0000)]
Followup to r72736: Alphabetical order

13 years agoFollowup to r70638: Add pageprop descriptions for displaytitle and defaultsort
X! [Fri, 10 Sep 2010 19:12:14 +0000 (19:12 +0000)]
Followup to r70638: Add pageprop descriptions for displaytitle and defaultsort

13 years agoLocalization update for he.
Rotem Liss [Fri, 10 Sep 2010 19:06:05 +0000 (19:06 +0000)]
Localization update for he.

13 years agoClarify definition of "letters" per request on Trenslatewiki: http://translatewiki...
Raimond Spekking [Fri, 10 Sep 2010 19:04:04 +0000 (19:04 +0000)]
Clarify definition of "letters" per request on Trenslatewiki: translatewiki.net/wiki/Thread:Support/Letters

13 years agoFixes issue in r72695 where ResourceLoaderFileModule::getStyles was iterating twice...
Trevor Parscal [Fri, 10 Sep 2010 18:42:26 +0000 (18:42 +0000)]
Fixes issue in r72695 where ResourceLoaderFileModule::getStyles was iterating twice over getPrimaryStyles rather than iterating over getPrimaryStyles and then getSkinsStyles.

13 years agoMade OutputPage only ask for a style from ResourceLoader once with media=all, and...
Trevor Parscal [Fri, 10 Sep 2010 18:24:45 +0000 (18:24 +0000)]
Made OutputPage only ask for a style from ResourceLoader once with media=all, and ResourceLoader respond with styles wrapped in @media [type] { ... } blocks.

13 years agoCopied cleanupDupes.inc in FiveUpgrade.inc since it's only used there
Alexandre Emsenhuber [Fri, 10 Sep 2010 17:34:06 +0000 (17:34 +0000)]
Copied cleanupDupes.inc in FiveUpgrade.inc since it's only used there

13 years agoFor those poor souls who use Windows instead of Make but still need to run tests...
Max Semenik [Fri, 10 Sep 2010 17:31:40 +0000 (17:31 +0000)]
For those poor souls who use Windows instead of Make but still need to run tests...

13 years agoUse the AutoLoader instead of manually requiring these files
Alexandre Emsenhuber [Fri, 10 Sep 2010 16:53:35 +0000 (16:53 +0000)]
Use the AutoLoader instead of manually requiring these files

13 years ago* Modified rebuildImages.php to subclass Mainteance instead of FiveUpgrade
Alexandre Emsenhuber [Fri, 10 Sep 2010 16:47:42 +0000 (16:47 +0000)]
* Modified rebuildImages.php to subclass Mainteance instead of FiveUpgrade
* $fname -> __METHOD__
* fixed two undefined variables notices

13 years agoFollow-up r72377: Change similar messages too
Raimond Spekking [Fri, 10 Sep 2010 13:20:10 +0000 (13:20 +0000)]
Follow-up r72377: Change similar messages too

13 years ago(bug 25042) CSSJanus does not flip direction: rules outside of body { } selectors
Roan Kattouw [Fri, 10 Sep 2010 13:08:54 +0000 (13:08 +0000)]
(bug 25042) CSSJanus does not flip direction: rules outside of body { } selectors

13 years ago$fname -> __METHOD__
Alexandre Emsenhuber [Fri, 10 Sep 2010 12:54:22 +0000 (12:54 +0000)]
$fname -> __METHOD__

13 years agoDocument a few things
Chad Horohoe [Fri, 10 Sep 2010 12:40:21 +0000 (12:40 +0000)]
Document a few things

13 years agoKill $wgDatabase from updaters.inc
Alexandre Emsenhuber [Fri, 10 Sep 2010 11:48:01 +0000 (11:48 +0000)]
Kill $wgDatabase from updaters.inc

The only file where it's still used in core is... includes/installer/DatabaseUpdater.php
There's also a variable named $wgDatabase in extensions/MetavidWiki/maintenance/mv_update.php and extensions/StarterWiki/maintenance/createWikiDBFromStarter.php but it is created directly by these scripts

13 years agoFollow-up r72475: Set $wgAllowAsyncCopyUploads in the test
Bryan Tong Minh [Fri, 10 Sep 2010 11:17:52 +0000 (11:17 +0000)]
Follow-up r72475: Set $wgAllowAsyncCopyUploads in the test

13 years agoRemoved $wgDatabase from dbsource()
Alexandre Emsenhuber [Fri, 10 Sep 2010 11:10:33 +0000 (11:10 +0000)]
Removed $wgDatabase from dbsource()

13 years agoAdded media-type support for static and dynamic ResourceLoader requests.
Trevor Parscal [Fri, 10 Sep 2010 00:21:36 +0000 (00:21 +0000)]
Added media-type support for static and dynamic ResourceLoader requests.

13 years agoFixed mis-keyed resource.
Trevor Parscal [Thu, 9 Sep 2010 22:59:30 +0000 (22:59 +0000)]
Fixed mis-keyed resource.

13 years agoChanged the license to Apache 2.0 - I also hereby grant the copyright to the Wikimedi...
Trevor Parscal [Thu, 9 Sep 2010 22:12:54 +0000 (22:12 +0000)]
Changed the license to Apache 2.0 - I also hereby grant the copyright to the Wikimedia Foundation.

13 years agoFix jQuery loading
Chad Horohoe [Thu, 9 Sep 2010 22:11:19 +0000 (22:11 +0000)]
Fix jQuery loading

13 years agoUsing constant to reduce duplication of CSS URL matching regular expression. Adjusted...
Trevor Parscal [Thu, 9 Sep 2010 21:57:59 +0000 (21:57 +0000)]
Using constant to reduce duplication of CSS URL matching regular expression. Adjusted some naming for readability.

13 years agoFixes issues with complex background rules containing extra information after the...
Trevor Parscal [Thu, 9 Sep 2010 21:41:05 +0000 (21:41 +0000)]
Fixes issues with complex background rules containing extra information after the URL, while using quotes within the url.

13 years agoAdded 2 more options for mime-type detection. We now detect if the Fileinfo PECL...
Trevor Parscal [Thu, 9 Sep 2010 21:34:44 +0000 (21:34 +0000)]
Added 2 more options for mime-type detection. We now detect if the Fileinfo PECL extension is available and use it (PHP 5.3+ will have this more commonly than older versions), then try and use the now deprecated mime_content_type, and finally resort to inferring the mime-type from the file extension. Also, now if all else fails, we will gracefully degrade functionality by not embedding resources with undeterminable mime-types.

13 years agoRemoved trailing commas mistakenly added in r72682
Trevor Parscal [Thu, 9 Sep 2010 21:04:51 +0000 (21:04 +0000)]
Removed trailing commas mistakenly added in r72682

13 years agoAdded registrations for modules that were present but not registered. Also removed...
Trevor Parscal [Thu, 9 Sep 2010 20:31:19 +0000 (20:31 +0000)]
Added registrations for modules that were present but not registered. Also removed 2 scripts; jquery.browser is being replaced by mediWiki.util.client, and jquery.collapsibleTabs belongs to the Vector/CollapsibleTabs extension.

13 years agoUpdated link to official distribution
Trevor Parscal [Thu, 9 Sep 2010 20:02:37 +0000 (20:02 +0000)]
Updated link to official distribution

13 years agoMoved stand-alone libraries to includes/libs.
Trevor Parscal [Thu, 9 Sep 2010 19:57:11 +0000 (19:57 +0000)]
Moved stand-alone libraries to includes/libs.

13 years agoRemoved depencency on wfProfile*
Trevor Parscal [Thu, 9 Sep 2010 19:54:04 +0000 (19:54 +0000)]
Removed depencency on wfProfile*

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Thu, 9 Sep 2010 19:53:33 +0000 (19:53 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-09 19:30:00 UTC)

13 years agoMoved dependency of $wgUseDataURLs out of CSSMin and into ResourceLoaderModule.
Trevor Parscal [Thu, 9 Sep 2010 19:48:48 +0000 (19:48 +0000)]
Moved dependency of $wgUseDataURLs out of CSSMin and into ResourceLoaderModule.

13 years agoPer bug 22884, using "localhost" probably won't work on Windows. However, it's not...
Chad Horohoe [Thu, 9 Sep 2010 16:48:03 +0000 (16:48 +0000)]
Per bug 22884, using "localhost" probably won't work on Windows. However, it's not a PHP bug, or even really something we should handle. It's up to the person performing the installation to ensure a connection to MySQL exists; we shouldn't presume 127.0.0.1 is a valid replacement in all Windows scenarios. So, we'll update the help info with a friendly suggestion for those who might hit this.

13 years agooutputHandler() isn't static
Chad Horohoe [Thu, 9 Sep 2010 15:37:23 +0000 (15:37 +0000)]
outputHandler() isn't static

13 years agoLocalization update for he.
Rotem Liss [Thu, 9 Sep 2010 14:22:55 +0000 (14:22 +0000)]
Localization update for he.

13 years agoUse key 'savearticle' in 'missingsummary'.
Siebrand Mazeland [Thu, 9 Sep 2010 06:55:19 +0000 (06:55 +0000)]
Use key 'savearticle' in 'missingsummary'.

13 years ago(bug 25102) Image.php throws E_STRICT. Yes, this breaks back-compat, but nothing...
Chad Horohoe [Thu, 9 Sep 2010 00:53:50 +0000 (00:53 +0000)]
(bug 25102) Image.php throws E_STRICT. Yes, this breaks back-compat, but nothing uses this anyway...mark it for removal in 1.18

13 years agoInitialise wgContLang and $wgLang.
Platonides [Wed, 8 Sep 2010 20:38:20 +0000 (20:38 +0000)]
Initialise wgContLang and $wgLang.
Follow up r72566.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Wed, 8 Sep 2010 19:49:40 +0000 (19:49 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-08 19:30:00 UTC)

13 years agoPass calling function name and patch file from DatabaseBase::sourceFile() to query...
Max Semenik [Wed, 8 Sep 2010 18:11:36 +0000 (18:11 +0000)]
Pass calling function name and patch file from DatabaseBase::sourceFile() to query() to make updater debugging easier

13 years agoUpdate comment in Category.php
Aryeh Gregor [Wed, 8 Sep 2010 18:11:28 +0000 (18:11 +0000)]
Update comment in Category.php

Per code review I gave on r72547.  I'm actually not sure how to rewrite
this so it works with all DBs -- a replace() variant that called
nextSequenceValue() if the row didn't already exist, and reused the
existing id otherwise, would perhaps be ideal.  (Speaking of which,
replace() needs to be properly factored out, with the DBMS-independent
version in DatabaseBase and the MySQL one in DatabaseMysql.)

13 years agoAdd new columns to categorylinks
Greg Sabino Mullane [Wed, 8 Sep 2010 17:51:42 +0000 (17:51 +0000)]
Add new columns to categorylinks

13 years agoMove DatabaseType to Database.php
Aryeh Gregor [Wed, 8 Sep 2010 17:48:11 +0000 (17:48 +0000)]
Move DatabaseType to Database.php

This way the required method names will show up when grepping
Database.php.  I thought we had no affectedRows() method for a minute
there, until G_SabinoMullane corrected me (good thing I think aloud
in #mediawiki).

13 years agoAdded copyright notice and class documentation block.
Trevor Parscal [Wed, 8 Sep 2010 17:38:26 +0000 (17:38 +0000)]
Added copyright notice and class documentation block.

13 years agoFix spelling of max-age in Cache-Control: header. This inconsistency in the HTTP...
Roan Kattouw [Wed, 8 Sep 2010 16:35:20 +0000 (16:35 +0000)]
Fix spelling of max-age in Cache-Control: header. This inconsistency in the HTTP standard is retarded

13 years agoReadd Special:Téléchargement as alias of Special:Upload, as it was in 1.15 (changed...
Platonides [Wed, 8 Sep 2010 14:01:30 +0000 (14:01 +0000)]
Readd Special:Téléchargement as alias of Special:Upload, as it was in 1.15 (changed in r48867).

Reported by Wikimini in http://thread.gmane.org/gmane.org.wikimedia.mediawiki/35212

13 years agoAdd profiler to global scope too
Chad Horohoe [Wed, 8 Sep 2010 11:52:15 +0000 (11:52 +0000)]
Add profiler to global scope too

13 years ago\n at EOF plz
Chad Horohoe [Wed, 8 Sep 2010 11:32:49 +0000 (11:32 +0000)]
\n at EOF plz

13 years agoFollowup r72475: assert that a job has been popped to avoid fatals
Bryan Tong Minh [Wed, 8 Sep 2010 11:25:49 +0000 (11:25 +0000)]
Followup r72475: assert that a job has been popped to avoid fatals

13 years agoAdd a CSS class to the input form
Raimond Spekking [Wed, 8 Sep 2010 11:21:08 +0000 (11:21 +0000)]
Add a CSS class to the input form
And while I am at it: Use more nice Xml/Html functions

13 years ago(bug 25087) Fix fatal in CategoryPage
Chad Horohoe [Wed, 8 Sep 2010 10:41:13 +0000 (10:41 +0000)]
(bug 25087) Fix fatal in CategoryPage

13 years ago* Follow-up r72570: svn eol-style:native
Siebrand Mazeland [Wed, 8 Sep 2010 06:13:16 +0000 (06:13 +0000)]
* Follow-up r72570: svn eol-style:native
* Trimmed trailing spaces

13 years agoAdjustments for new tables.
Greg Sabino Mullane [Wed, 8 Sep 2010 02:04:14 +0000 (02:04 +0000)]
Adjustments for new tables.

13 years agoAdd new tables.
Greg Sabino Mullane [Wed, 8 Sep 2010 02:02:28 +0000 (02:02 +0000)]
Add new tables.

13 years agoAdd quick doc for Postgres
Greg Sabino Mullane [Wed, 8 Sep 2010 01:58:07 +0000 (01:58 +0000)]
Add quick doc for Postgres

13 years agoSplit mediawiki.legacy.shared into mediawiki.legacy.shared and mediawiki.legacy.oldsh...
Trevor Parscal [Wed, 8 Sep 2010 00:04:48 +0000 (00:04 +0000)]
Split mediawiki.legacy.shared into mediawiki.legacy.shared and mediawiki.legacy.oldshared - as it should have been.

13 years agoMerged reorganization work for PHPUnit from branches/phpunit-restructure/
Trevor Parscal [Tue, 7 Sep 2010 23:02:56 +0000 (23:02 +0000)]
Merged reorganization work for PHPUnit from branches/phpunit-restructure/

13 years agoFollow-up r72349. The new makeResourceLoaderLink() doesn't need $wgScriptPath.
Platonides [Tue, 7 Sep 2010 22:55:34 +0000 (22:55 +0000)]
Follow-up r72349. The new makeResourceLoaderLink() doesn't need $wgScriptPath.

I quite agree with the TODO. Moving to ResourceLoader class seems a good idea.

13 years agoFollow-up r72561. Missed language folder.
Platonides [Tue, 7 Sep 2010 22:39:05 +0000 (22:39 +0000)]
Follow-up r72561. Missed language folder.

13 years agoRemove $wgContLanguageCode usage in core.
Platonides [Tue, 7 Sep 2010 22:37:55 +0000 (22:37 +0000)]
Remove $wgContLanguageCode usage in core.

sed -i 's/$wgContLanguageCode/$wgLanguageCode/g'
These are now the same, always. Per and since r15827.

$wgLanguageCode wins due to being the one set by LocalSettings.

$wgContLanguageCode definition at includes/Setup.php kept for now.

13 years agoRenaming phpunit to phpunit.php - this will make it possible to have a phpunit folder...
Trevor Parscal [Tue, 7 Sep 2010 22:32:47 +0000 (22:32 +0000)]
Renaming phpunit to phpunit.php - this will make it possible to have a phpunit folder here, yet doesn't break head.

13 years agofix for Bug 25031, hopefully this doesn't break other things.
Ryan Kaldari [Tue, 7 Sep 2010 21:59:38 +0000 (21:59 +0000)]
fix for Bug 25031, hopefully this doesn't break other things.

13 years agoFixed some doxygen warnings
Alexandre Emsenhuber [Tue, 7 Sep 2010 21:05:09 +0000 (21:05 +0000)]
Fixed some doxygen warnings

13 years agoPer ^demon's comment on r71430: moved doUpgrade() to DatabaseInstaller (did not remov...
Alexandre Emsenhuber [Tue, 7 Sep 2010 20:57:53 +0000 (20:57 +0000)]
Per ^demon's comment on r71430: moved doUpgrade() to DatabaseInstaller (did not remove the stub method in Oracle installer)

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Tue, 7 Sep 2010 20:50:14 +0000 (20:50 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-07 20:20:00 UTC)

13 years agoadded Maintenance::afterFinalSetup() instead of having to define a callback with...
Alexandre Emsenhuber [Tue, 7 Sep 2010 20:45:04 +0000 (20:45 +0000)]
added Maintenance::afterFinalSetup() instead of having to define a callback with MW_CMDLINE_CALLBACK

13 years agoMoved update_row_exists() to install-utils.inc since extensions may use it in LoadExt...
Alexandre Emsenhuber [Tue, 7 Sep 2010 20:42:47 +0000 (20:42 +0000)]
Moved update_row_exists() to install-utils.inc since extensions may use it in LoadExtensionSchemaUpdates hook (such ad CodeReview) and updaters.inc is no more loaded at this time since r72539

13 years agoFollow-up r32085. Delay the transaction begin until after the object is initialized.
Platonides [Tue, 7 Sep 2010 20:11:53 +0000 (20:11 +0000)]
Follow-up r32085. Delay the transaction begin until after the object is initialized.
We would get some queries into the transaction ''sometimes'', depending if it was already initialised or not, and one code path left the transaction open.

13 years agoFollow-up r71641: Fix typo to let linkTrail work
Raimond Spekking [Tue, 7 Sep 2010 18:44:35 +0000 (18:44 +0000)]
Follow-up r71641: Fix typo to let linkTrail work

13 years agoDatabaseSqliteStandalone should ignore $wgDBprefix, too
Max Semenik [Tue, 7 Sep 2010 17:34:42 +0000 (17:34 +0000)]
DatabaseSqliteStandalone should ignore $wgDBprefix, too

13 years ago* do_all_updates() is dead
Chad Horohoe [Tue, 7 Sep 2010 14:33:11 +0000 (14:33 +0000)]
* do_all_updates() is dead
* Less $wgDatabase
* update.php now uses new Maintenance class

13 years agoFollowup r72535, I suppose I shouldn't break the old installer yet
Chad Horohoe [Tue, 7 Sep 2010 12:48:48 +0000 (12:48 +0000)]
Followup r72535, I suppose I shouldn't break the old installer yet

13 years agoMove ora to oracle. Stuff expects these directories to match $wgDBtype
Chad Horohoe [Tue, 7 Sep 2010 12:46:07 +0000 (12:46 +0000)]
Move ora to oracle. Stuff expects these directories to match $wgDBtype

13 years agoPer wikitech-l discussion: it would be nice if the various DBMSs we support kept...
Chad Horohoe [Tue, 7 Sep 2010 12:37:13 +0000 (12:37 +0000)]
Per wikitech-l discussion: it would be nice if the various DBMSs we support kept all of their docs in one place. So make a place and move two already existing READMEs there. Add some info to /docs/database.txt about this as well. Postgres, Oracle, Mssql need to add some info kthnx :)

13 years agoPartial revert r72527, unrelated/unfinished changes
Chad Horohoe [Tue, 7 Sep 2010 11:37:37 +0000 (11:37 +0000)]
Partial revert r72527, unrelated/unfinished changes

13 years agoComment fix
Chad Horohoe [Tue, 7 Sep 2010 11:34:34 +0000 (11:34 +0000)]
Comment fix

13 years agoFixes for r72024:
Tim Starling [Tue, 7 Sep 2010 10:38:19 +0000 (10:38 +0000)]
Fixes for r72024:
* Renamed MediaHandler::verifyFileHook() to verifyUpload() since it isn't a hook and the fact that it operates on files is obvious.
* Separated some concerns by simply passing verifyUpload() function a file path instead of an UploadBase object and MIME type. This simplifies the implementation of subclasses, makes the function accessible to non-UploadBase callers, and avoids breaking the interface constantly due to UploadBase changes.
* Have verifyUpload() return a Status object instead of allowing the idiosyncratic and feature-poor error array convention from UploadBase to infect MediaHandler.

The required update to PagedTiffHandler will be in a subsequent commit.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Mon, 6 Sep 2010 19:28:27 +0000 (19:28 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-0^6 19:05:00 UTC)

13 years agoRewrite User::getSkin, broken in r49493 because requesting the skin for a particular...
Andrew Garrett [Mon, 6 Sep 2010 12:11:57 +0000 (12:11 +0000)]
Rewrite User::getSkin, broken in r49493 because requesting the skin for a particular title had the side-effect of changing the title associated with the stored Skin object, causing weirdness like the wrong namespace tabs.

13 years agoFollow-up r70137: Made asynchronous upload working a bit more. It now fully works...
Bryan Tong Minh [Mon, 6 Sep 2010 10:18:53 +0000 (10:18 +0000)]
Follow-up r70137: Made asynchronous upload working a bit more. It now fully works from the API; works still needs to be done for the normal UI. PHPUnit tests are updated and should cover most code paths that can be called from the API.

ApiUpload:
* Added "statuskey" parameter; this is the key that is returned by an async upload
* Refactored warnings transformation into its own function
* filename is no longer required on all uploads

UploadFromUrlJob:
* Moved upload results to its own entry in $_SESSION, instead of using the one from upload
* Fix storing in session by calling wfSetupSession and session_write_close where needed

Tests:
* Set $wgUser in ApiSetup, so that individual tests don't have to do this for themselves
* Added tests to cover most code paths from the API
* Fixed UploadFromUrlTestSuite so that its tests are included in a regular phpunit invocation (something strange with the AutoLoader; not sure what)

Other files:
* Allow passing session id to wfSetupSession
* Explicitly close the session before doing jobs, so that jobs can't manipulate the current session

13 years agoFirefox interpretes links starting with // as if they would start with http://. If...
Jens Frank [Sun, 5 Sep 2010 21:54:01 +0000 (21:54 +0000)]
Firefox interpretes links starting with // as if they would start with . If the wiki is installed in /, we get // as path

13 years agoGet rid of Language::usesFirstLettersInLists()
Aryeh Gregor [Sun, 5 Sep 2010 20:43:00 +0000 (20:43 +0000)]
Get rid of Language::usesFirstLettersInLists()

Added by me in r69810, but never used.  It's not clear to me if it's
needed, but if so, it can be re-added later.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2010...
Raimond Spekking [Sun, 5 Sep 2010 19:25:47 +0000 (19:25 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2010-09-05 18:56:00 UTC)

13 years agocoding style tweaks
Jack Phoenix [Sun, 5 Sep 2010 18:35:34 +0000 (18:35 +0000)]
coding style tweaks