lhc/web/wiklou.git
12 years agomake sure sockets are enabled
Ryan Kaldari [Wed, 27 Jul 2011 23:54:21 +0000 (23:54 +0000)]
make sure sockets are enabled

12 years agoRevert r93237 ("use User::getBlock() accessor rather than accessing $mBlock directly...
Roan Kattouw [Wed, 27 Jul 2011 22:28:59 +0000 (22:28 +0000)]
Revert r93237 ("use User::getBlock() accessor rather than accessing $mBlock directly ..."): breaks a test (specifically TitlePermissionTest::testUserBlock()). From what I can tell it looks like the test case is expecting the text of the infinite-block message, but got a Message object instead

12 years agoRecommit r93264 ( Remove semantically incorrect wrapper table from toc and replace...
Leo Koppelkamm [Wed, 27 Jul 2011 21:53:28 +0000 (21:53 +0000)]
Recommit r93264 ( Remove semantically incorrect wrapper table from toc and replace it with an inline-blocked diff. Update some skin css, since we don't have the implicit table padding anymore and need to increase to padding to maintain the current look. ) with parser tests and release notes

12 years agosiprop=interwikimap and siprop=languages can now use silanguagecode to have a best...
Siebrand Mazeland [Wed, 27 Jul 2011 21:16:32 +0000 (21:16 +0000)]
siprop=interwikimap and siprop=languages can now use silanguagecode to have a best effort language name translation. Use CLDR extension for best result.

12 years agoTypo in message autoblockedtext
Antoine Musso [Wed, 27 Jul 2011 19:46:56 +0000 (19:46 +0000)]
Typo in message autoblockedtext

Follow up r85951

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 27 Jul 2011 19:26:23 +0000 (19:26 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-27 19:08:00 UTC)

12 years agorevert r93284 and follow up r93285
Antoine Musso [Wed, 27 Jul 2011 19:24:43 +0000 (19:24 +0000)]
revert r93284 and follow up r93285

breaks parser tests. Please update the parser tests and reapply.

12 years agorevert r93264 : breaks ton of parser tests.
Antoine Musso [Wed, 27 Jul 2011 19:20:06 +0000 (19:20 +0000)]
revert r93264 : breaks ton of parser tests.

Please update the parser tests and reapply.

12 years agoUnicode space separator characters (Zs) now terminates links
Antoine Musso [Wed, 27 Jul 2011 18:03:01 +0000 (18:03 +0000)]
Unicode space separator characters (Zs) now terminates links

Fix 19052 which was only reporting the issue for U+3000 IDEOGRAPHIC SPACE.
Covers both external links and images links. See parser tests for examples.

Unicode 'Zs' includes all characters from the 'separator, space' category.
Characters part of this category are:

Char    Name
U+0020  SPACE
U+00A0  NO-BREAK SPACE
U+1680  OGHAM SPACE MARK
U+180E  MONGOLIAN VOWEL SEPARATOR
U+2000  EN QUAD
U+2001  EM QUAD
U+2002  EN SPACE
U+2003  EM SPACE
U+2004  THREE-PER-EM SPACE
U+2005  FOUR-PER-EM SPACE
U+2006  SIX-PER-EM SPACE
U+2007  FIGURE SPACE
U+2008  PUNCTUATION SPACE
U+2009  THIN SPACE
U+200A  HAIR SPACE
U+202F  NARROW NO-BREAK SPACE
U+205F  MEDIUM MATHEMATICAL SPACE
U+3000  IDEOGRAPHIC SPACE

TEST PLAN:

$ php parserTests.php --quiet
This is MediaWiki version 1.19alpha (r93258).

Reading tests from "tests/parser/parserTests.txt"...
Reading tests from "tests/parser/extraParserTests.txt"...
Reading tests from "../mwexts/LabeledSectionTransclusion/lstParserTests.txt"...
Passed 686 of 686 tests (100%)... ALL TESTS PASSED!

Sounds good :-)

12 years agoSkinLegacy:
Robin Pepermans [Wed, 27 Jul 2011 17:20:53 +0000 (17:20 +0000)]
SkinLegacy:
* fix Fatal error: Call to undefined method CologneBlueTemplate::makeExternalLink()
* Use static Linker functions for all other link functions
CologneBlue: check if browseLinks is an array (in a rare case it isn't, which returns a Warning, see e.g. r91432#c19211)

12 years agor93284 : Update rightClickEdit.js
Leo Koppelkamm [Wed, 27 Jul 2011 16:56:17 +0000 (16:56 +0000)]
r93284 : Update rightClickEdit.js

12 years agoFix Bug 11270 & Bug 11555 : Make editsection link more understandable by positioning...
Leo Koppelkamm [Wed, 27 Jul 2011 16:43:04 +0000 (16:43 +0000)]
Fix Bug 11270 & Bug 11555 : Make editsection link more understandable by positioning it directly left ( RTL: right ) of the title.
Patch by Aryeh Gregor, updated by Roan Kattouw, and updated again by me. I also fixed one bug with modern.css.
Tested in IE6,7,8, Chrome & FF in all skins and both LTR and RTL contexts. I tested with floating images above and below the headers and couldn't find regressions.

12 years agosmall style tweaks
Jeroen De Dauw [Wed, 27 Jul 2011 15:58:56 +0000 (15:58 +0000)]
small style tweaks

12 years agoFollow up r93253. Do not mark DatabaseSqliteTest.php as needing a db.
Platonides [Wed, 27 Jul 2011 14:50:10 +0000 (14:50 +0000)]
Follow up r93253. Do not mark DatabaseSqliteTest.php as needing a db.
An existing db is not needed, since it uses a memory one.
Having this in Database group fails in DatabaseSqlite->listTables
since it is working with a MockDatabaseSqlite whose query() return true.

12 years agoFix toc margin in modern skin per DieBuche on r90743
Robin Pepermans [Wed, 27 Jul 2011 14:38:23 +0000 (14:38 +0000)]
Fix toc margin in modern skin per DieBuche on r90743

12 years agoRename PROT_* constants to PROTO_*
Platonides [Wed, 27 Jul 2011 14:06:43 +0000 (14:06 +0000)]
Rename PROT_* constants to PROTO_*
Follow up r93258

12 years agoRemove semantically incorrect wrapper table from toc and replace it with an inline...
Leo Koppelkamm [Wed, 27 Jul 2011 13:24:19 +0000 (13:24 +0000)]
Remove semantically incorrect wrapper table from toc and replace it with an inline-blocked diff. Update some skin css, since we don't have the implicit table padding anymore and need to increase to padding to maintain the current look. Bug 13766

12 years ago* Changed OutputPage::$mIsArticle flag to be false by default. A lot of actions don...
Alexandre Emsenhuber [Wed, 27 Jul 2011 13:14:28 +0000 (13:14 +0000)]
* Changed OutputPage::$mIsArticle flag to be false by default. A lot of actions don't change that flag when they should, since about only action=view should have it to true.
* Put OutputPage::$mIsArticleRelated declaration just below $mIsArticle's one since they are related
* Made DifferenceEngine consistent with action=view, i.e. setting that flag to true when displaying any version of the page, current or not
* Made Skin::getCopyright() always use history_copyright when displaying an old version, regardless to the diff parameter
* Changed some checks from namespace != NS_SPECIAL && action=view to isArticle() so that they don't get executed when e.g. throwing an Exception (or similar things)

12 years agoSave css optimizations for modern css ( margin: 0 0 0 0 to margin: 0 etc.)
Leo Koppelkamm [Wed, 27 Jul 2011 13:01:26 +0000 (13:01 +0000)]
Save css optimizations for modern css ( margin: 0 0 0 0 to margin: 0 etc.)

12 years ago(bug NNNNN) Rewrite most of wfExpandUrl() to handle protocol-relative URLs properly...
Roan Kattouw [Wed, 27 Jul 2011 08:21:40 +0000 (08:21 +0000)]
(bug NNNNN) Rewrite most of wfExpandUrl() to handle protocol-relative URLs properly and more flexibly
* Fix a bug in rNNNNN where URLs like '/wiki/Foo' weren't expanded completely if $wgServer was protocol-relative. This caused bug NNNNN.
* Add an optional second parameter to wfExpandUrl(), which takes one the PROT_* constants. This allows the caller to determine which protocol should be used if the given URL is protocol-relative, or the given URL is domain-relative but $wgServer is protocol-relative. The options are PROT_HTTP (use http), PROT_HTTPS (use https), PROT_RELATIVE (keep the URL as protocol-relative), and PROT_CURRENT (use http if the current request is http, or https if the current request is https; this is the default).
* Factor the protocol/port detection part of WebRequest::detectServer() out into detectProtocolAndStdPort(), and add detectProtocol() as a wrapper. The latter is used by wfExpandUrl() in PROT_CURRENT mode.
* Rewrite the test suite to test all possible combinations of $wgServer, $defaultProto, $url and HTTP/HTTPS mode. This means the test suite now has 120 test cases rather than 4.

12 years agoMark 2 tests as requiring a DB...since they do :)
Chad Horohoe [Tue, 26 Jul 2011 23:39:48 +0000 (23:39 +0000)]
Mark 2 tests as requiring a DB...since they do :)

12 years agomakes SpecialPage::mName explicitly private
Antoine Musso [Tue, 26 Jul 2011 21:30:43 +0000 (21:30 +0000)]
makes SpecialPage::mName explicitly private

Only one occurence in Core : SpecialRandompage.
Extensions are done in a following commit.

12 years agoRelease notes for r93247.
Krinkle [Tue, 26 Jul 2011 21:14:22 +0000 (21:14 +0000)]
Release notes for r93247.

12 years ago[ResourceLoader 2]: Add support for multiple loadScript sources
Krinkle [Tue, 26 Jul 2011 21:10:34 +0000 (21:10 +0000)]
[ResourceLoader 2]: Add support for multiple loadScript sources
Front-end:
* New mw.loader method: addSource(). Call with two arguments or an object as first argument for multiple registrations
* New property in module registry: "source". Optional for local modules (falls back to 'local'). When loading/using one or more modules, the worker will group the request by source and make separate requests to the sources as needed.
* Re-arranging object properties in mw.loader.register to match the same order all other code parts use.
* Adding documentation for 'source' and where missing updating it to include 'group' as well.
* Refactor of mw.loader.work() by Roan Kattouw and Timo Tijhof:'
-- Additional splitting layer by source (in addition to splitting by group), renamed 'groups' to 'splits'
-- Clean up of the loop, and removing a no longer needed loop after the for-in-loop
-- Much more function documentation in mw.loader.work()
-- Moved caching of wgResourceLoaderMaxQueryLength out of the loop and renamed 'limit' to 'maxQueryLength

Back-end changed provided through patch by Roan Kattouw (to avoid broken code between commits):
* New method in ResourceLoader: addSource(). During construction of ResourceLoader this will be called by default for 'local' with loadScript property set to $wgLoadScript. Additional sources can be registered through $wgResourceLoaderSources (empty array by default)
* Calling mw.loader.addSource from the startup module
* Passing source to mw.loader.register from startup module
* Some new static helper methods

Use:
* By default nothing should change in core, all modules simply default to 'local'. This info originates from the getSource()-method of the ResourceLoaderModule class, which is inherited to all core ResourceLoaderModule-implementations (none override it)
* Third-party users and/or extensions can create new classes extending ResourceLoaderModule, re-implementing the getSource-method to return something else.

Basic example:
$wgResourceLoaderSources['mywiki'] = array( 'loadScript' => 'http://example.org/w/load.php' );
class MyCentralWikiModule extends ResourceLoaderModule {
function getSource(){
return 'mywiki';
}
}
$wgResourceModules['cool.stuff'] => array( 'class' => 'MyCentralWikiModule' );

More complicated example
// imagine some stuff with a ForeignGadgetRepo class, putting stuff in $wgResourceLoaderSources in the __construct() method
class ForeignGadgetRepoGadget extends ResourceLoaderModule {
function getSource(){
return $this->source;
}
}

Loading:
Loading is completely transparent, stuff like $wgOut->addModules() or mw.loader.loader/using both take it as any other module and load from the right source accordingly.

--
This commit is part of the ResourceLoader 2 project.

12 years ago(bug 15641) prevent blocked administrators from accessing deleted revisions.
Happy-melon [Tue, 26 Jul 2011 20:54:41 +0000 (20:54 +0000)]
(bug 15641) prevent blocked administrators from accessing deleted revisions.

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 26 Jul 2011 20:46:49 +0000 (20:46 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-26 20:13:00 UTC)

12 years agoFollow-up r93234: use User::getBlock() accessor rather than accessing $mBlock directl...
Happy-melon [Tue, 26 Jul 2011 19:58:26 +0000 (19:58 +0000)]
Follow-up r93234: use User::getBlock() accessor rather than accessing $mBlock directly.  Also fixes r85951 CR, and remove code duplication in Title::checkUserBlock().

12 years agoImplement an accessor for User->mBlock. Doing this separately as it would be nice...
Happy-melon [Tue, 26 Jul 2011 19:27:14 +0000 (19:27 +0000)]
Implement an accessor for User->mBlock.  Doing this separately as it would be nice to backport this to 1.18 for the purposes of updating extensions for 1.19.

12 years ago* Fix double-escaping from r85025
Happy-melon [Tue, 26 Jul 2011 19:04:48 +0000 (19:04 +0000)]
* Fix double-escaping from r85025
* Allow admins to modify blocks placed (probably accidentally) on themselves *by* themselves, whether or not they have the 'unblockself' permission.

12 years agoApparently MaxSem cares about SQLite ;)
Sam Reed [Tue, 26 Jul 2011 17:13:41 +0000 (17:13 +0000)]
Apparently MaxSem cares about SQLite ;)

r93211

Fix a bit of alignment

12 years ago* (bug 22744) Add/Update indexes for queries done by the API
Sam Reed [Tue, 26 Jul 2011 17:03:14 +0000 (17:03 +0000)]
* (bug 22744) Add/Update indexes for queries done by the API

Add index to logging table accross log_type and log_action

12 years ago(bug 28553) Set ar_parent_id on deletion
Aaron Schulz [Tue, 26 Jul 2011 16:41:02 +0000 (16:41 +0000)]
(bug 28553) Set ar_parent_id on deletion

12 years ago* (bug 29685) do not output NULL parentid with list=deletedrevs&drprop=parentid
Sam Reed [Tue, 26 Jul 2011 16:17:19 +0000 (16:17 +0000)]
* (bug 29685) do not output NULL parentid with list=deletedrevs&drprop=parentid

12 years agor93090 : Make summaries more modular, Siebrand says there'll be problems with transla...
Leo Koppelkamm [Tue, 26 Jul 2011 15:50:43 +0000 (15:50 +0000)]
r93090 : Make summaries more modular, Siebrand says there'll be problems with translation otherwise.

12 years ago* (bug 29684) Set forgotten parameter types in ApiQueryIWLinks
Sam Reed [Tue, 26 Jul 2011 15:19:05 +0000 (15:19 +0000)]
* (bug 29684) Set forgotten parameter types in ApiQueryIWLinks

12 years ago* (bug 29748) Add API search prefix support
Sam Reed [Tue, 26 Jul 2011 15:10:57 +0000 (15:10 +0000)]
* (bug 29748) Add API search prefix support

Patch by TheDJ

12 years agoFollowup r93157, missing another one of the stray )'s.
Daniel Friesen [Tue, 26 Jul 2011 03:36:27 +0000 (03:36 +0000)]
Followup r93157, missing another one of the stray )'s.

12 years agoFollowup r93132, misplaced ) caused 'dirname() expects exactly 1 parameter, 3 given...
Daniel Friesen [Tue, 26 Jul 2011 02:44:27 +0000 (02:44 +0000)]
Followup r93132, misplaced ) caused 'dirname() expects exactly 1 parameter, 3 given' error.

12 years agoImproved r93149 error message
Aaron Schulz [Tue, 26 Jul 2011 00:33:39 +0000 (00:33 +0000)]
Improved r93149 error message

12 years agoMade addWiki update wikiversions dat and cdb files for multiversion
Aaron Schulz [Tue, 26 Jul 2011 00:27:43 +0000 (00:27 +0000)]
Made addWiki update wikiversions dat and cdb files for multiversion

12 years agoAdd support for relative-protocol urls in mw.loader.load
Krinkle [Mon, 25 Jul 2011 23:04:30 +0000 (23:04 +0000)]
Add support for relative-protocol urls in mw.loader.load

12 years agoAdded a workaround for the lack of RequestContext in 1.17, so this code can be rolled...
Ian Baker [Mon, 25 Jul 2011 22:39:52 +0000 (22:39 +0000)]
Added a workaround for the lack of RequestContext in 1.17, so this code can be rolled into production.
This code can be removed in 1.18+, but it'll work either way.

12 years agoWhitespace fix
Roan Kattouw [Mon, 25 Jul 2011 22:03:08 +0000 (22:03 +0000)]
Whitespace fix

12 years agoAdding __METHOD__ to parameters passed to wfMkdirParents()
Sam Reed [Mon, 25 Jul 2011 22:01:19 +0000 (22:01 +0000)]
Adding __METHOD__ to parameters passed to wfMkdirParents()

12 years agostyle fix
Jeroen De Dauw [Mon, 25 Jul 2011 21:49:39 +0000 (21:49 +0000)]
style fix

12 years agoadded since tag
Jeroen De Dauw [Mon, 25 Jul 2011 21:11:58 +0000 (21:11 +0000)]
added since tag

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 25 Jul 2011 21:04:23 +0000 (21:04 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-25 20:48:00 UTC)

12 years agoRemoved code lost in r93105, wtf.
Aaron Schulz [Mon, 25 Jul 2011 20:20:13 +0000 (20:20 +0000)]
Removed code lost in r93105, wtf.

12 years agoMake Chad happy ;)
Aaron Schulz [Mon, 25 Jul 2011 20:11:00 +0000 (20:11 +0000)]
Make Chad happy ;)

12 years agor85886 broke $wgSharedPrefix
Platonides [Mon, 25 Jul 2011 20:08:49 +0000 (20:08 +0000)]
r85886 broke $wgSharedPrefix

12 years agoAdded include_once to shouldExecute() check
Aaron Schulz [Mon, 25 Jul 2011 19:54:14 +0000 (19:54 +0000)]
Added include_once to shouldExecute() check

12 years agoFollow-up r79518: added getCachedLastEditTime/getCachedLastEditTime methods to WikiPa...
Aaron Schulz [Mon, 25 Jul 2011 19:24:43 +0000 (19:24 +0000)]
Follow-up r79518: added getCachedLastEditTime/getCachedLastEditTime methods to WikiPage and check them in loadPageData() to see if we should hit the  This should lower the risk of stale data (by not just relying on cookie/session master position waiting).

12 years ago* Ignore any <nowiki> or comment sections
Leo Koppelkamm [Mon, 25 Jul 2011 19:03:26 +0000 (19:03 +0000)]
* Ignore any <nowiki> or comment sections
* More natural messages
* Respect wgCaseSensitiveNamespaces
* Regex: Add possible whitespace between "[[Category:" and the category name. ( [[Category: Foo]] )
* Make nearly all functions publicly accessible
* Add "cancel all" button
* Submit on enter keypress
* Check for redirects
* Color links correctly based on existance of category page
* Add a summary of the changes done into the edit summary ('+Category:foo, -Category:Bar: Foo is not correct...')
* Add more error handlers
* Add more hooks ( afterChange/Delete/add ).
* Pass category names to the hooks
* Allow hooks to abort by returning false
* Handle sortkey correctly in all operations
* Move addCategory form below categories.
* Fix any known IE6 and IE7 bugs.
* Add more documentation

12 years agoReplacing my nick with my real name in CREDITS
Leo Koppelkamm [Mon, 25 Jul 2011 18:58:05 +0000 (18:58 +0000)]
Replacing my nick with my real name in CREDITS

12 years agoFixed newFromArchiveRow to check for ar_page_id
Aaron Schulz [Mon, 25 Jul 2011 18:19:48 +0000 (18:19 +0000)]
Fixed newFromArchiveRow to check for ar_page_id

12 years agoMarked canChangePassword protected, w/s fixes
Aaron Schulz [Mon, 25 Jul 2011 18:05:54 +0000 (18:05 +0000)]
Marked canChangePassword protected, w/s fixes

12 years agoMake SideBarTest work with a Language other than English set.
Platonides [Mon, 25 Jul 2011 17:17:21 +0000 (17:17 +0000)]
Make SideBarTest work with a Language other than English set.
Follow up r93050

12 years agoChanged storeResult to storeStatus (more informative), removed leftover stack trace...
Ian Baker [Mon, 25 Jul 2011 16:55:19 +0000 (16:55 +0000)]
Changed storeResult to storeStatus (more informative), removed leftover stack trace call.  Followup to r92009

12 years agomw.user.js: Make sessionId public
Leo Koppelkamm [Mon, 25 Jul 2011 16:54:36 +0000 (16:54 +0000)]
mw.user.js: Make sessionId public

12 years agor92054: Some IE fixes
Leo Koppelkamm [Mon, 25 Jul 2011 16:51:11 +0000 (16:51 +0000)]
r92054: Some IE fixes

12 years agoUpdated hooks docs per r91123. The UI methods are not part of the object anymore.
Aaron Schulz [Mon, 25 Jul 2011 16:44:57 +0000 (16:44 +0000)]
Updated hooks docs per r91123. The UI methods are not part of the object anymore.

12 years agoReverted r92489 and added/use hideDeprecated() to MW test framework
Aaron Schulz [Mon, 25 Jul 2011 16:27:33 +0000 (16:27 +0000)]
Reverted r92489 and added/use hideDeprecated() to MW test framework

12 years agoTest for external links in the sidebar
Antoine Musso [Mon, 25 Jul 2011 15:42:50 +0000 (15:42 +0000)]
Test for external links in the sidebar

follow up r90949
Note: this does NOT test the parser external links only externals
links inside the sidebar.  This might help rewrite r90949.

12 years agoRemoving redundant check from $.fn.goIn/Out code.
Krinkle [Mon, 25 Jul 2011 08:58:51 +0000 (08:58 +0000)]
Removing redundant check from $.fn.goIn/Out code.

12 years agoUpdate JSMin+ to the newly released 1.4
Platonides [Sun, 24 Jul 2011 21:46:51 +0000 (21:46 +0000)]
Update JSMin+ to the newly released 1.4
This upstream release incorporates r92560 and r92563

12 years agoFix margin of r90743 (margin is different between ul & ol)
Robin Pepermans [Sun, 24 Jul 2011 21:40:35 +0000 (21:40 +0000)]
Fix margin of r90743 (margin is different between ul & ol)

12 years agoAdding documentation for mw.loader.register
Krinkle [Sun, 24 Jul 2011 21:36:54 +0000 (21:36 +0000)]
Adding documentation for mw.loader.register

12 years agoTrim trailing whitespace
Sam Reed [Sun, 24 Jul 2011 21:36:04 +0000 (21:36 +0000)]
Trim trailing whitespace

Add documentation

Remove unused variables

Remove an extract from ImageFunctionsTest

12 years agoMore mediawiki.js cleanup (addScript AJAX)
Krinkle [Sun, 24 Jul 2011 20:38:49 +0000 (20:38 +0000)]
More mediawiki.js cleanup (addScript AJAX)
- Update and merge in jQuery fixes:
-- Dereference script (added)
-- Order of actions
-- Regex instead of two string comparisons
-- Unit tests still pass :)

Follows up: r92933, 93012

12 years agoMore mediawiki.js cleanup
Krinkle [Sun, 24 Jul 2011 20:22:36 +0000 (20:22 +0000)]
More mediawiki.js cleanup
- Convert prototype object modifications into object literal. Saves bandwidth (less characters) and speeds up execution (no need to access 2 level deep object member repetitively). Local testing (Chrome Web Inspector) shows 14.80KB to 14.67KB (non-cached, debug=false), and execution time on cached request 32ms to 25ms.
- Un-indent 1 tab for d.setTime (Follows up r92964)
- Whitespace consistency
- Move var statements to top of loader's addScript

Follows up: r92933

12 years agoRename class to match change of method location
Sam Reed [Sun, 24 Jul 2011 19:59:42 +0000 (19:59 +0000)]
Rename class to match change of method location

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sun, 24 Jul 2011 19:14:49 +0000 (19:14 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-24 19:00:00 UTC)

12 years agoFollowup r92796, r93002
Sam Reed [Sun, 24 Jul 2011 18:55:57 +0000 (18:55 +0000)]
Followup r92796, r93002

Move addition of config table to 1.19 section

12 years agoFollow-up r92924, set special page group for ChangeEmail
Aaron Schulz [Sun, 24 Jul 2011 18:54:07 +0000 (18:54 +0000)]
Follow-up r92924, set special page group for ChangeEmail

12 years agoFix for r92984: correct method name, thanks Jack Phoenix (oops!)
Alexandre Emsenhuber [Sun, 24 Jul 2011 17:37:00 +0000 (17:37 +0000)]
Fix for r92984: correct method name, thanks Jack Phoenix (oops!)

12 years agoSome misc fixes to Skin and SkinTemplate:
Alexandre Emsenhuber [Sun, 24 Jul 2011 17:05:42 +0000 (17:05 +0000)]
Some misc fixes to Skin and SkinTemplate:
* Removed Skin::getStylesheet(), not called from anywhere
* Removed Skin::setMembers() and moved the definition of the $userpage member to SkinTemplate::outputPage() since it's only used in that class
* Removed useless $out parameter of Skin::bottomScripts()
* Call Linker methods statically
* Use Linker::linkKnown() instead of Linker::link() if possible
* Escape 'mainpage' message when used for description
* Removed some variables from SkinTemplate::outputPage(): nscanonical, nsnumber, currevisionid that were used when the JavaScript global variables were defined in the template. Also changed pageclass and skinnameclass to be defined only when $useHeadElement is false
* Removed some unused members of SkinTemplate: $iscontent and $iseditable
* Refactored the part of SkinTemplate::outputPage() that sets copyright, viewcount, lastmod, credits and numberofwatchingusers to always define them to false first and set them when needed. Also modified the check to display the copyright; it will now only be displayed when $out->isArticle() is true and the page exists, since it is currently possible to display it on any page by adding the oldid parameter to the url.

12 years agoFixing messages.inc and rebuilding languages en and he.
Rotem Liss [Sun, 24 Jul 2011 09:25:19 +0000 (09:25 +0000)]
Fixing messages.inc and rebuilding languages en and he.

12 years agoAdd lang & dir attributes around the recentchangestext message, because it is in...
Robin Pepermans [Sun, 24 Jul 2011 00:56:59 +0000 (00:56 +0000)]
Add lang & dir attributes around the recentchangestext message, because it is in the content language.

12 years agofix doc
Jeroen De Dauw [Sat, 23 Jul 2011 20:58:18 +0000 (20:58 +0000)]
fix doc

12 years agofu r92933 - fix breakage
Jeroen De Dauw [Sat, 23 Jul 2011 20:56:08 +0000 (20:56 +0000)]
fu r92933 - fix breakage

12 years agoIt is stupid to test that a void method returns null. Add a comment explaining that
Platonides [Sat, 23 Jul 2011 20:23:26 +0000 (20:23 +0000)]
It is stupid to test that a void method returns null. Add a comment explaining that
what we are testing is actually the function existence (see r91123 summary)
Change the onArticle* to is_callable()s, so that a db is not needed.

12 years agoMake wfUrlEncode(null) reset the static. Two skipped tests work now.
Platonides [Sat, 23 Jul 2011 20:14:12 +0000 (20:14 +0000)]
Make wfUrlEncode(null) reset the static. Two skipped tests work now.

12 years agoChanged Maintenance::shouldExecute() to allow for multiple requires() in the stack...
Aaron Schulz [Sat, 23 Jul 2011 19:50:19 +0000 (19:50 +0000)]
Changed Maintenance::shouldExecute() to allow for multiple requires() in the stack. This avoids failing over requires due to Het wrappers.

12 years agoDifferenceEngine: introduce setDiffLang() to change the language in which the diff...
Robin Pepermans [Sat, 23 Jul 2011 19:03:54 +0000 (19:03 +0000)]
DifferenceEngine: introduce setDiffLang() to change the language in which the diff text is written.
Translate: set the the diff text according to the source language, on Special:PageTranslation and the translation messages. (Also fix direction of CSS class mw-translate-fuzzy).

12 years agoLocalization update for he.
Rotem Liss [Sat, 23 Jul 2011 18:50:07 +0000 (18:50 +0000)]
Localization update for he.

12 years agoDummy-proof incLoginThrottle/clearLoginThrottle with trim()
Aaron Schulz [Sat, 23 Jul 2011 09:49:54 +0000 (09:49 +0000)]
Dummy-proof incLoginThrottle/clearLoginThrottle with trim()

12 years agotrim $this->mUserName var so that login attempt throttle key isn't fragmented with...
Aaron Schulz [Sat, 23 Jul 2011 09:49:03 +0000 (09:49 +0000)]
trim $this->mUserName var so that login attempt throttle key isn't fragmented with spaces

12 years agoFix typo in r92933 that resulted in global variable leakage
Roan Kattouw [Sat, 23 Jul 2011 09:19:53 +0000 (09:19 +0000)]
Fix typo in r92933 that resulted in global variable leakage

12 years agoMinor mw.loader fixes
Krinkle [Sat, 23 Jul 2011 09:09:28 +0000 (09:09 +0000)]
Minor mw.loader fixes
- No functional changes
- Whitespace correction
- Comment fixes
- Combine var statements
- A few [[JSPERF]]ies
- Using mw instead of mediaWiki
- Putting global alias on top, to avoid a ReferenceError in case the immediately invoked "new function(){}" refers to mw during the construction
- "class" -> "constructor"
- caching "typeof dependencies" in mw.loader.using
- fix var "group" collision in mw.loader.work
- move var statements to top of functions
- fixing some occurrences of var statements in for-loops by declaring them before the loop
- Remove space before slash in html-fragement for jQuery html regex in <link /> and <br />

12 years agoFollow-up r86482, r86485: removed user_name portion of user_email index per CR
Aaron Schulz [Sat, 23 Jul 2011 08:15:11 +0000 (08:15 +0000)]
Follow-up r86482, r86485: removed user_name portion of user_email index per CR

12 years agoChange != {} to !$.isEmptyObject(): the former always returned true because objects...
Roan Kattouw [Sat, 23 Jul 2011 03:48:35 +0000 (03:48 +0000)]
Change != {} to !$.isEmptyObject(): the former always returned true because objects are compared by reference. This didn't cause any realistic problems, though: the worst that could happen is that if you have a module name longer than the query string request limit (which is extremely unusual), mediawiki.js would probably go into an infinite loop.

12 years agoUpdates for new autopromote system & block hook
Aaron Schulz [Sat, 23 Jul 2011 00:56:17 +0000 (00:56 +0000)]
Updates for new autopromote system & block hook

12 years ago* Moved email changing from sp:Preferences to new sp:ChangeEmail, which requires...
Aaron Schulz [Sat, 23 Jul 2011 00:48:39 +0000 (00:48 +0000)]
* Moved email changing from sp:Preferences to new sp:ChangeEmail, which requires confirming the user password. This reduces the impact of session hijacking, which was increased slightly with r86482. Changing a password already required confirming the old one. This change closes the loophole of changing the email address and then doing a reset.
* Parse 'mailerror' message correctly

12 years agoFollowup r86622: add initial QUnit test cases for jquery.textSelection module.
Brion Vibber [Sat, 23 Jul 2011 00:44:00 +0000 (00:44 +0000)]
Followup r86622: add initial QUnit test cases for jquery.textSelection module.

* tests .textSelection()'s encapsulateText method mostly (also uses setSelection, getContents, and getSelection)
* examples from WikiEditor toolbar: sig, bold, h2 (ownline), ulist (ownline & splitlines)
* confirms that splitlines works more or less as expected, at least for basic single-line, single split-line, and multi-line cases

Doesn't test the WikiEditor iframe mode since that's in a separate extension; when it's possible to test those things too, that'll need to be run there.

One of the h2 tests fails in IE6, returning selected text that's offset by one character from what's expected. I'm not sure whether it's actually selecting the wrong text or whether it's returning the wrong text -- needs further investigation.

Also note that there's no setContents submethod in textSelection, despite there being some notes about one.

12 years agoin "marked version X of [[Page]] patrolled" on IRC, the "version" displays according...
Robin Pepermans [Fri, 22 Jul 2011 22:50:03 +0000 (22:50 +0000)]
in "marked version X of [[Page]] patrolled" on IRC, the "version" displays according to the user language. If this is the correct fix (didn't test), it can perhaps be merged with 1.18 and 1.17wmf1.

12 years agoFollow-up r92887: clear throttle count once the password is accepted as normal
Aaron Schulz [Fri, 22 Jul 2011 22:42:29 +0000 (22:42 +0000)]
Follow-up r92887: clear throttle count once the password is accepted as normal

12 years agoRemoved Special{$this->getName()}ModifyFormFields from r86482. Seems kind of weird...
Aaron Schulz [Fri, 22 Jul 2011 21:31:50 +0000 (21:31 +0000)]
Removed Special{$this->getName()}ModifyFormFields from r86482. Seems kind of weird, was undocumented, and is unused by extensions.

12 years agoImproved r92884 comments a bit on second thought
Aaron Schulz [Fri, 22 Jul 2011 21:18:30 +0000 (21:18 +0000)]
Improved r92884 comments a bit on second thought

12 years agoFix for r86482: throttle password attempts for SpecialChangePassword (uses r92884...
Aaron Schulz [Fri, 22 Jul 2011 21:06:39 +0000 (21:06 +0000)]
Fix for r86482: throttle password attempts for SpecialChangePassword (uses r92884, r92886 code)

12 years agoFollow-up r92884: mark these functions static
Aaron Schulz [Fri, 22 Jul 2011 21:04:53 +0000 (21:04 +0000)]
Follow-up r92884: mark these functions static