lhc/web/wiklou.git
12 years agotabs are tabs, not spaces
Mark A. Hershberger [Thu, 28 Jul 2011 19:13:58 +0000 (19:13 +0000)]
tabs are tabs, not spaces

12 years ago* followup r93397 — missing $dest
Mark A. Hershberger [Thu, 28 Jul 2011 19:03:54 +0000 (19:03 +0000)]
* followup r93397 — missing $dest
* Otherwise clean up $dest usage
* Clean up Debug messages

12 years agoAdded typehint per my own suggestion in bug 28827. Otherwise we get pretty useless...
Niklas Laxström [Thu, 28 Jul 2011 17:48:35 +0000 (17:48 +0000)]
Added typehint per my own suggestion in bug 28827. Otherwise we get pretty useless errors if Title object is not passed here.

12 years agoarray of objects tostring conversion works correctly in php 5.2.3+
Mark A. Hershberger [Thu, 28 Jul 2011 17:25:19 +0000 (17:25 +0000)]
array of objects tostring conversion works correctly in php 5.2.3+

12 years agoReduce mail header differences by moving all the header creation code
Mark A. Hershberger [Thu, 28 Jul 2011 16:56:03 +0000 (16:56 +0000)]
Reduce mail header differences by moving all the header creation code
to one place.

12 years agoFollow-up r93386: fix editsection when user language direction != content lang dir
Robin Pepermans [Thu, 28 Jul 2011 13:34:57 +0000 (13:34 +0000)]
Follow-up r93386: fix editsection when user language direction != content lang dir

12 years agoRedo r93284 ( Make editsection link more understandable by positioning it directly...
Leo Koppelkamm [Thu, 28 Jul 2011 12:26:04 +0000 (12:26 +0000)]
Redo r93284 ( Make editsection link more understandable by positioning it directly left ( RTL: right ) of the title ) in a more simple way and also include parserTests and release notes this time

12 years agoFu r92231: PHP Fatal error: Call to a member function parse() on a non-object in...
Niklas Laxström [Thu, 28 Jul 2011 12:13:54 +0000 (12:13 +0000)]
Fu r92231: PHP Fatal error:  Call to a member function parse() on a non-object in /www/w/includes/specials/SpecialEditWatchlist.php on line 46

Maybe the method names need to be reconsidered to avoid errors like these?

12 years agor91728 : Fix a problem for api.php5 users and remove an unneeded function parameter...
Leo Koppelkamm [Thu, 28 Jul 2011 11:22:42 +0000 (11:22 +0000)]
r91728 : Fix a problem for api.php5 users and remove an unneeded function parameter from deliverResult

12 years agor91728 : Fix whitespace and two vars per CR
Leo Koppelkamm [Thu, 28 Jul 2011 11:02:21 +0000 (11:02 +0000)]
r91728 : Fix whitespace and two vars per CR

12 years agoreword r93378 per suggestion of Nikerabbit
Robin Pepermans [Thu, 28 Jul 2011 08:55:47 +0000 (08:55 +0000)]
reword r93378 per suggestion of Nikerabbit

12 years agoRelease note for r92832
Robin Pepermans [Thu, 28 Jul 2011 08:16:07 +0000 (08:16 +0000)]
Release note for r92832

12 years agoFixed typo. w/s cleanup.
Aaron Schulz [Thu, 28 Jul 2011 07:27:40 +0000 (07:27 +0000)]
Fixed typo. w/s cleanup.

12 years agoFu r93351: remove extra space
Niklas Laxström [Thu, 28 Jul 2011 06:41:45 +0000 (06:41 +0000)]
Fu r93351: remove extra space

12 years agoFollowup r93366: fix Opera bugs in textSelection. All tests pass in Opera now. Before...
Roan Kattouw [Thu, 28 Jul 2011 06:40:31 +0000 (06:40 +0000)]
Followup r93366: fix Opera bugs in textSelection. All tests pass in Opera now. Before, there were five failures
* replace \r\n with \n in the obtained output from getSelection. This fixes one failure
* In continuation of r93366, which updated post for added newlines in insertText, do the same for pre and also do this in the non-IE branch. This fixes one failure
* Look for \r as well as \n where line endings are concerned in the non-IE branch, just like in the IE branch. This fixes one failure
* Have the test case generator remap selection positions for Opera to account for the fact that a newline is double-counted. This fixes the remaining two failures

12 years agoFu r93249: I see no reason to mark this private - protected should be the default...
Niklas Laxström [Thu, 28 Jul 2011 06:13:13 +0000 (06:13 +0000)]
Fu r93249: I see no reason to mark this private - protected should be the default value, only use private if you have some reason to. Avoids most of the breakage in out of tree extensions.

12 years agoFu r93249 failed grepping
Niklas Laxström [Thu, 28 Jul 2011 06:11:24 +0000 (06:11 +0000)]
Fu r93249 failed grepping

12 years agoFix broken textSelection test case in IE. All textSelection tests are passing in...
Roan Kattouw [Thu, 28 Jul 2011 05:57:29 +0000 (05:57 +0000)]
Fix broken textSelection test case in IE. All textSelection tests are passing in IE now (at least on my local machine)

12 years agoApplying code conventions:
Krinkle [Thu, 28 Jul 2011 05:53:34 +0000 (05:53 +0000)]
Applying code conventions:
* size() -> length
* strict comparison to undefined instead of typeof + string comparison
* merge var statements
* strict comparison to 0 and ''
* dot notation
* trailing whitespace

12 years agoMake mw.user.options and mw.user.tokens work in debug mode in IE. Now that mw.user...
Roan Kattouw [Thu, 28 Jul 2011 05:48:57 +0000 (05:48 +0000)]
Make mw.user.options and mw.user.tokens work in debug mode in IE. Now that mw.user is a separate module, we have to make these depend on that and make sure dependencies are actually processed.
* Make ResourceLoaderUserOptionsModule and ResourceLoaderUserTokensModule depend on mw.user
* Load mw.user.{tokens,options,groups} load as TYPE_COMBINED instead of TYPE_SCRIPT. The latter wouldn't wrap the code in mw.loader.implement()
** ...but make sure 'user' (user scripts) is excluded, that one needs to not be wrapped in a closure
* Make TYPE_COMBINED actually work in makeResourceLoaderLink()
* Add a comment in makeModuleResponse() to explain what the weird is_array( $scripts ) stuff is all about
* Add FIXME about how mw.user.options should split off the CSS part into a separate module

12 years agoAjaxCategories rewrite:
Krinkle [Thu, 28 Jul 2011 00:43:21 +0000 (00:43 +0000)]
AjaxCategories rewrite:

Solving syntax problems, performance improvements and applying code conventions:

* Replaced sprite image with separate images and letting ResourceLoader embed them with @embed (@embed means 0 http requests, less maintenance, none of the known limitations with sprites, and more readable code (named files rather than pixel offsets)

* Many functions were floating in the global namespace (like window.makeCaseInsensitive). A statement ends after a semi-colon(;). All functions declared after "catUrl" were assigned to the window object. I've instead turned the semi-colons back into comma's, merged some other var statements and moved them to the top of the closure. Changed local function declarations into function expressions for clarity.

* fetchSuggestions is called by $.fn.suggestions like ".call( $textbox, $textbox.val() )". So the context (this) isn't the raw element but the jQuery object, no need to re-construct with "$(this)" or "$(that)" which is slow and shouldn't even work. jQuery methods can be called on it directly. I've also replaced "$(this).val()" with the value-argument passed to fetchSuggestions which has this exact value already.

* Adding more function documentation. And changing @since to 1.19 as this was merged from js2-branch into 1.19-trunk and new features aren't backported to 1.18.

* Optimizing options/default construction to just "options = $.extend( {}, options )". Caching defaultOptions is cool, but doesn't really work if it's in a context/instance local variable. Moved it up to the module closure var statements, now it's static across all instances.

* In makeSuggestionBox(): Fixing invalid html fragments passed to jQuery that fail in IE. Shortcuts (like '<foo>' and '<foo/>') are only allowed for createElement triggers, not when creating longer fragments with content and/or attributes which are created through innerHTML, in the latter case the HTML must be completely valid and is not auto-corrected by IE.

* Using more jQuery chaining where possible.

* In buildRegex(): Using $.map with join( '|' ), (rather than $.each with += '|'; and substr).

* Storing the init instance of mw.ajaxCategories in mw.page for reference (rather than local/anonymous).

* Applied some best practices and "write testable code"
** Moved some of the functions created on the fly and assigned to 'this' into prototype (reference is cheaper)
** Making sure at least all 'do', 'set' and/or 'prototype' functions have a return value. Even if it's just a simple boolean true or context/this for chain-ability.
** Rewrote confirmEdit( .., .., .., ) as a prototyped method named "doConfirmEdit" which takes a single props-object with named valuas as argument, instead of list with 8 arguments.

* Removed trailing whitespace and other minor fixes to comply with the code conventions.
** Removed space between function name and caller: "foo ()" => foo())
** Changing "someArray.indexOf() + 1" into "someArr.indexOf() !== -1". We want a Boolean here, not a Number.
** Renamed all underscore-variables to non-underscore variants.

== Bug fixes ==

* When adding a category that is not already on the page as-is but of which the clean() version is already on the page, the script would fail. Fixed it by moving the checks up in handleCategoryAdd() and making sure that createCatLink() actually returned something.

* confirmEdit() wasn't working properly and had unused code (such as submitButton), removed hidden prepending to #catlinks, no need to, it can be dialog'ed directly from the jQuery object without being somewhere in the document.

* in doConfirmEdit() in submitFunction() and multiEdit: Clearing the input field after adding a category, so that when another category is being added it doesn't start with the previous value which is not allowed to be added again...

12 years agoFollowup r93343
Sam Reed [Thu, 28 Jul 2011 00:28:18 +0000 (00:28 +0000)]
Followup r93343

Swap function_exists for MWInit::functionExists()

12 years agoFix syntax error from r93343
Sam Reed [Thu, 28 Jul 2011 00:23:52 +0000 (00:23 +0000)]
Fix syntax error from r93343

12 years agoFollowup r93344: forgot to fix test. In other news: inline data providing is eww.
Chad Horohoe [Thu, 28 Jul 2011 00:14:49 +0000 (00:14 +0000)]
Followup r93344: forgot to fix test. In other news: inline data providing is eww.

12 years agoMove wfFixBoxImage() out of ImageFunctions and into MediaHandler. It's only used...
Chad Horohoe [Thu, 28 Jul 2011 00:07:08 +0000 (00:07 +0000)]
Move wfFixBoxImage() out of ImageFunctions and into MediaHandler. It's only used by ImageHandler and OggHandler.

Where to move wfIsBadImage() so we can kill ImageFunctions?

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!)