lhc/web/wiklou.git
13 years ago(Bug #27447) Added option to toolbar-item to switch off text-selection
Mark A. Hershberger [Wed, 16 Feb 2011 23:05:38 +0000 (23:05 +0000)]
(Bug #27447) Added option to toolbar-item to switch off text-selection

Carsten Nielsen explains:

    A client of mine was a bit annoyed by the editor:
    Every time he inserted - lets say - an image, the default contents of the
    image-fields "thumbs|width|caption...." were automatically marked/selected. So
    with a tip on the keyboard all "helping" text was gone.

    I added an option to the toolbar-items to optional deactivate this behaviour.

13 years agoAdd support for namespace prefixed elements in svg. ie. <svg:svg>
Derk-Jan Hartman [Wed, 16 Feb 2011 22:45:30 +0000 (22:45 +0000)]
Add support for namespace prefixed elements in svg. ie. <svg:svg>

Fixes bug 27465

13 years agoRevert r78585. While I definitely think this is an area where there's scope for...
Happy-melon [Wed, 16 Feb 2011 22:29:52 +0000 (22:29 +0000)]
Revert r78585.  While I definitely think this is an area where there's scope for improvement in clarity and security, I'm no longer convinced that this is the way to proceed.

13 years agoFix the issue where all links on Special:Contributions where marked as stubs (NS_MAIN...
Platonides [Wed, 16 Feb 2011 21:30:54 +0000 (21:30 +0000)]
Fix the issue where all links on Special:Contributions where marked as stubs (NS_MAIN pages, for users with a stub threshold) broken since r63584.
resetArticleId() is clearing the right data set by Title::newFromRow() and placing just the id, which in turn avoids to lookup the other items.
This was already done in 1.16 (since r46179, it was useful until r46181) but resetArticleID() did not reset everything (r63584 change) and so
the bug wasn't present there.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 16 Feb 2011 21:00:04 +0000 (21:00 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-16 20:35:00 UTC)

13 years agojQueryize the toggle upload source type code
Bryan Tong Minh [Wed, 16 Feb 2011 20:37:16 +0000 (20:37 +0000)]
jQueryize the toggle upload source type code

13 years agoCreate a user.groups module in ResourceLoader, which bundles a CSS and JS page for...
Happy-melon [Wed, 16 Feb 2011 19:54:02 +0000 (19:54 +0000)]
Create a user.groups module in ResourceLoader, which bundles a CSS and JS page for each usergroup the user is a member of (MediaWiki:Sysop.js, MediaWiki:Autoconfirmed.css, etc).  Groups '*' and 'user' are not included.

13 years agorevert r82283, loads of unrelated changes
Happy-melon [Wed, 16 Feb 2011 19:51:25 +0000 (19:51 +0000)]
revert r82283, loads of unrelated changes

13 years agoCreate a user.groups module in ResourceLoader, which bundles a CSS and JS page for...
Happy-melon [Wed, 16 Feb 2011 19:49:37 +0000 (19:49 +0000)]
Create a user.groups module in ResourceLoader, which bundles a CSS and JS page for each usergroup the user is a member of (MediaWiki:Sysop.js, MediaWiki:Autoconfirmed.css, etc).  Groups '*' and 'user' are not included.

13 years agoAdd new message key from r80240 to message file. This way it can be found in Special...
Raimond Spekking [Wed, 16 Feb 2011 19:44:13 +0000 (19:44 +0000)]
Add new message key from r80240 to message file. This way it can be found in Special:AllMessages at least.

13 years agoMoved Skin::makeGlobalVariablesScript() to OutputPage::getJSVars()
Alexandre Emsenhuber [Wed, 16 Feb 2011 18:25:44 +0000 (18:25 +0000)]
Moved Skin::makeGlobalVariablesScript() to OutputPage::getJSVars()
* merged <script> and if ( window.mediaWiki ) block with the one of mediaWiki.loader as stated in the doc
* removed dependency of $wgTitle
* the two only calls to this functions are in SemanticForms, but will not affect current version of MediaWiki:
** specials/SF_UploadWindow.php: this file is only used before 1.16
** specials/SF_UploadWindow2.php: the call is part of the else branch of a "method_exists( $wgOut, 'addModules' )" check, which means it's not called since 1.17

13 years agoFix fatal in r82258
Roan Kattouw [Wed, 16 Feb 2011 17:31:53 +0000 (17:31 +0000)]
Fix fatal in r82258

13 years agoPer Philip Tzou, move wgUserVariant from the set of config variables to the set of...
Roan Kattouw [Wed, 16 Feb 2011 17:06:24 +0000 (17:06 +0000)]
Per Philip Tzou, move wgUserVariant from the set of config variables to the set of pageview-specific variables, because it depends on user settings and such

13 years agorevert r77452, r80492 and r82246.
Philip Tzou [Wed, 16 Feb 2011 16:07:58 +0000 (16:07 +0000)]
revert r77452, r80492 and r82246.

13 years agoExpose $wgExtensionAssetsPath in JS
Roan Kattouw [Wed, 16 Feb 2011 14:28:26 +0000 (14:28 +0000)]
Expose $wgExtensionAssetsPath in JS

13 years agoFollow r77452, r80492. Avoid to find sub-languages when load css/js messages.
Philip Tzou [Wed, 16 Feb 2011 14:18:43 +0000 (14:18 +0000)]
Follow r77452, r80492. Avoid to find sub-languages when load css/js messages.

13 years ago(bug 26603) returnto parameter in login link not escaped when viewed on Special:Userl...
Roan Kattouw [Wed, 16 Feb 2011 11:28:58 +0000 (11:28 +0000)]
(bug 26603) returnto parameter in login link not escaped when viewed on Special:Userlogout

13 years agoFix text description of OutputPage::getLanguageLinks(), it doesn't return 'fr' =...
Sam Reed [Wed, 16 Feb 2011 10:28:24 +0000 (10:28 +0000)]
Fix text description of OutputPage::getLanguageLinks(), it doesn't return 'fr' => 'Title', it returns 'fr:Title'

13 years ago* Fix for r81960: List the local magic word synonyms first, so that they will be...
Tim Starling [Wed, 16 Feb 2011 07:24:36 +0000 (07:24 +0000)]
* Fix for r81960: List the local magic word synonyms first, so that they will be returned by $magic->getSynonym( 0 ). Apply array_values() to fix up the keys, potentially corrupted by array_unique().
* In MagicWord::initRegex(), put the longest synonyms first in the alternation. This means that when one synonym is an initial substring of another, the longest one will match in precedence, which is generally in line with user expectations.

13 years ago(bug 27302) Don't append the current timestamp for user/site modules when no user...
Roan Kattouw [Wed, 16 Feb 2011 07:19:33 +0000 (07:19 +0000)]
(bug 27302) Don't append the current timestamp for user/site modules when no user/site JS/CSS is present. Was caused by 1 being rounded down to 0, which is interpreted as 'now' by wfTimestamp(). This revision just drops timestamp rounding because it's not used consistently anyway

13 years agoFollowup r82156: skip relative URLs with absolute paths too
Roan Kattouw [Wed, 16 Feb 2011 06:27:22 +0000 (06:27 +0000)]
Followup r82156: skip relative URLs with absolute paths too

13 years agore r82181 remove min-height that doesn't work with IE6
Mark A. Hershberger [Wed, 16 Feb 2011 03:38:16 +0000 (03:38 +0000)]
re r82181 remove min-height that doesn't work with IE6

13 years agoAdding italics for .watchlistredir
Krinkle [Tue, 15 Feb 2011 23:45:57 +0000 (23:45 +0000)]
Adding italics for .watchlistredir
* Adding comment about Special:PrefixIndex (uses same class as Special:AllPages).
* Follow-up r78964: Adding them for .watchlistredir as well (was forgotten)

13 years agoGrouped diff and history modules together to help reduce cache invalidation. Loaded...
Trevor Parscal [Tue, 15 Feb 2011 22:14:03 +0000 (22:14 +0000)]
Grouped diff and history modules together to help reduce cache invalidation. Loaded diff styles statically. This should help with bug #27418, but I suspect there are more cases where we need to do this sort of thing before the bug is truly resolved.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Tue, 15 Feb 2011 21:04:37 +0000 (21:04 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-15 20:47:00 UTC)

13 years ago(bug 27435) Wrap with jquery bit per Roan's suggestion
Mark A. Hershberger [Tue, 15 Feb 2011 21:02:12 +0000 (21:02 +0000)]
(bug 27435) Wrap with jquery bit per Roan's suggestion

13 years agotrailing whitespace fixup
Mark A. Hershberger [Tue, 15 Feb 2011 20:55:54 +0000 (20:55 +0000)]
trailing whitespace fixup

13 years ago* (bug 27338) Gallery in 1.17 breaks for audio/video + ogghandler
Mark A. Hershberger [Tue, 15 Feb 2011 19:39:45 +0000 (19:39 +0000)]
* (bug 27338) Gallery in 1.17 breaks for audio/video + ogghandler

Patch by DieBuche, who explains the CSS:

    If the image height is lower than the line-height, the margin-top
    is applied to the top of the line.  a very short image will not
    follow for 3-4px laters, thus leading to a bigger distance from
    the top than it should be.  vertical-align:text-top moves the
    picture up, so this problem doesn't happen

I've not tested this, but DieBuche and Derk-Jan Hartman tested and
provided screenshots in the bug.

13 years agoResolves remaining issues in r82000 with remapping relative CSS URLs that contained...
Trevor Parscal [Tue, 15 Feb 2011 00:49:34 +0000 (00:49 +0000)]
Resolves remaining issues in r82000 with remapping relative CSS URLs that contained queries.

13 years agoResolves bug #27332 - now using absolute positioning with em measurements to layout...
Trevor Parscal [Tue, 15 Feb 2011 00:23:06 +0000 (00:23 +0000)]
Resolves bug #27332 - now using absolute positioning with em measurements to layout search controls. Tested in Internet Explore (6, 7 & 8) as well as a few Gecko and Webkit browsers.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Mon, 14 Feb 2011 21:56:30 +0000 (21:56 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-14 21:31:00 UTC)

13 years ago(bug 27402) Add support for disabling MWSuggest
Roan Kattouw [Mon, 14 Feb 2011 19:55:20 +0000 (19:55 +0000)]
(bug 27402) Add support for disabling MWSuggest

13 years agoAllow callback to be set by options array, inspired by bug 27391
Chad Horohoe [Mon, 14 Feb 2011 17:16:39 +0000 (17:16 +0000)]
Allow callback to be set by options array, inspired by bug 27391

13 years agoAdd some newlines to generateSitemap output, bug 26134
Chad Horohoe [Mon, 14 Feb 2011 17:01:42 +0000 (17:01 +0000)]
Add some newlines to generateSitemap output, bug 26134

13 years agoExplicitally define $domain
Sam Reed [Mon, 14 Feb 2011 14:09:25 +0000 (14:09 +0000)]
Explicitally define $domain

Documentation

13 years agoFollow-up r82102 for maintenance file
Raimond Spekking [Mon, 14 Feb 2011 07:43:07 +0000 (07:43 +0000)]
Follow-up r82102 for maintenance file

13 years ago* (bug 26298) Throw warning instead of silently saving blank page when php-suhosin...
Brion Vibber [Mon, 14 Feb 2011 03:10:08 +0000 (03:10 +0000)]
* (bug 26298) Throw warning instead of silently saving blank page when php-suhosin removes wpTextbox1 for being 'too long' or some such

To resolve this, edit your php.ini and raise the limits in suhosin.request.max_value_length and suhosin.post.max_value_length settings to more reasonable values.

As a helper for users hit by this, I've made a tweak on trunk in rXXXXX to check for the case of a missing wpTextbox1 field (which I can confirm when installing Suhosin and setting the suhosin.request.max_value_length absurdly low). This extends the previous behavior to check for incomplete form submissions by just checking if the edittime (a late field) is present; and also I added a message to show when it forces those previews.

So now when someone hits this sort of filter, it'll force a preview. Unfortunately that'll show a big empty box, but at least you'll know it's because something went wrong, and it won't save it silently...

Adds UI message 'edit_form_incomplete' with default English value. It's fairly generic as we can't know whether the field was filtered for length, content, or what.

13 years ago* (bug 25571) Xml::encodeJsVar now passes floats natively instead of converting to...
Brion Vibber [Mon, 14 Feb 2011 00:54:40 +0000 (00:54 +0000)]
* (bug 25571) Xml::encodeJsVar now passes floats natively instead of converting to strings

Added unit test cases for int, float, and strings that look like int or float.

13 years agoNot sure I like the DROP stuff here, but let's exclude it from this script.
Greg Sabino Mullane [Mon, 14 Feb 2011 00:36:36 +0000 (00:36 +0000)]
Not sure I like the DROP stuff here, but let's exclude it from this script.

13 years ago* (bug 25675) Fix search suggestions for Special: pages with spaces
Brion Vibber [Mon, 14 Feb 2011 00:32:13 +0000 (00:32 +0000)]
* (bug 25675) Fix search suggestions for Special: pages with spaces

Patch by Umherirrender on https://bugzilla.wikimedia.org/show_bug.cgi?id=25675 - normalizes spaces to underscores for our direct alias list comparison.

The current English names mostly use CamelCase, but this is visible with eg German localization, where ExpandTemplates extension has [[Spezial:Vorlagen expandieren]].

13 years agoFollow-up r82093: fixed comment :)
Aaron Schulz [Sun, 13 Feb 2011 23:30:26 +0000 (23:30 +0000)]
Follow-up r82093: fixed comment :)

13 years ago* (bug 27353) IPv6 address ending in "::WORD" was not recognized
Aaron Schulz [Sun, 13 Feb 2011 23:24:48 +0000 (23:24 +0000)]
* (bug 27353) IPv6 address ending in "::WORD" was not recognized
* Moved down 'contains no "::"' alternative for clarity (and possibly use frequency too)
* Added more IPv6 tests

13 years agoBroke long line
Aaron Schulz [Sun, 13 Feb 2011 23:20:53 +0000 (23:20 +0000)]
Broke long line

13 years ago* (bug 23817, bug 26250) User Service_JSON's native associative array mode in FormatJ...
Brion Vibber [Sun, 13 Feb 2011 23:08:28 +0000 (23:08 +0000)]
* (bug 23817, bug 26250) User Service_JSON's native associative array mode in FormatJson::decode(), bypassing wfObjectToArray (which is also fixed)

Patches from Tim Yates on https://bugzilla.wikimedia.org/show_bug.cgi?id=23817

13 years ago* (bug 26250, bug 23817) Fix wfObjectToArray() to descend into arrays; fixes processi...
Brion Vibber [Sun, 13 Feb 2011 23:04:34 +0000 (23:04 +0000)]
* (bug 26250, bug 23817) Fix wfObjectToArray() to descend into arrays; fixes processing of JSON return values for ForeignAPIRepo when native json module not present

13 years agoBug 27385 - Set Polish $namespaceGenderAliases (r82029)
Raimond Spekking [Sun, 13 Feb 2011 21:35:25 +0000 (21:35 +0000)]
Bug 27385 - Set Polish $namespaceGenderAliases (r82029)

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sun, 13 Feb 2011 21:28:13 +0000 (21:28 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-13 21:00:00 UTC)

13 years ago* (bug 27377) Fix Special:Listfile user selector when initial form parameters already set
Brion Vibber [Sun, 13 Feb 2011 21:20:02 +0000 (21:20 +0000)]
* (bug 27377) Fix Special:Listfile user selector when initial form parameters already set

Follow-up to r68096: fix field name when blacklisting for hidden fields.
The user field ended up getting copied into the hidden fields due to wrong name in the getHiddenFields() call.

13 years agoFollow-up r82049: Fix strict comparison because MediaHandler::parseParamString()...
Bryan Tong Minh [Sun, 13 Feb 2011 20:38:05 +0000 (20:38 +0000)]
Follow-up r82049: Fix strict comparison because MediaHandler::parseParamString() is not guaranteed to use intval() on the width and height parameters.
Add __METHOD__ to wfDebug() call.

13 years agoAdd profiling to removeWatch
Sam Reed [Sun, 13 Feb 2011 19:12:24 +0000 (19:12 +0000)]
Add profiling to removeWatch

13 years ago* (bug 27376) when using ApiBase::PARAM_TYPE => 'integer' without a min or max value...
Sam Reed [Sun, 13 Feb 2011 17:00:47 +0000 (17:00 +0000)]
* (bug 27376) when using ApiBase::PARAM_TYPE => 'integer' without a min or max value, api doesn't validate the input is actually an integer

Fixup some space indention

13 years ago(follow-up r81558) Per suggestion, make this use media handler's getParamString/parse...
Brian Wolff [Sun, 13 Feb 2011 07:30:49 +0000 (07:30 +0000)]
(follow-up r81558) Per suggestion, make this use media handler's getParamString/parseParamString

Additionally, rename makeThumbParam back to getScale since that makes more sense now.
Also update the version number used in ForeignAPIRepo user-agent, since this is kind of significant change.

13 years ago(Follow-up r75968) r75968 started extracting and displaying some svg metadata, but...
Brian Wolff [Sun, 13 Feb 2011 04:55:35 +0000 (04:55 +0000)]
(Follow-up r75968) r75968 started extracting and displaying some svg metadata, but didn't add the messages it used.

It started to use the messages svg-description, svg-title, svg-width, and svg-height in the metadata table, without
defining those messages. I changed it to use the same messages as are used when displaying the same table on
the image description pages of jpeg files. ( exif-imagewidth and friends ). Personally I feel the metadata
should be about the image, not what format the metadata was stored in (a description of an image is still a
description of the image, regardless of the format of that image. JPEG images for example can have image descriptions in
3 different metadata formats [exif, iptc, xmp], it would be insane to make different messages for them). Furthermore,
I think we should rename all the exif-* messages to something like filemeta-property (but thats an issue for later).

I added one message, 'exif-objectname', since the svg title property didn't really correspond to anything in exif.
However, it does correspond very well to IPTC's object name property, which i hope we will start supporting in 1.18,
so I used that message for that.

13 years agofixing small typo
Krinkle [Sun, 13 Feb 2011 01:17:11 +0000 (01:17 +0000)]
fixing small typo

13 years agoNever serve 304s from RL in debug mode. This causes inadvertent caching of debug...
Roan Kattouw [Sat, 12 Feb 2011 23:41:28 +0000 (23:41 +0000)]
Never serve 304s from RL in debug mode. This causes inadvertent caching of debug responses

13 years agoFollow-up r82038. Calling wfExpandUrl() on remote base path *AFTER* is has been set...
Krinkle [Sat, 12 Feb 2011 23:20:32 +0000 (23:20 +0000)]
Follow-up r82038. Calling wfExpandUrl() on remote base path *AFTER* is has been set in the foreach loop.

(Also ping r81731)

13 years agoFollow-up r81731 CR comments. Calling wfExpandUrl() on remote base path.
Krinkle [Sat, 12 Feb 2011 22:46:41 +0000 (22:46 +0000)]
Follow-up r81731 CR comments. Calling wfExpandUrl() on remote base path.

13 years agoAdd gender aliases per r82029
Raimond Spekking [Sat, 12 Feb 2011 21:47:14 +0000 (21:47 +0000)]
Add gender aliases per r82029

13 years agoMoved wfGetSiteNotice(), wfGetNamespaceNotice() and wfGetCachedNotice() to Skin call...
Alexandre Emsenhuber [Sat, 12 Feb 2011 21:24:05 +0000 (21:24 +0000)]
Moved wfGetSiteNotice(), wfGetNamespaceNotice() and wfGetCachedNotice() to Skin call to allow passing the Skin object to the SiteNoticeBefore and SiteNoticeAfter hooks.
I didn't left compatibility functions since there's no other call to these functions in core or extensions.

13 years agoFollowup r82029 - typo in comment
Niklas Laxström [Sat, 12 Feb 2011 21:05:27 +0000 (21:05 +0000)]
Followup r82029 - typo in comment

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 12 Feb 2011 20:46:33 +0000 (20:46 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-12 20:08:00 UTC)

13 years ago* (bug 17160) Gender specific display text for User namespace
Niklas Laxström [Sat, 12 Feb 2011 20:40:40 +0000 (20:40 +0000)]
* (bug 17160) Gender specific display text for User namespace
Second attempt for this thing..

13 years agoAdding a convenience function to check if a variable is a dom element (instead of...
Krinkle [Sat, 12 Feb 2011 20:40:35 +0000 (20:40 +0000)]
Adding a convenience function to check if a variable is a dom element (instead of a jQuery object, array of dom elements or something totally different).

Note: jQuery itself uses this same check (internally).

13 years agowhitespace
Niklas Laxström [Sat, 12 Feb 2011 20:09:12 +0000 (20:09 +0000)]
whitespace

13 years agoSince mwsuggest.js is no longer used in core, wgMWSuggestTemplate is not defined...
Krinkle [Sat, 12 Feb 2011 20:08:55 +0000 (20:08 +0000)]
Since mwsuggest.js is no longer used in core, wgMWSuggestTemplate is not defined either.
This variable was previously defined by default.

Gadgets using this broke with 1.17 since they assumed wgMWSuggestTemplate was defined just like mwsuggest.js did.
I've added the definition for it inside the file itself.

13 years ago* Fix hook name
Alexandre Emsenhuber [Sat, 12 Feb 2011 17:15:24 +0000 (17:15 +0000)]
* Fix hook name
* Update paths in findhooks script

13 years agoDo r82017 the right way. Fix pointed by Bryan.
Platonides [Sat, 12 Feb 2011 15:18:59 +0000 (15:18 +0000)]
Do r82017 the right way. Fix pointed by Bryan.

13 years agoFollow up r81883. Readd the extension. This kind of breaks the tempnam() guarantee...
Platonides [Sat, 12 Feb 2011 14:58:16 +0000 (14:58 +0000)]
Follow up r81883. Readd the extension. This kind of breaks the tempnam() guarantee, but otherwise with no extension the uploader returns UploadBase::FILETYPE_MISSING, not UploadBase::SUCCESS.

13 years agoFollow-up r81971: Can't use $this->setWarning() in static context, so append the...
Bryan Tong Minh [Sat, 12 Feb 2011 14:49:34 +0000 (14:49 +0000)]
Follow-up r81971: Can't use $this->setWarning() in static context, so append the error to the imageinfo array instead

13 years agoNo need to set a new MediaWiki_I18N object, already done when creating a QuickTemplat...
Alexandre Emsenhuber [Sat, 12 Feb 2011 14:42:20 +0000 (14:42 +0000)]
No need to set a new MediaWiki_I18N object, already done when creating a QuickTemplate object

13 years agow/s fixups
Mark A. Hershberger [Sat, 12 Feb 2011 04:06:22 +0000 (04:06 +0000)]
w/s fixups

13 years agoFix up bug #26016 by applying the more descriptive comment suggested
Mark A. Hershberger [Sat, 12 Feb 2011 04:01:06 +0000 (04:01 +0000)]
Fix up bug #26016 by applying the more descriptive comment suggested
there.  Code Reviewers: have at it!!

13 years ago* (bug 27333) Fix repetitive last-seen time queries on page history
Brion Vibber [Sat, 12 Feb 2011 01:10:48 +0000 (01:10 +0000)]
* (bug 27333) Fix repetitive last-seen time queries on page history

Title::getNotificationTimestamp() is called for every line in HistoryPager, to compare against the revision's timestamp to determine if it's a new edit since the viewer's last visit to the page.
The function kept an internal cache within the Title object to avoid having to make the query over and over in this situation, but in the case that it returns null, the cached entry would be accidentally ignored on the next round due to use of isset() to check for the array entry. (Most of the time it's great, but if the value of the key actually *is* null, isset() returns false.) Switched to array_key_exists(), which doesn't have this false negative. Now only one query gets issued for this on a history page, even if the answer is null.

13 years agoResolves bug #27328 by supporting URL rewriting for CSS that comes from the Wiki...
Trevor Parscal [Fri, 11 Feb 2011 22:57:32 +0000 (22:57 +0000)]
Resolves bug #27328 by supporting URL rewriting for CSS that comes from the Wiki, such as user and site scripts.

13 years agoFixing issue with multiple premade toggles in a non-custom collapsible element.
Krinkle [Fri, 11 Feb 2011 22:30:14 +0000 (22:30 +0000)]
Fixing issue with multiple premade toggles in a non-custom collapsible element.
The problem is that when one of the toggles is clicked the classname is only changed on the toggle that was clicked. The others will stil have the wrong class. On of the areas in which this may lead to weird behaviour is the :hover styles for the up- and downarrow cursors.

Previously would bind to all of them :

<pre>
 = .find( '> .mw-collapsible-toggle' );
// ^ may match multiple ones
</pre>

...  which is good. But in the click handler:

<pre>
[..].bind( 'click.mw-collapse', function( e ){
toggleLinkPremade( this, e );
} );
</pre>

... only called the function with 'this'. This has been changed to pass all of  instead.

This problem was discovered in the following scenario. Where an .mw-collapsible has three children. The first two are clickable and are the togglers for the third child.
http://translatewiki.net/w/i.php?title=Sandbox&oldid=2692006

13 years agoFixup a couple of parameter documentation bits
Sam Reed [Fri, 11 Feb 2011 22:06:46 +0000 (22:06 +0000)]
Fixup a couple of parameter documentation bits

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 11 Feb 2011 20:37:31 +0000 (20:37 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-11 20:17:00 UTC)

13 years agoComment cleanup, unused vars
Niklas Laxström [Fri, 11 Feb 2011 19:30:35 +0000 (19:30 +0000)]
Comment cleanup, unused vars

13 years agoAdd a content type and encoding header to profileinfo.php, encoding was borked
Niklas Laxström [Fri, 11 Feb 2011 19:28:04 +0000 (19:28 +0000)]
Add a content type and encoding header to profileinfo.php, encoding was borked

13 years agoFollow-up r81984: Fix function name.
Bryan Tong Minh [Fri, 11 Feb 2011 19:13:27 +0000 (19:13 +0000)]
Follow-up r81984: Fix function name.

Apologies for the double commit, but my diff is broken locally.

13 years ago* Remove code duplication for UploadStash: Move all thumbName generation code to...
Bryan Tong Minh [Fri, 11 Feb 2011 19:10:31 +0000 (19:10 +0000)]
* Remove code duplication for UploadStash:  Move all thumbName generation code to its own function File::generateThumbName which accepts a $name parameter which can be called by File::thumbName() and any other functions that require it. The essentially duplicate function StashFile::getParamThumbName() has been removed.
* Add a small url encoding fix

13 years agoUse self:: when it's possible
Niklas Laxström [Fri, 11 Feb 2011 19:03:05 +0000 (19:03 +0000)]
Use self:: when it's possible

13 years agoPartial fix for bug 27310. Add domain information when doing password resets. Also...
Ryan Lane [Fri, 11 Feb 2011 17:38:56 +0000 (17:38 +0000)]
Partial fix for bug 27310. Add domain information when doing password resets. Also, the login form being used for non-logged in users was failing because of a missing login token, so this adds a login token before the form is executed.

13 years agoFollow-up r81971: Fix error handling
Bryan Tong Minh [Fri, 11 Feb 2011 15:42:28 +0000 (15:42 +0000)]
Follow-up r81971: Fix error handling

13 years ago* (bug 27199) Thumbnail urls can be fetched for old files as well
Bryan Tong Minh [Fri, 11 Feb 2011 15:40:39 +0000 (15:40 +0000)]
* (bug 27199) Thumbnail urls can be fetched for old files as well

13 years agoFollow-up r81558: Only raise a warning if no image handler could be found
Bryan Tong Minh [Fri, 11 Feb 2011 15:31:52 +0000 (15:31 +0000)]
Follow-up r81558: Only raise a warning if no image handler could be found

13 years agoSince 1.17 a whole lot of extensions have sprouted *.i18n.magic.php files. Most of...
Tim Starling [Fri, 11 Feb 2011 11:53:00 +0000 (11:53 +0000)]
Since 1.17 a whole lot of extensions have sprouted *.i18n.magic.php files. Most of these files have entries which erroneously omit the English synonym for a magic word. This breaks the extension completely when an affected language is selected.

This patch automatically includes synonyms from the fallback localisation, and prevents the case flag from being overridden, thus making extensions resistant to translator error.

13 years agoMerge callback fixes from 1.17wmf1. /e is evil.
Chad Horohoe [Fri, 11 Feb 2011 10:27:07 +0000 (10:27 +0000)]
Merge callback fixes from 1.17wmf1. /e is evil.

13 years agoWrap old toolbar addButton() calls in a document ready, so they're not run early...
Roan Kattouw [Fri, 11 Feb 2011 09:38:38 +0000 (09:38 +0000)]
Wrap old toolbar addButton() calls in a document ready, so they're not run early and explode in debug mode

13 years agoApply $wgContLang-based flip logic to site and user modules too. I swear we did this...
Roan Kattouw [Fri, 11 Feb 2011 09:27:02 +0000 (09:27 +0000)]
Apply $wgContLang-based flip logic to site and user modules too. I swear we did this at some point

13 years agoFixes for r81936 per Tim's review
Roan Kattouw [Fri, 11 Feb 2011 08:29:55 +0000 (08:29 +0000)]
Fixes for r81936 per Tim's review

13 years agoFix getMsgBlobMtime() to also cause a cache invalidation if a module has messages...
Roan Kattouw [Fri, 11 Feb 2011 08:07:47 +0000 (08:07 +0000)]
Fix getMsgBlobMtime() to also cause a cache invalidation if a module has messages but no stored message blob

13 years agoFix a small bug in SkinLegacy.
Daniel Friesen [Fri, 11 Feb 2011 06:42:40 +0000 (06:42 +0000)]
Fix a small bug in SkinLegacy.

13 years agoAdd a new maintenance script to reset the user_token of all users if you think someon...
Daniel Friesen [Fri, 11 Feb 2011 02:46:08 +0000 (02:46 +0000)]
Add a new maintenance script to reset the user_token of all users if you think someone got ahold of your user table.

13 years ago$wgDBts2schema was removed in r81132
Platonides [Thu, 10 Feb 2011 23:57:30 +0000 (23:57 +0000)]
$wgDBts2schema was removed in r81132

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 10 Feb 2011 21:27:12 +0000 (21:27 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-02-10 21:02:00 UTC)

13 years agoMonoBook is now tooltip() and tooltipAndAccesskeyAttribs() free!
Platonides [Thu, 10 Feb 2011 20:46:50 +0000 (20:46 +0000)]
MonoBook is now tooltip() and tooltipAndAccesskeyAttribs() free!

13 years agoFollow up r81914. Don't build the <li> manually.
Platonides [Thu, 10 Feb 2011 20:36:18 +0000 (20:36 +0000)]
Follow up r81914. Don't build the <li> manually.

13 years agoKill calls to tooltip() and tooltipAndAccesskeyAttribs() from MonoBook and Modern
Platonides [Thu, 10 Feb 2011 19:46:36 +0000 (19:46 +0000)]
Kill calls to tooltip() and tooltipAndAccesskeyAttribs() from MonoBook and Modern

13 years agoRemove unused initial_setup(), last $wgDBts2schema user. Follow up to r81132
Platonides [Thu, 10 Feb 2011 19:12:33 +0000 (19:12 +0000)]
Remove unused initial_setup(), last $wgDBts2schema user. Follow up to r81132