lhc/web/wiklou.git
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

12 years agoFollow-up r107881: revert. Adding forgotten part in r109260.
Siebrand Mazeland [Wed, 18 Jan 2012 08:05:27 +0000 (08:05 +0000)]
Follow-up r107881: revert. Adding forgotten part in r109260.

12 years agoCorrect typo in comment, so that it reflects the spec and the actual value in
Gabriel Wicke [Wed, 18 Jan 2012 01:38:44 +0000 (01:38 +0000)]
Correct typo in comment, so that it reflects the spec and the actual value in
the regexp.

12 years agoRevert r107881 per CR.
Siebrand Mazeland [Wed, 18 Jan 2012 00:26:11 +0000 (00:26 +0000)]
Revert r107881 per CR.

12 years agoReverted r109223 per CR
Aaron Schulz [Tue, 17 Jan 2012 23:07:15 +0000 (23:07 +0000)]
Reverted r109223 per CR

12 years agor108749: added missing backend-fail-contenttype message
Aaron Schulz [Tue, 17 Jan 2012 22:56:43 +0000 (22:56 +0000)]
r108749: added missing backend-fail-contenttype message

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Tue, 17 Jan 2012 22:10:16 +0000 (22:10 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years ago[Actions] Move action logic out of MediaWiki::getAction/MediaWiki::performAction...
Krinkle [Tue, 17 Jan 2012 21:49:27 +0000 (21:49 +0000)]
[Actions] Move action logic out of MediaWiki::getAction/MediaWiki::performAction into Action::getActionName.
* Follows-up r109195
* Reverts/Redoes r108342, r108343, r108345

* Contributes to solution of bug 27930 - Ability to get current action (The Right Way)

12 years ago[Actions] Move the remaining actions out of MediaWiki::performAction into single...
Krinkle [Tue, 17 Jan 2012 19:56:08 +0000 (19:56 +0000)]
[Actions] Move the remaining actions out of MediaWiki::performAction into single action classes (finally).

- [Actions] -
* I am aware that eventually these classes should be more than just a few lines re-directing control to WikiPage, but I'm keeping these commits as uncontroversial as possible due to feature freeze. Refactor could be done later.
* Contributes to solution of bug 27930 - Ablity to get current action (The Right Way)
* Final goal: Get the current action without needing access to Wiki.php internals (i.e. with Action::factory in one hand and an instance of IContextSource in the other)
* Required for proper fix of r108342/108343 (currently marked FIXME)

12 years ago[jquery.footHovzer] Remove buggy scrollstate preserver
Krinkle [Tue, 17 Jan 2012 17:39:30 +0000 (17:39 +0000)]
[jquery.footHovzer] Remove buggy scrollstate preserver
* Intended to preserver scroll-state (which is shifted when an element to the bottom gains height). However too unstable to be more handy that it is annoying when it is not.
* Follows-up r107982

12 years agodeprecated $query2 in Title.php
Antoine Musso [Tue, 17 Jan 2012 16:42:53 +0000 (16:42 +0000)]
deprecated $query2 in Title.php

$query2 was used to pass a variant. Make that deprecated, the
recommanded way is to use an array as a first parameter. Ex:

 $this->getLocalUrl( array( 'variant' => 'foo' ) );

Ping r105919

12 years agoFixed reading from file from r108774
Sam Reed [Tue, 17 Jan 2012 13:29:42 +0000 (13:29 +0000)]
Fixed reading from file from r108774

12 years ago* Reordered code to not create a RequestContext if the title is invalid
Alexandre Emsenhuber [Tue, 17 Jan 2012 12:38:23 +0000 (12:38 +0000)]
* Reordered code to not create a RequestContext if the title is invalid
* Use Article::newFromTitle() instead of new Article()
* Set the WikiPage in the context from the created Article object

12 years agoIf you want to display miliseconds, make the time be really miliseconds and not seconds
Alexandre Emsenhuber [Tue, 17 Jan 2012 12:19:51 +0000 (12:19 +0000)]
If you want to display miliseconds, make the time be really miliseconds and not seconds

12 years agoPass __METHOD__ to DatabaseBase::begin() and DatabaseBase::commit()
Alexandre Emsenhuber [Tue, 17 Jan 2012 11:38:00 +0000 (11:38 +0000)]
Pass __METHOD__ to DatabaseBase::begin() and DatabaseBase::commit()

12 years agodbg toolbar: makes pane title consistent
Antoine Musso [Tue, 17 Jan 2012 10:10:21 +0000 (10:10 +0000)]
dbg toolbar: makes pane title consistent

Example output:
Console (1) | Queries (45) | Debug Log (21) | Request | PHP includes (131)

A null / undefined / 0 value will skip the parentheses output.

12 years agodbg toolbar query list
Antoine Musso [Tue, 17 Jan 2012 09:58:00 +0000 (09:58 +0000)]
dbg toolbar query list

* add headers (using <th> instead of <colgroup>
* hardcoded width that looks fine to me. 4em is enoug for query count
* split function name / execution time in their own column

12 years agoMake the QunitTestResources in sync with qunit/index.html.
Santhosh Thottingal [Tue, 17 Jan 2012 08:54:39 +0000 (08:54 +0000)]
Make the QunitTestResources in sync with qunit/index.html.
JqueryMsg tests were not preset in QunitTestResources.

12 years ago* Fixed type check in StreamFile::prepareForStream() for 404s
Aaron Schulz [Tue, 17 Jan 2012 05:34:01 +0000 (05:34 +0000)]
* Fixed type check in StreamFile::prepareForStream() for 404s
* Code comment tweaks and fixes

12 years agoAdded CurlHttpRequest to AutoLoader.php
Aaron Schulz [Tue, 17 Jan 2012 03:58:41 +0000 (03:58 +0000)]
Added CurlHttpRequest to AutoLoader.php

12 years agoadded missing semicolon
Jeroen De Dauw [Tue, 17 Jan 2012 00:33:44 +0000 (00:33 +0000)]
added missing semicolon

12 years agoForce left-to-right directionality on the QUnit output and apply the appropriate...
Amir E. Aharoni [Tue, 17 Jan 2012 00:23:07 +0000 (00:23 +0000)]
Force left-to-right directionality on the QUnit output and apply the appropriate directionality to its header, since it can be translated.

12 years agoFollow up to r105855 - now with updated phpunit tests.
Amir E. Aharoni [Tue, 17 Jan 2012 00:17:55 +0000 (00:17 +0000)]
Follow up to r105855 - now with updated phpunit tests.

12 years agoFollow-up r108185: removed now unused ALLOW_STALE param
Aaron Schulz [Mon, 16 Jan 2012 22:54:22 +0000 (22:54 +0000)]
Follow-up r108185: removed now unused ALLOW_STALE param

12 years ago* Use WikiPage instead of Article to call updateRevisionOn()
Alexandre Emsenhuber [Mon, 16 Jan 2012 21:54:24 +0000 (21:54 +0000)]
* Use WikiPage instead of Article to call updateRevisionOn()
* Also lock 'user' table, needed in Revision::newFromId()

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

12 years agoOnly run some MWDebug code when really needed:
Alexandre Emsenhuber [Mon, 16 Jan 2012 21:29:05 +0000 (21:29 +0000)]
Only run some MWDebug code when really needed:
* Add the mediawiki.debug module from OutputPage::addDefaultModules() along with other modules
* Get the request information when building the JS output instead of in Setup.php

12 years agofirefox does not honor colgroup width with fixed layout
Antoine Musso [Mon, 16 Jan 2012 21:13:48 +0000 (21:13 +0000)]
firefox does not honor colgroup width with fixed layout

12 years agoUpdate documentation for ImportHandleRevisionXMLTag
Sam Reed [Mon, 16 Jan 2012 15:49:32 +0000 (15:49 +0000)]
Update documentation for ImportHandleRevisionXMLTag

12 years agoTweak 'protect-text'.
Siebrand Mazeland [Mon, 16 Jan 2012 14:27:46 +0000 (14:27 +0000)]
Tweak 'protect-text'.

12 years agoenable MWDebug tests
Antoine Musso [Mon, 16 Jan 2012 13:56:18 +0000 (13:56 +0000)]
enable MWDebug tests

The first ones were failing because the test suite ran on gallium without
MWDebug being initialized. This is now the case since r109033.

The second part was failling because PHPUnit on gallium does not have
the assertCount() method. Use a assertEquals() / count() workaround instead.

Tests added by 108873
Reverts r108877

12 years agotest with MWDebug enabled (made possible by r109032)
Antoine Musso [Mon, 16 Jan 2012 13:50:17 +0000 (13:50 +0000)]
test with MWDebug enabled (made possible by r109032)

12 years agoMove MWDebug enabling logic to Setup.php
Antoine Musso [Mon, 16 Jan 2012 13:44:46 +0000 (13:44 +0000)]
Move MWDebug enabling logic to Setup.php

MWDebug initialization method was made to look up for a global variable. This
patch move the logic to Setup.php so we can replicate it when doing tests.

Side effect, MWDebug is disabled by default. Users will explicitly have to
enable it by using init().

Ping r105123

12 years agoAdd plural support in 'longpageerror'.
Siebrand Mazeland [Mon, 16 Jan 2012 12:05:55 +0000 (12:05 +0000)]
Add plural support in 'longpageerror'.

12 years agoFollow up to r109021, corrected the comment, and added a translation from Russian.
Amir E. Aharoni [Mon, 16 Jan 2012 10:45:01 +0000 (10:45 +0000)]
Follow up to r109021, corrected the comment, and added a translation from Russian.

12 years agotypo in r103711: right -> rights
Antoine Musso [Mon, 16 Jan 2012 10:36:55 +0000 (10:36 +0000)]
typo in r103711: right -> rights

12 years agoSkip BrokenRedirectsPage query test under MySQL
Antoine Musso [Mon, 16 Jan 2012 10:33:24 +0000 (10:33 +0000)]
Skip BrokenRedirectsPage query test under MySQL

The MySQL backend, when using temporary tables, does not support referencing
a table which was already open.
http://bugs.mysql.com/bug.php?id=10327

This patch skip BrokenRedirectsPage on MySQL as reported on r102411.

12 years agoreintroduce the shortcut evaluation removed in r108403 and r108405
Santhosh Thottingal [Mon, 16 Jan 2012 10:05:48 +0000 (10:05 +0000)]
reintroduce the shortcut evaluation removed in r108403 and r108405

12 years agoImproved the comment about the two-forms plural shortcut.
Amir E. Aharoni [Mon, 16 Jan 2012 09:46:56 +0000 (09:46 +0000)]
Improved the comment about the two-forms plural shortcut.

12 years agoreverts wgDeprecationWhitelist
Antoine Musso [Mon, 16 Jan 2012 08:59:17 +0000 (08:59 +0000)]
reverts wgDeprecationWhitelist

Per wikitech-l
Reverts r106883 and r106946

12 years agoIn FileOp/FileBackend:
Aaron Schulz [Sun, 15 Jan 2012 22:45:14 +0000 (22:45 +0000)]
In FileOp/FileBackend:
* Added SHA-1 to FileOp::attemptBatch $predicates (since concatenate was removed from FileOp). This lets us get rid of temp file backups, as the remaining failure case is just the backend medium going down (the ops would break in that case anyway). Doing so reduces RTTs and backup file I/O overhead. This also simplifies expiry object support by avoiding having to stash the expiry values of temp backup objects somewhere.
* Improved precheck() and attempt() status logic in FileOp::attemptBatch() a bit. Use separate $subStatus var to check if each op is OK.
* A few minor code cleanups and comment tweaks.
* Fixed MoveFileOp bug found in unit tests when the source/dest are the same and an overwriteDest/overwriteSame param is given (the file would just get deleted). Improved CopyFileOp in this case too.
Other:
* Added more unit tests.

12 years ago* Killed an RTT in SwiftFileBackend::doStreamFile(). We already check existence in...
Aaron Schulz [Sun, 15 Jan 2012 22:21:51 +0000 (22:21 +0000)]
* Killed an RTT in SwiftFileBackend::doStreamFile(). We already check existence in FileBackend::streamFile()
* A few minor code cleanups and comment tweaks.

12 years agoUse the context's WikiPage object if the title of the new revision is the same as...
Alexandre Emsenhuber [Sun, 15 Jan 2012 22:00:04 +0000 (22:00 +0000)]
Use the context's WikiPage object if the title of the new revision is the same as context's title; avoids a duplicated database query to load the WikiPage

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

12 years agoadded some docs
Jeroen De Dauw [Sun, 15 Jan 2012 16:13:16 +0000 (16:13 +0000)]
added some docs

12 years ago[mediawiki.action.history.diff.css] remove redundant css rule
Krinkle [Sun, 15 Jan 2012 13:56:55 +0000 (13:56 +0000)]
[mediawiki.action.history.diff.css] remove redundant css rule
* Background color reset for tables is no longer needed per r80495
* See r80495 commitmsg for rationale for removal of the `table { backgroundL: white }` rule
* Also touched in r105280

12 years ago* Use WikiPage instead of Article to call doEdit()
Alexandre Emsenhuber [Sun, 15 Jan 2012 12:30:14 +0000 (12:30 +0000)]
* Use WikiPage instead of Article to call doEdit()
* Pass the User object to WikiPage::doEdit()

12 years ago* Fix Profiler::getUserTime() to return a float and not string with space separated...
Alexandre Emsenhuber [Sun, 15 Jan 2012 11:42:36 +0000 (11:42 +0000)]
* Fix Profiler::getUserTime() to return a float and not string with space separated values since, was breaking difference calculation since PHP doesn't know how to make the difference of two strings :P
* Same when adding fake items in the stack after a profiling error
* Removed useless ProfilerSimple::getTime()

12 years agoRelease note for ug 17959
Antoine Musso [Sun, 15 Jan 2012 11:05:51 +0000 (11:05 +0000)]
Release note for ug 17959

Bug 17959 - Inline rendering/thumbnailing for Gimp XCF images
Forgotten in r107351

12 years agoAdding jquery.arrowSteps to core, from UploadWizard
John Du Hart [Sun, 15 Jan 2012 06:07:24 +0000 (06:07 +0000)]
Adding jquery.arrowSteps to core, from UploadWizard

12 years ago* (bug 33733) API: Unknown error: mustbeloggedin
Sam Reed [Sat, 14 Jan 2012 23:45:21 +0000 (23:45 +0000)]
* (bug 33733) API: Unknown error: mustbeloggedin

Add message to messagemap

12 years agor108944: fixed bogus field...php-cloudfiles documentation misspelled this, it's ...
Aaron Schulz [Sat, 14 Jan 2012 23:15:32 +0000 (23:15 +0000)]
r108944: fixed bogus field...php-cloudfiles documentation misspelled this, it's 'object_count' not 'count'

12 years agoIn SwiftFileBackend:
Aaron Schulz [Sat, 14 Jan 2012 23:11:21 +0000 (23:11 +0000)]
In SwiftFileBackend:
* Added getContainer(), createContainer(), and deleteContainer() helper functions, which cache container objects to avoid RTTs
* Made doCleanInternal() delete empty containers
* Bumped authentication TTL to 120 seconds
* Some comment tweaks

12 years agoA bit of documentation.
Amir E. Aharoni [Sat, 14 Jan 2012 22:32:18 +0000 (22:32 +0000)]
A bit of documentation.

12 years agoRevert r108777 (making eval subclass maintenance). eval's supposed to be in the globa...
Chad Horohoe [Sat, 14 Jan 2012 22:21:30 +0000 (22:21 +0000)]
Revert r108777 (making eval subclass maintenance). eval's supposed to be in the global context. See r54839

12 years agoTypo
Niklas Laxström [Sat, 14 Jan 2012 22:00:27 +0000 (22:00 +0000)]
Typo

12 years agoFollow up to r108927. Replaced die() with throw new MWException(), according to ...
Amir E. Aharoni [Sat, 14 Jan 2012 20:26:54 +0000 (20:26 +0000)]
Follow up to r108927. Replaced die() with throw new MWException(), according to ^demon's suggestion.

12 years agor105512: Handle REDIRECT_URL discrepancies and always work with URI paths for thumb...
Aaron Schulz [Sat, 14 Jan 2012 19:17:17 +0000 (19:17 +0000)]
r105512: Handle REDIRECT_URL discrepancies and always work with URI paths for thumb 404 handling

12 years agoRELEASE-NOTES-1.19 for r108876
Sam Reed [Sat, 14 Jan 2012 18:32:04 +0000 (18:32 +0000)]
RELEASE-NOTES-1.19 for r108876

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

12 years agoChanging the failure message to something more meaningful.
Amir E. Aharoni [Sat, 14 Jan 2012 17:51:14 +0000 (17:51 +0000)]
Changing the failure message to something more meaningful.

12 years agoDocumentation
Sam Reed [Sat, 14 Jan 2012 15:27:30 +0000 (15:27 +0000)]
Documentation

Wrapping up some long lines

12 years agoNo need to do the safe_mode check on every request in $wgAdditionalMailParams is...
Alexandre Emsenhuber [Sat, 14 Jan 2012 14:53:32 +0000 (14:53 +0000)]
No need to do the safe_mode check on every request in $wgAdditionalMailParams is set; that variable will not be passed to mail() if safe_mode is enabled since r99411

12 years agoPer Aaron, fix for r108274: added canUseWikiPage() to context objects to know whether...
Alexandre Emsenhuber [Sat, 14 Jan 2012 14:27:46 +0000 (14:27 +0000)]
Per Aaron, fix for r108274: added canUseWikiPage() to context objects to know whether getWikiPage() can be safely called

12 years agoFix for r107939: PHP Notice: Undefined variable: exportall in includes/specials...
Alexandre Emsenhuber [Sat, 14 Jan 2012 14:18:56 +0000 (14:18 +0000)]
Fix for r107939: PHP Notice:  Undefined variable: exportall in includes/specials/SpecialExport.php on line 173 when the "export all" checkbox is not checked

12 years ago* Use WikiPage instead of Article to call commitRollback()
Alexandre Emsenhuber [Sat, 14 Jan 2012 14:11:08 +0000 (14:11 +0000)]
* Use WikiPage instead of Article to call commitRollback()
* Pass the User object from WikiPage::commitRollback() to WikiPage::doEdit()
* Do the edits with 'Maintenance script' user as other maintenance scripts instead of 127.0.0.1

12 years agoFix comment, this doesn't use $wgTitle anymore
Alexandre Emsenhuber [Sat, 14 Jan 2012 13:15:19 +0000 (13:15 +0000)]
Fix comment, this doesn't use $wgTitle anymore

12 years ago* Fixed bogus var in LSLockManager.
Aaron Schulz [Sat, 14 Jan 2012 03:16:18 +0000 (03:16 +0000)]
* Fixed bogus var in LSLockManager.
* Made DBLockManager constructor a bit more convenient to use with just 'localDBMaster' in the db buckets.
* Documentation tweaks.

12 years ago* Renamed ContainerShardListIterator -> FileBackendShardListIterator
Aaron Schulz [Sat, 14 Jan 2012 01:52:19 +0000 (01:52 +0000)]
* Renamed ContainerShardListIterator -> FileBackendShardListIterator
* Renamed FSFileIterator -> FSFileBackendFileList
* Renamed SwiftFileIterator -> SwiftFileBackendFileList and added it to autoloader
* A few minor doc fixes

12 years agoFixed annoying bug in FileRepo::deleteBatch() when a file is deleted that has multipl...
Aaron Schulz [Sat, 14 Jan 2012 00:50:18 +0000 (00:50 +0000)]
Fixed annoying bug in FileRepo::deleteBatch() when a file is deleted that has multiple identical versions. The operation would fail due to the file already existing.

12 years ago[Core JS] Fix code from r107327 which was broken by r108222
Krinkle [Sat, 14 Jan 2012 00:40:48 +0000 (00:40 +0000)]
[Core JS] Fix code from r107327 which was broken by r108222
-- Of course one most not assume the DOM is finished enough for #p-logo to be parsed, simply bind to document ready

12 years agoRevert out r108882
Sam Reed [Sat, 14 Jan 2012 00:25:26 +0000 (00:25 +0000)]
Revert out r108882

12 years agoRecommitting r108367 to break unit tests as phpunit on ubuntu seems FUBAR'd again
Sam Reed [Sat, 14 Jan 2012 00:09:58 +0000 (00:09 +0000)]
Recommitting r108367 to break unit tests as phpunit on ubuntu seems FUBAR'd again

Will revert after

12 years agoRemoved call to ParserTest::setUp() which was unnecessary. Also, the called function...
Aaron Schulz [Fri, 13 Jan 2012 23:39:48 +0000 (23:39 +0000)]
Removed call to ParserTest::setUp() which was unnecessary. Also, the called function leaks globals anyway atm.