lhc/web/wiklou.git
12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 23 Jan 2012 20:08:42 +0000 (20:08 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoAdd the new SHA1 revision field to the XML export, add SHA1 field to export-0.6.xsd...
Diederik van Liere [Mon, 23 Jan 2012 19:48:20 +0000 (19:48 +0000)]
Add the new SHA1 revision field to the XML export, add SHA1 field to export-0.6.xsd and fix namespace element from string to integer.

12 years agoFix for r109720: replace the last two regexes with plain string functions. The regula...
Tim Starling [Mon, 23 Jan 2012 19:35:05 +0000 (19:35 +0000)]
Fix for r109720: replace the last two regexes with plain string functions. The regular expression used for stripping the last path component from the output was inefficient, because PCRE does not optimise "$" anchors correctly. It scans the entire string forwards, instead of scanning backwards starting from the anchor. Passes tests.

12 years agoMake arguments to phpunit.php work. It's hard to believe this could have been broken...
Tim Starling [Mon, 23 Jan 2012 19:06:09 +0000 (19:06 +0000)]
Make arguments to phpunit.php work. It's hard to believe this could have been broken since r79164, so maybe it was a change in the command line parser that PHPUnit uses that made it treat any options after the first non-option argument as being plain arguments rather than actual options.

12 years agoCorrect mw.Uri.decode to properly decode encoded + signs. Fixes bug 33902
Derk-Jan Hartman [Mon, 23 Jan 2012 18:11:28 +0000 (18:11 +0000)]
Correct mw.Uri.decode to properly decode encoded + signs. Fixes bug 33902
Patch by Fomafix

12 years agoRedoing r108960 with history
Sam Reed [Mon, 23 Jan 2012 17:02:51 +0000 (17:02 +0000)]
Redoing r108960 with history

If it was a 3rd party library, there probably wouldn't have been any use doing this

12 years agoRevert r108987 to copy properly
Sam Reed [Mon, 23 Jan 2012 16:59:32 +0000 (16:59 +0000)]
Revert r108987 to copy properly

12 years agoCleanup to statistics:
Alexandre Emsenhuber [Mon, 23 Jan 2012 16:27:13 +0000 (16:27 +0000)]
Cleanup to statistics:
* Removed 'pcache_miss_invalid' from stats.php and clear_stats.php, no longer used
* Added missing 'job-insert' and 'job-pop' to clear_stats.php
* Added missing call to wfIncrStats( 'pcache_miss_absent' ) when there's no key in ParserCacge::get()
* Removed useless 'pcache_not_possible' stat from OutputPage::addWikiTextTitle() since that function is mostly used for interface messages

12 years agoAdding the jquery cycle plugin. This is being used by the UnitTest extension. See...
Jeremy Postlethwaite [Mon, 23 Jan 2012 16:13:20 +0000 (16:13 +0000)]
Adding the jquery cycle plugin. This is being used by the UnitTest extension. See r109762.

12 years agoupdate wgUsersNotifiedOnAllChanges doc (r109826)
Antoine Musso [Mon, 23 Jan 2012 16:08:38 +0000 (16:08 +0000)]
update wgUsersNotifiedOnAllChanges doc (r109826)

12 years agoBug 33880 - $wgUsersNotifiedOnAllChanges should not send e-mail to user who made...
Sam Reed [Mon, 23 Jan 2012 15:04:22 +0000 (15:04 +0000)]
Bug 33880 - $wgUsersNotifiedOnAllChanges should not send e-mail to user who made the edit.

12 years agoFileRepo: check constructor parameters
Antoine Musso [Mon, 23 Jan 2012 14:50:54 +0000 (14:50 +0000)]
FileRepo: check constructor parameters

new FileRepo() requires an array of parameters having at least the
'name' and 'backend' key setup.

TODO: 'backend' keyword should probably default to FileBackend.

12 years agoFileOp: allow creation of an empty file
Antoine Musso [Mon, 23 Jan 2012 14:48:49 +0000 (14:48 +0000)]
FileOp: allow creation of an empty file

When creating a file but ommitting the 'content' key, it would throw
a notice. Using getParams let us forget about the 'content' key and
hence create files with no content.

12 years agocleanly handle wikiId on FileBackendBase construction
Antoine Musso [Mon, 23 Jan 2012 11:03:45 +0000 (11:03 +0000)]
cleanly handle wikiId on FileBackendBase construction

Use the default array added by r109814

12 years agoget a null lock manager by default
Antoine Musso [Mon, 23 Jan 2012 10:59:02 +0000 (10:59 +0000)]
get a null lock manager by default

12 years ago* Added some wfProfileIn() calls to file backend code.
Aaron Schulz [Mon, 23 Jan 2012 08:33:31 +0000 (08:33 +0000)]
* Added some wfProfileIn() calls to file backend code.
* Made FileBackend::getFileProps() final.
* Added exception needed in SwiftFileBackend::getConnection().
* Various FileBackendTests fixes and additions. Optimized it a bit by keeping the backend instance in memory.

12 years agoIn LockServerDaemon:
Aaron Schulz [Mon, 23 Jan 2012 02:55:15 +0000 (02:55 +0000)]
In LockServerDaemon:
* Factored out LockHolder class from main class
* Tweaked a few socket options (using a non-blocking accept() and keep alives for new clients)

12 years agoreverting r109723 because of slush.
Daniel Kinzler [Sun, 22 Jan 2012 20:46:39 +0000 (20:46 +0000)]
reverting r109723 because of slush.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sun, 22 Jan 2012 20:27:25 +0000 (20:27 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoRevert feature out of r109562, r109564, r109570
Sam Reed [Sun, 22 Jan 2012 17:33:44 +0000 (17:33 +0000)]
Revert feature out of r109562, r109564, r109570

Leaving typo/brace fixes and other minor code improvements

12 years agoRm extra space
Niklas Laxström [Sun, 22 Jan 2012 12:16:47 +0000 (12:16 +0000)]
Rm extra space

12 years agoIntroducing optional support for <a> tags, to be used with microdata resp. RDFa,...
Daniel Kinzler [Sun, 22 Jan 2012 05:58:23 +0000 (05:58 +0000)]
Introducing optional support for <a> tags, to be used with microdata resp. RDFa, as originally suggested in r58694.
This is reintroduced after a discussion with TimStarling considering the discussion about r58717.
Note that a change to the parser will be needed to cause links from <a> tags to be recorded in the externallink table.

12 years agoFollow-up 102587 to address performance concerns in wfRemoveDotSegments.
gicode [Sun, 22 Jan 2012 04:57:37 +0000 (04:57 +0000)]
Follow-up 102587 to address performance concerns in wfRemoveDotSegments.

12 years agoSimplified last_modified timestamp conversion in SwiftFileBackend to just use wfTimes...
Aaron Schulz [Sun, 22 Jan 2012 03:25:19 +0000 (03:25 +0000)]
Simplified last_modified timestamp conversion in SwiftFileBackend to just use wfTimestamp()

12 years ago[Core JS] mediawiki.legacy.protect should be loaded from the top
Krinkle [Sun, 22 Jan 2012 02:51:06 +0000 (02:51 +0000)]
[Core JS] mediawiki.legacy.protect should be loaded from the top
* The global object created by this legacy module is references from inline on-event attributes as well as from inline <script>'s by ProtectionForm.php
* Needs to be loaded before any of that happens
* Fixes bug 33660

12 years ago[mediawiki.util] minor code cleanup
Krinkle [Sun, 22 Jan 2012 02:37:45 +0000 (02:37 +0000)]
[mediawiki.util] minor code cleanup
* Remove distance between variable assignment and usage in mw.util.ini
* Change awkwardly indention from extended var statement into separate flush-left assignments and a simple var statement.
* whitespace etc. (ignore whitespace with -x-uw or on ViewVC diff)

12 years agoReverting out r108055 for ease
Sam Reed [Sun, 22 Jan 2012 02:01:58 +0000 (02:01 +0000)]
Reverting out r108055 for ease

12 years agoAdd braces
Sam Reed [Sun, 22 Jan 2012 00:58:47 +0000 (00:58 +0000)]
Add braces

Cache result of variable calls

Minor RELEASE-NOTES-1.19 updates

12 years ago* Modified StoreBatchTest and FileBackendTest to allow specifying a registered backen...
Aaron Schulz [Sun, 22 Jan 2012 00:34:04 +0000 (00:34 +0000)]
* Modified StoreBatchTest and FileBackendTest to allow specifying a registered backend to use
* Improved FileBackendTest file pruning and added more getFileList() tests

12 years ago* Another fix for SwiftFileBackend file listings
Aaron Schulz [Sun, 22 Jan 2012 00:33:20 +0000 (00:33 +0000)]
* Another fix for SwiftFileBackend file listings
* Fixed bogus array key reference in SwiftFileBackend constructor

12 years ago* Fixed bugs in SwiftFileBackend file listing code
Aaron Schulz [Sun, 22 Jan 2012 00:06:18 +0000 (00:06 +0000)]
* Fixed bugs in SwiftFileBackend file listing code
* Clear container cache in SwiftFileBackend when clearCache() is called
* Updated a comment and fixed a comment typo

12 years ago[Unit testing] Add unit tests for Xml::namespaceSelector
Krinkle [Sat, 21 Jan 2012 22:26:14 +0000 (22:26 +0000)]
[Unit testing] Add unit tests for Xml::namespaceSelector
* Making Language::namespaceNames explicitly public. It already was but since is being used as such outside the class

12 years ago* (bug 33865) Exception thrown when using API sandbox action=parse
Sam Reed [Sat, 21 Jan 2012 21:36:07 +0000 (21:36 +0000)]
* (bug 33865) Exception thrown when using API sandbox action=parse

The actual bug is from wrongly using title when the user wanted page, and hence weren't passing any wikitext...

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sat, 21 Jan 2012 21:12:30 +0000 (21:12 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago[Action] Fix action=ajax
Krinkle [Sat, 21 Jan 2012 20:13:57 +0000 (20:13 +0000)]
[Action] Fix action=ajax
* Move Ajax stuff to before regular title/page action handling. Ajax actions circumvent most stuff and return early from the regular execution.
* Needed because getAction / Action-classes can't handle action=ajax properly, which isn't until MediaWiki::performAction
* Also undo's debug 'true' in the if-statement from r109688

12 years ago[Wiki.php] Minor clean up
Krinkle [Sat, 21 Jan 2012 20:10:35 +0000 (20:10 +0000)]
[Wiki.php] Minor clean up
* Comment syntax consistency
* Re-use saved getTitle()
* Doing in separate commit for review ease

12 years ago+@since for getActionName (r109678)
Krinkle [Sat, 21 Jan 2012 17:21:53 +0000 (17:21 +0000)]
+@since for getActionName (r109678)

12 years agoFix database table name, it is 'profiling', not 'profileinfo'
Alexandre Emsenhuber [Sat, 21 Jan 2012 16:45:32 +0000 (16:45 +0000)]
Fix database table name, it is 'profiling', not 'profileinfo'

12 years agoBug 33845: Headings become cursive in TOC when they contain an image
Platonides [Sat, 21 Jan 2012 16:27:27 +0000 (16:27 +0000)]
Bug 33845: Headings become cursive in TOC when they contain an image
Fixes the problems with r102179 and r102179, as there are
valid tags which begin the same, which meant they were not removed from
the TOC (the second regex, intended to remove tag parameters, then converted
<img or <blockquote> into <i> / <b>).
The same problem existed in the original regex, but as there are no valid
tags which begin with sup or sub, it never happened).

Added comment explaining the tocline regex, and added a bunch of parser tests.

12 years ago[Resources] Add missing or implied dependencies
Krinkle [Sat, 21 Jan 2012 13:31:51 +0000 (13:31 +0000)]
[Resources] Add missing or implied dependencies
* mediawiki.action.watch.ajax:
-- Depends on mediawiki.api.watch>mediawiki.api>mediawiki.util
-- But also uses mw.util itself, so adding it here as well. mw.Api might one day not use mw.util
* mediawiki.special.block: Uses mw.util.isIPv4Address / mw.util.isIPv6Address
* mediawiki.special.changeemail: Uses mw.util.validateEmail
* mediawiki.legacy.upload: Uses mw.util.wikiScript
* Uses mw.util.wikiUrlencode

Commit is inspired by and a superset of the patch provided by Rainer@Rillke.eu at bug 33760.

12 years agoFix bug 32948:
Alexandre Emsenhuber [Sat, 21 Jan 2012 07:59:25 +0000 (07:59 +0000)]
Fix bug 32948:
* {{REVISIONID}} and related variables are no longer blank after doing a null edit
* {{REVISIONID}} and related variables are no longer blank after calling action=purge&forcelinkupdate

12 years agoReinstate r109223 per CR + fixes
Krinkle [Sat, 21 Jan 2012 06:57:34 +0000 (06:57 +0000)]
Reinstate r109223 per CR + fixes
* Action/Context stuff is pretty deeply nested everywhere.
* Should be okay now, at last.
* Reverts reverting r109243
* Same as r109223, except adding this:

+ if ( !$context->canUseWikiPage() ) {
+ return 'view';
+ }

12 years ago[JSTesting] update QUnit html
Krinkle [Sat, 21 Jan 2012 06:18:38 +0000 (06:18 +0000)]
[JSTesting] update QUnit html
* Through all QUnit updates, the html was never updated (only the JS/CSS files).  Updating html now according to QUnit documentation. (introduced a new html element used for adding test document elements which are automatically cleaned up. the JS/CSS for QUnit was already referring to this but silently failing)

12 years ago* r109659: actually return the exact type we say we do
Aaron Schulz [Sat, 21 Jan 2012 00:04:09 +0000 (00:04 +0000)]
* r109659: actually return the exact type we say we do
* Made use of FileRepo::cleanupBatch() in ForeignAPIFile::purgeThumbnails()

12 years ago* Added FileBackend::parentStoragePath() convenience function for getting parent...
Aaron Schulz [Fri, 20 Jan 2012 22:46:35 +0000 (22:46 +0000)]
* Added FileBackend::parentStoragePath() convenience function for getting parent directories.
* In StoreBatchTest: sed proper clean() function to remove temp dirs (follows up r109641). Also removed some commented out code.
* Fixed temp dir leakage in FileBackendTest.

12 years agoMake sure FSFileBackend clears the php stat cache in clearCache(). Otherwise it will...
Aaron Schulz [Fri, 20 Jan 2012 21:55:15 +0000 (21:55 +0000)]
Make sure FSFileBackend clears the php stat cache in clearCache(). Otherwise it will just clear the FileBackend cache and refetch the same cached data from PHP's stat cache.

12 years agoSimilar to r108937: fixed breakage where the zone urls were defined as relative paths.
Aaron Schulz [Fri, 20 Jan 2012 20:52:09 +0000 (20:52 +0000)]
Similar to r108937: fixed breakage where the zone urls were defined as relative paths.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Fri, 20 Jan 2012 20:41:42 +0000 (20:41 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoFix folder leakage.
Platonides [Fri, 20 Jan 2012 20:15:26 +0000 (20:15 +0000)]
Fix folder leakage.

12 years agoIf you are going to leak folders, at least give them your surname.
Platonides [Fri, 20 Jan 2012 19:46:27 +0000 (19:46 +0000)]
If you are going to leak folders, at least give them your surname.

12 years agoCan't PHP just DWIM? Ping r109628
Niklas Laxström [Fri, 20 Jan 2012 19:09:55 +0000 (19:09 +0000)]
Can't PHP just DWIM? Ping r109628

12 years agoReducy query flood in r96546. Allow formatters to provide titles for LinkBatch.
Niklas Laxström [Fri, 20 Jan 2012 16:57:46 +0000 (16:57 +0000)]
Reducy query flood in r96546. Allow formatters to provide titles for LinkBatch.

12 years ago* Inlinise Preferences::loadOldSearchNs() in SearchEngine::userNamespaces(); the...
Alexandre Emsenhuber [Fri, 20 Jan 2012 16:12:34 +0000 (16:12 +0000)]
* Inlinise Preferences::loadOldSearchNs() in SearchEngine::userNamespaces(); the latter is the only caller of the former
* Made code clearer and removed duplication
* Marked Preferences::loadOldSearchNs() as deprecated

12 years agoSplit LogPager out of LogEventsList.php
Niklas Laxström [Fri, 20 Jan 2012 09:44:39 +0000 (09:44 +0000)]
Split LogPager out of LogEventsList.php

12 years agoMessage change I forgot to commit in r109583
Aaron Schulz [Fri, 20 Jan 2012 00:12:20 +0000 (00:12 +0000)]
Message change I forgot to commit in r109583

12 years ago[mediawiki.js] edit comment
Krinkle [Thu, 19 Jan 2012 23:52:46 +0000 (23:52 +0000)]
[mediawiki.js] edit comment
* Follows-up r108230

12 years ago* Follow-up r109009: Check that paths are usable in FileOp::doPrecheck(). Also lock...
Aaron Schulz [Thu, 19 Jan 2012 23:18:03 +0000 (23:18 +0000)]
* Follow-up r109009: Check that paths are usable in FileOp::doPrecheck(). Also lock parent directories to avoid prepare()/clean() race conditions for FS backends.
* Fixed bogus $params var in logException() call in SwiftFileBackend.
* Added 'latest' param to FileBackendMultliWrite::consistencyCheck().
* Dummy-proof FileBackend::getFileStat() w.r.t the 'latest' param and removed related FileOp::allowStaleReads() comment.
* Tweaked backend-fail-batchsize message from r109469.

12 years agocomment wgLocalFileRepo has an example usage in Setup.php
Antoine Musso [Thu, 19 Jan 2012 23:06:23 +0000 (23:06 +0000)]
comment wgLocalFileRepo has an example usage in Setup.php

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 19 Jan 2012 21:38:41 +0000 (21:38 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agor109562: Register new message key for maintenance script
Raimond Spekking [Thu, 19 Jan 2012 21:12:37 +0000 (21:12 +0000)]
r109562: Register new message key for maintenance script

12 years agoFollowup r109562
Sam Reed [Thu, 19 Jan 2012 20:26:10 +0000 (20:26 +0000)]
Followup r109562

Don't use such a naieve host check

12 years ago* (bug 32341) Add upload by URL domain limitation.
Sam Reed [Thu, 19 Jan 2012 19:16:06 +0000 (19:16 +0000)]
* (bug 32341) Add upload by URL domain limitation.

12 years agoRemove extra space, ping r109550
Niklas Laxström [Thu, 19 Jan 2012 19:11:59 +0000 (19:11 +0000)]
Remove extra space, ping r109550

12 years agofollowup to r107187 - Making textarea width to be 100% in all skins
Benny Situ [Thu, 19 Jan 2012 18:22:53 +0000 (18:22 +0000)]
followup to r107187 - Making textarea width to be 100% in all skins

12 years agoDocumentation
Sam Reed [Thu, 19 Jan 2012 17:27:29 +0000 (17:27 +0000)]
Documentation

Remove unused globals

12 years agodesign file for nested tables CSS
Antoine Musso [Thu, 19 Jan 2012 17:22:36 +0000 (17:22 +0000)]
design file for nested tables CSS

See:
Bug 33752 - Wikitable uses CSS not supported in IE6
r107669

12 years agoAdd some escaping to r109547, 109548, 109549
Sam Reed [Thu, 19 Jan 2012 16:55:42 +0000 (16:55 +0000)]
Add some escaping to r109547, 109548, 109549

Improve RELEASE-NOTES-1.19 also

12 years ago* (bug 33819) Display filesize on Special:NewFiles in appropriate unit.
Sam Reed [Thu, 19 Jan 2012 16:44:49 +0000 (16:44 +0000)]
* (bug 33819) Display filesize on Special:NewFiles in appropriate unit.

Do the same for the rest of the file usages of 'nbytes' in Generic.php

12 years agoLike r109547, display file size in appropriate units on mimesearch
Sam Reed [Thu, 19 Jan 2012 16:41:04 +0000 (16:41 +0000)]
Like r109547, display file size in appropriate units on mimesearch

12 years ago* (bug 33819) Display filesize on Special:NewFiles in appropriate unit.
Sam Reed [Thu, 19 Jan 2012 16:37:54 +0000 (16:37 +0000)]
* (bug 33819) Display filesize on Special:NewFiles in appropriate unit.

12 years agoCache gallery object, don't create a new one unless we need to
Sam Reed [Thu, 19 Jan 2012 16:33:57 +0000 (16:33 +0000)]
Cache gallery object, don't create a new one unless we need to

Make getStartBody return something

12 years agoFix stray comma from r109537
Sam Reed [Thu, 19 Jan 2012 15:22:28 +0000 (15:22 +0000)]
Fix stray comma from r109537

12 years agoDocumentation and whitespace
Sam Reed [Thu, 19 Jan 2012 14:56:18 +0000 (14:56 +0000)]
Documentation and whitespace

Clearing another w/c

12 years agoRemove unused globals
Sam Reed [Thu, 19 Jan 2012 14:17:22 +0000 (14:17 +0000)]
Remove unused globals

Remove pointless continue;

Clearing up w/c

12 years agoLess Title Case
Niklas Laxström [Thu, 19 Jan 2012 11:00:48 +0000 (11:00 +0000)]
Less Title Case

12 years ago12em was too narrow, 18 seems to be better
Niklas Laxström [Thu, 19 Jan 2012 11:00:18 +0000 (11:00 +0000)]
12em was too narrow, 18 seems to be better

12 years agoTable headers looked ugly without the same padding as content
Niklas Laxström [Thu, 19 Jan 2012 10:58:49 +0000 (10:58 +0000)]
Table headers looked ugly without the same padding as content

12 years agoChange $wgDebugFunctionEntry's default value from 0 to false; it is supposed to be...
Alexandre Emsenhuber [Thu, 19 Jan 2012 10:08:38 +0000 (10:08 +0000)]
Change $wgDebugFunctionEntry's default value from 0 to false; it is supposed to be a boolean, not an integer.

12 years ago$wgLanguageCode goes with $wgContLang, not $wgLang. This was breaking ApiBlockTest...
Alexandre Emsenhuber [Thu, 19 Jan 2012 10:05:38 +0000 (10:05 +0000)]
$wgLanguageCode goes with $wgContLang, not $wgLang. This was breaking ApiBlockTest because $wgContLang->getCode() != $wgLanguageCode.

12 years agoTypofix, ping r109446
Niklas Laxström [Thu, 19 Jan 2012 09:20:32 +0000 (09:20 +0000)]
Typofix, ping r109446

12 years agoReverted r109062 per code slush (also has a CR complaint)
Aaron Schulz [Thu, 19 Jan 2012 02:26:10 +0000 (02:26 +0000)]
Reverted r109062 per code slush (also has a CR complaint)

12 years agoRenamed 'overwriteDest' FileBackend operation parameter to just 'overwrite', which...
Aaron Schulz [Thu, 19 Jan 2012 02:24:49 +0000 (02:24 +0000)]
Renamed 'overwriteDest' FileBackend operation parameter to just 'overwrite', which is shorter and more consistent with 'overwriteSame'

12 years agoIn FileBackend/FileOp:
Aaron Schulz [Thu, 19 Jan 2012 02:07:48 +0000 (02:07 +0000)]
In FileBackend/FileOp:
* Added a sane default max file size to FileBackend. Operation batches need to check this before trying anything.
* Temporarily adjust the PHP execution time limit in attemptBatch() to reduce the chance of dying in the middle of it. Also added a maximum batch size limit.
* Added some code comments.

12 years agoUpdate comment
mrbluesky [Thu, 19 Jan 2012 02:04:30 +0000 (02:04 +0000)]
Update comment

12 years agoComments on status codes
mrbluesky [Thu, 19 Jan 2012 01:51:27 +0000 (01:51 +0000)]
Comments on status codes

12 years ago(bug 32899) Alphabetical sorting for methods and properties in doxygen
mrbluesky [Wed, 18 Jan 2012 22:46:26 +0000 (22:46 +0000)]
(bug 32899) Alphabetical sorting for methods and properties in doxygen

12 years agoAdditional doc/comments
mrbluesky [Wed, 18 Jan 2012 22:40:51 +0000 (22:40 +0000)]
Additional doc/comments

12 years agoAdd __METHOD__ to begin/commit
Sam Reed [Wed, 18 Jan 2012 21:27:28 +0000 (21:27 +0000)]
Add __METHOD__ to begin/commit

Improve error message from r109433

12 years agoJust experienced with commons. Dealt with UploadStashBadPathException
Sam Reed [Wed, 18 Jan 2012 21:20:50 +0000 (21:20 +0000)]
Just experienced with commons. Dealt with UploadStashBadPathException

path doesn't exist
Backtrace:
#0 /home/wikipedia/common/php-1.18/maintenance/cleanupUploadStash.php(68): UploadStash->getFile('zyvzeiza5hg.xab...', true)
#1 /home/wikipedia/common/php-1.18/maintenance/doMaintenance.php(105): UploadStashCleanup->execute()
#2 /home/wikipedia/common/php-1.18/maintenance/cleanupUploadStash.php(75): require_once('/home/wikipedia...')
#3 /home/wikipedia/common/multiversion/MWScript.php(73): require_once('/home/wikipedia...')
#4 {main}

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Wed, 18 Jan 2012 21:07:15 +0000 (21:07 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoMake time of '-total' item correct if using 'user' time metric
Alexandre Emsenhuber [Wed, 18 Jan 2012 20:01:46 +0000 (20:01 +0000)]
Make time of '-total' item correct if using 'user' time metric

12 years agoIn SwiftFileBackend:
Aaron Schulz [Wed, 18 Jan 2012 19:57:32 +0000 (19:57 +0000)]
In SwiftFileBackend:
* r108944: doCleanInternal() should delete empty containers only if the container dir was given.
* Made doSecureInternal() set container permissions. Also renamed swiftProxyUser -> swiftAnonUser.
* Made doGetFileStat() respect the 'latest' parameter (using r109235).
* Fixed connTTL default and renamed it to authTTL. Also added explicit close() call to getConnection().
* Reduced RTTs in doPrepareInternal() by checking getContainer() first (which is process cached).
* Killed an RTT in doStoreInternal(), doCreateInternal(), and doCopyInternal() by using create_object(). Also cleaned up logic with regards to the destination CF_Object object fields getting preloaded before write().
* Cleanups to getLocalCopy(); only create the tmp file if get_object() succeeds to short-circuits things.
* Made getContainer() limit the container cache size for sanity.
* Simplified doDeleteInternal() code a bit.
* Renamed $destRel => $dstRel for consistency.

12 years agoRemove support for the deprecated and no longer used in trunk hook MagicWordMagicWords.
Siebrand Mazeland [Wed, 18 Jan 2012 18:20:50 +0000 (18:20 +0000)]
Remove support for the deprecated and no longer used in trunk hook MagicWordMagicWords.

12 years agoUpdate documentation.
Siebrand Mazeland [Wed, 18 Jan 2012 17:53:04 +0000 (17:53 +0000)]
Update documentation.

12 years agoUpdate documentation as LanguageGetMagic hook is deprecated.
Siebrand Mazeland [Wed, 18 Jan 2012 17:43:08 +0000 (17:43 +0000)]
Update documentation as LanguageGetMagic hook is deprecated.

12 years agoMWDebugTest: clear log before running tests
Antoine Musso [Wed, 18 Jan 2012 15:58:25 +0000 (15:58 +0000)]
MWDebugTest: clear log before running tests

Some other test could have added their own logs, for example
deprecated notice. In that case, the first test will fail because
the log array already has some content :-b

12 years agotests: mark tests requiring a database connection
Antoine Musso [Wed, 18 Jan 2012 15:50:00 +0000 (15:50 +0000)]
tests: mark tests requiring a database connection

12 years agoFix profiling, that function is not profiled
Alexandre Emsenhuber [Wed, 18 Jan 2012 14:48:35 +0000 (14:48 +0000)]
Fix profiling, that function is not profiled

12 years agoPass some more __METHOD__ to DatabaseBase::begin() and DatabaseBase::commit()
Alexandre Emsenhuber [Wed, 18 Jan 2012 12:10:16 +0000 (12:10 +0000)]
Pass some more __METHOD__ to DatabaseBase::begin() and DatabaseBase::commit()

12 years agodbg toolbar: prevents screen jumping
Antoine Musso [Wed, 18 Jan 2012 10:36:45 +0000 (10:36 +0000)]
dbg toolbar: prevents screen jumping

preventDefault() ask the browser to ignore URL fragment which
we handle manually (by closing/opening tabs).

Works with Hovzer plugin added by r107982
ping r105122