lhc/web/wiklou.git
12 years ago* (bug 34768) Set width and height for search-ltr.png (and search-rtl.png) in Vector...
Brion Vibber [Wed, 29 Feb 2012 20:02:42 +0000 (20:02 +0000)]
* (bug 34768) Set width and height for search-ltr.png (and search-rtl.png) in Vector skin

<img> in <button> didn't have width or height set.

12 years agoFollowup r112374/bug 34653
Sam Reed [Wed, 29 Feb 2012 17:50:02 +0000 (17:50 +0000)]
Followup r112374/bug 34653

We still get legacy log entries, so grab the data from parameters as applicable

Should probably be encapsulated into DatabaseLogEntry itself, with a getParamValue esk wrapper

This fixes issues noticed on live site for the moment

TODO: Check if rights/block are still ok (probably not?)
TODO: If (especially if above needs doing) encapsulate grabbing of old/new parameters to logging code

12 years agoLocalisation update for core and extension messages from translatewiki.net
Raimond Spekking [Wed, 29 Feb 2012 12:34:33 +0000 (12:34 +0000)]
Localisation update for core and extension messages from translatewiki.net

12 years ago[mediawiki.js] minor improvements based on recently added features to JSLint
Krinkle [Wed, 29 Feb 2012 01:52:47 +0000 (01:52 +0000)]
[mediawiki.js] minor improvements based on recently added features to JSLint

* Fix with help of JSLint:
-- else statement after a return at the end of a connected if statement
* Using arguments.length incorrectly
* Added JSLint settings to the file

12 years agor111588: refactored proxy/noProxy code slightly for simplicity
Aaron Schulz [Wed, 29 Feb 2012 00:36:40 +0000 (00:36 +0000)]
r111588: refactored proxy/noProxy code slightly for simplicity

12 years agomaking sure colored buttons get white icons, implementing a smarter css selector...
Ryan Kaldari [Tue, 28 Feb 2012 23:48:36 +0000 (23:48 +0000)]
making sure colored buttons get white icons, implementing a smarter css selector scheme for large colored buttons (less redundancy)

12 years ago* Don't execute the LinkBatch if there are now rows
Alexandre Emsenhuber [Tue, 28 Feb 2012 21:12:38 +0000 (21:12 +0000)]
* Don't execute the LinkBatch if there are now rows
* Call methods directly on ResultWrapper instead of DatabaseBase

12 years agofix r112591: re-add whitespace between message name and (talk)
Robin Pepermans [Tue, 28 Feb 2012 20:14:39 +0000 (20:14 +0000)]
fix r112591: re-add whitespace between message name and (talk)

12 years agoUse local context to get messages
Alexandre Emsenhuber [Tue, 28 Feb 2012 18:46:36 +0000 (18:46 +0000)]
Use local context to get messages

12 years agoPass __METHOD__ to DatabaseBase::commit() and DatabaseBase::rollback()
Alexandre Emsenhuber [Tue, 28 Feb 2012 18:41:36 +0000 (18:41 +0000)]
Pass __METHOD__ to DatabaseBase::commit() and DatabaseBase::rollback()

12 years agoFollow-up r112565: fix code duplication
Max Semenik [Tue, 28 Feb 2012 14:42:08 +0000 (14:42 +0000)]
Follow-up r112565: fix code duplication

12 years ago(bug 34702) More localised parentheses.
Siebrand Mazeland [Tue, 28 Feb 2012 12:41:26 +0000 (12:41 +0000)]
(bug 34702) More localised parentheses.

12 years ago(bug 34702) More localised parentheses. Patch contributed by Yusuke Matsubara.
Siebrand Mazeland [Tue, 28 Feb 2012 11:56:59 +0000 (11:56 +0000)]
(bug 34702) More localised parentheses. Patch contributed by Yusuke Matsubara.

12 years ago[mediawiki.action.edit] Clean up and bug fixes
Krinkle [Tue, 28 Feb 2012 03:17:05 +0000 (03:17 +0000)]
[mediawiki.action.edit] Clean up and bug fixes
* Bugfix: Locally alias the toolbar object and replace usage of 'this' with 'toolbar'. Calls to window.addButton were failing due to it referring to the dynamic 'this' context which changes when the function is a member of a different object.
* Bugfux: Move currentFocused = $( '#wpTextbox1' ) into the dom-ready hook. When executed before dom-ready the element doesn't exist yet. r111983 did this for $toolbar, but not for currentFocused (bug 34538)

* Move onReady and isReady to the local scope (introduced recently in r111983, not used or meant to be used publicly)
* Merge onReady with the $(document).ready hook function, same purpose
* JS conventions (closure arguments, var hoisting, whitespace)

* Touch r111983, r112451, r112567

12 years agoFix r110209: Move the invalid title check above the first use of the title object...
Tim Starling [Tue, 28 Feb 2012 02:55:36 +0000 (02:55 +0000)]
Fix r110209: Move the invalid title check above the first use of the title object, to avoid a fatal error, for example when navigating to [[Special:MovePage]] with no target.

12 years agoFix scoping in r112451: isReady was accidentally used as a global variable
Roan Kattouw [Tue, 28 Feb 2012 02:36:29 +0000 (02:36 +0000)]
Fix scoping in r112451: isReady was accidentally used as a global variable

12 years agor112563: Removed random bogus user IDs passed into to Block constructor in tests
Aaron Schulz [Tue, 28 Feb 2012 02:32:59 +0000 (02:32 +0000)]
r112563: Removed random bogus user IDs passed into to Block constructor in tests

12 years ago(bug 34762) Calling close() on a DatabaseBase object now clears the connection. Based...
Chad Horohoe [Tue, 28 Feb 2012 02:18:18 +0000 (02:18 +0000)]
(bug 34762) Calling close() on a DatabaseBase object now clears the connection. Based on patch by Christian.

By the way, the duplication here is stupid.

12 years agoForce the target user ID to be the correct foreign ID on the relevant local wikis...
Aaron Schulz [Tue, 28 Feb 2012 02:04:30 +0000 (02:04 +0000)]
Force the target user ID to be the correct foreign ID on the relevant local wikis for crosswiki suppress blocks.

12 years ago[IRC Log Message] Fix for protect/protect and protect/modify
Krinkle [Tue, 28 Feb 2012 01:56:15 +0000 (01:56 +0000)]
[IRC Log Message] Fix for protect/protect and protect/modify

* protect/protect and protect/modify were still failing because the output on IRC is not matching the i18n messages. The bots look for comment.match(<i18n-message> + (optionally) followed by ": user comment").
* The problem with protect/protect and protect/modify is that the protection settings are also inserted in somewhere in the message. Before MediaWiki 1.19 these were included in the IRC message as part of $1 (title). That may be ugly, but that's how it has always been. Since the point is to reproduce the old output we need to fix this one as well. This will make the output like:

  Krinkle * protected "[[Sandbox [edit=autoconfirmed)]]"

which is exactly how it has been before and that's the the bots rely on (which was presumably done originally like that since it was the only way to make the output match the i18n message)

* Fixes more bug 34508

12 years ago[RecentChangeTest] Refactor unit test to test better test the issue
Krinkle [Tue, 28 Feb 2012 00:39:01 +0000 (00:39 +0000)]
[RecentChangeTest] Refactor unit test to test better test the issue
* assert used message-keys/variables instead of hardcoded values
* Pass $comment to the assertion helper instead of using it by default so that actions that don't use a comment (such as patrol) don't get forced a comment, to better replicate the IRC behavior
* Adding placeholder for Auto-Edit-Summary things that should also be checked in here, not sure how to do those yet
* Adding tests for block/* and protect/*

12 years agoFix exception from list=recentchanges rcprop=loginfo: update for new log system
Tim Starling [Tue, 28 Feb 2012 00:14:33 +0000 (00:14 +0000)]
Fix exception from list=recentchanges rcprop=loginfo: update for new log system

12 years agoDummy proof TempFSFile purging when the constructor is used directly to avoid data...
Aaron Schulz [Mon, 27 Feb 2012 23:00:32 +0000 (23:00 +0000)]
Dummy proof TempFSFile purging when the constructor is used directly to avoid data loss.

12 years agoIn ResourceLoaderContext, normalize invalid skin names to $wgDefaultSkin . This shoul...
Roan Kattouw [Mon, 27 Feb 2012 22:41:20 +0000 (22:41 +0000)]
In ResourceLoaderContext, normalize invalid skin names to $wgDefaultSkin . This should help a lot with the pollution of the module_deps table, which is currently littered with invalid skin names from people trying to hack the site. I found 3,897 (!!) distinct values for md_skin

Sample from the query result:

| md_module                   | md_skin                          |
|-----------------------------|----------------------------------|
| ext.vector.collapsibleNav   | vector'                          |
| ext.vector.collapsibleNav   | vector' and 1=1--                |
| ext.vector.collapsibleNav   | vector' and 1=2--                |
| ext.vector.collapsibleNav   | vector')waitfor delay'0:0:20'--  |
| ext.vector.collapsibleNav   | vector',0)waitfor delay'0:0:20'- |
| ext.vector.collapsibleNav   | vector',0,0)waitfor delay'0:0:20 |
| ext.vector.collapsibleNav   | vector',0,0,0)waitfor delay'0:0: |
| ext.vector.collapsibleNav   | vector'waitfor delay'0:0:20'--   |
| ext.vector.collapsibleNav   | vector../../../../../../../../.. |
[...]
| ext.vector.sectionEditLinks | vector<script src=               |
| ext.vector.sectionEditLinks | vector?.tri.co.id/               |
| ext.vector.sectionEditLinks | vector??id=jCustomerWAPProv      |
| ext.vector.sectionEditLinks | vector??id=wap.mauj.com....      |
| ext.vector.sectionEditLinks | vector?id=202.87.41.147....      |
| ext.vector.sectionEditLinks | vector?java                      |
| ext.vector.sectionEditLinks | vector?m.vuclip.com/             |
| ext.vector.sectionEditLinks | vector?toyota.co.id              |
| ext.vector.sectionEditLinks | vectorGET                        |
| ext.vector.sectionEditLinks | vector]]>>                       |
| ext.vector.sectionEditLinks | vector`ping -c 20 127.0.0.1`     |
| ext.vector.sectionEditLinks | vector|echo 9e7f7fd5750593ab cef |
| ext.vector.sectionEditLinks | vector|ping -c 20 127.0.0.1||x   |

12 years ago(bug 34542) Calling mw.loader.load('http://someurlhere') sometimes calls document...
Roan Kattouw [Mon, 27 Feb 2012 22:33:14 +0000 (22:33 +0000)]
(bug 34542) Calling mw.loader.load('someurlhere') sometimes calls document.write() from inside an asynchronously loaded script. This is because we added the async parameter in 1.19, and made it default to false, which works for 1.18 HTML but doesn't work for user/site/Gadget JS written for 1.18 . So make the async parameter default to true when a URL is passed and to false otherwise. This is kind of evil but it's the only sane way of preserving b/c that I can think of

12 years agoRevert r110045: well-meaning but broken attempt to apply preemptive XSS protection...
Brion Vibber [Mon, 27 Feb 2012 21:52:33 +0000 (21:52 +0000)]
Revert r110045: well-meaning but broken attempt to apply preemptive XSS protection on messages

This caused bug 34708: broke usage examples in WikiEditor which include <a href> or <img> tags as-is, which is perfectly legit HTML.

12 years agoLocalisation update for core and extension messages from translatewiki.net
Raimond Spekking [Mon, 27 Feb 2012 21:36:19 +0000 (21:36 +0000)]
Localisation update for core and extension messages from translatewiki.net

12 years agoThey don't want this customised - reported on IRC
Niklas Laxström [Mon, 27 Feb 2012 19:01:58 +0000 (19:01 +0000)]
They don't want this customised - reported on IRC

12 years ago* partly fixes two issues exposed by bug 34280
Jure Kajzer [Mon, 27 Feb 2012 19:01:10 +0000 (19:01 +0000)]
* partly fixes two issues exposed by bug 34280
** forcing recreate if creating user
** parent::createTables was setting DB to a wrong setting

12 years agoCombine getLanguageNames and getTranslatedLanguageNames into one function which is...
Robin Pepermans [Mon, 27 Feb 2012 11:59:24 +0000 (11:59 +0000)]
Combine getLanguageNames and getTranslatedLanguageNames into one function which is much easier and more logical to use. Does not contain any actual changes yet in what the function does.
* Reduces the overly long code in r107002, and reduces code for {{#language:}}
* Fixes the language list in Special:Translate which contained languages that gave "invalid code" when selecting

12 years ago(bug 34736) empty limit on special pages causes navigation issues
Antoine Musso [Mon, 27 Feb 2012 10:17:01 +0000 (10:17 +0000)]
(bug 34736) empty limit on special pages causes navigation issues

On special pages, the older link showed a limit='' query parameter which
made the page show nothing ('' is evalued to a limit of 0 articles).

The cause is r105809 which changed the way we interprets parameters in
wfArrayToCGI() and wfCGIToArray(). Previously, An empty string value would skip
the key, after r105809, we need to use null.

12 years agoTypofix, ping r112427
Chad Horohoe [Mon, 27 Feb 2012 02:40:08 +0000 (02:40 +0000)]
Typofix, ping r112427

12 years agoMake userAgent also work as an option to MWHttpRequest::factory() and MWHttpRequest...
Tim Starling [Mon, 27 Feb 2012 01:37:06 +0000 (01:37 +0000)]
Make userAgent also work as an option to MWHttpRequest::factory() and MWHttpRequest::__construct(), not just Http::request().

12 years agoRemove empty messages introduced in r108445. Translation is present in fallback tt...
Robin Pepermans [Mon, 27 Feb 2012 00:51:49 +0000 (00:51 +0000)]
Remove empty messages introduced in r108445. Translation is present in fallback tt-cyrl.

12 years ago[mediawik.special.changeslist] Remove ugly arrow swapping hack
Krinkle [Mon, 27 Feb 2012 00:03:14 +0000 (00:03 +0000)]
[mediawik.special.changeslist] Remove ugly arrow swapping hack
* Use CSS and change the background image, instead of displaying 2 <img> tags and hiding one based on the parent element's class
* touches bug 17616 a bit, although it doesn't address the focus issue yet, but does improve the overal structure of this module
* Also speeds up by:
- Outputting less markup
- Having 1 embedded images in the CSS file instead of (N changes)*<img> tags
* jquery.makeCollapsible:

12 years agoRelease notes for added feature in r112451 which fixed bug 33952
Krinkle [Sun, 26 Feb 2012 23:47:22 +0000 (23:47 +0000)]
Release notes for added feature in r112451 which fixed bug 33952

12 years agoRe-add the exception log removed in r88392: unlike Chrome, the current Firebug displa...
Tim Starling [Sun, 26 Feb 2012 23:03:45 +0000 (23:03 +0000)]
Re-add the exception log removed in r88392: unlike Chrome, the current Firebug displays exceptions dumped in this way with full details, including a backtrace

12 years ago* Fix r111983 (bug 34662): make mw.toolbar.addButton() work even after DOM ready
Tim Starling [Sun, 26 Feb 2012 22:46:40 +0000 (22:46 +0000)]
* Fix r111983 (bug 34662): make mw.toolbar.addButton() work even after DOM ready
* Don't use an empty array as the default for $toolbar, use false which will throw an exception on a logic error.
* Fix exception handling in mw.loader: have handlePending() rethrow its exception so that the exception handler in execute() can run, so that the exception gets logged. But don't rethrow the exception in execute(), because that may break other modules.

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sun, 26 Feb 2012 19:55:37 +0000 (19:55 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoPass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and DatabaseBase...
Alexandre Emsenhuber [Sun, 26 Feb 2012 17:19:11 +0000 (17:19 +0000)]
Pass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and DatabaseBase::rollback()

12 years agoAdd lang and hreflang tags to the variants in the variant menu's. This fixes bug...
Derk-Jan Hartman [Sun, 26 Feb 2012 16:52:37 +0000 (16:52 +0000)]
Add lang and hreflang tags to the variants in the variant menu's. This fixes bug 24742.

I have not added the rel 'alternate' links, because they are also present in the <head>

12 years ago[mediawiki.api.watch] Re-use watch() in unwatch().
Krinkle [Sun, 26 Feb 2012 15:57:01 +0000 (15:57 +0000)]
[mediawiki.api.watch] Re-use watch() in unwatch().
- Fix dependency issue. In practice not an issue due to user.tokens being in the HTML output before the first mw.loader.load()
- Follows-up r107969, r107350

12 years agoAdded @since annotations
Niklas Laxström [Sun, 26 Feb 2012 14:16:53 +0000 (14:16 +0000)]
Added @since annotations

12 years agoUse local context ( $this->msg() ) instead of global method wfMessage() per IAlex...
Siebrand Mazeland [Sun, 26 Feb 2012 14:02:54 +0000 (14:02 +0000)]
Use local context ( $this->msg() ) instead of global method wfMessage() per IAlex. Follows-up r112433.

12 years agoUse local context to get messages
Alexandre Emsenhuber [Sun, 26 Feb 2012 13:34:58 +0000 (13:34 +0000)]
Use local context to get messages

12 years ago(bug 34702) Localised parentheses are now used in more special pages.
Siebrand Mazeland [Sun, 26 Feb 2012 13:08:41 +0000 (13:08 +0000)]
(bug 34702) Localised parentheses are now used in more special pages.

12 years agoFollow up r112423, added release note.
Amir E. Aharoni [Sun, 26 Feb 2012 12:26:16 +0000 (12:26 +0000)]
Follow up r112423, added release note.

12 years agoWow. Messy. Follow-up r112426, r112424: Fix incorrect calls. Should have been escaped...
Siebrand Mazeland [Sun, 26 Feb 2012 12:11:35 +0000 (12:11 +0000)]
Wow. Messy. Follow-up r112426, r112424: Fix incorrect calls. Should have been escaped() instead of escape().

12 years agoFollow-up r112424: Per IAlex on IRC: Use escape() instead of plain() for improved...
Siebrand Mazeland [Sun, 26 Feb 2012 12:07:21 +0000 (12:07 +0000)]
Follow-up r112424: Per IAlex on IRC: Use escape() instead of plain() for improved security.

12 years agoFollow-up r112410, r112412: Cheaper processing using plain().
Siebrand Mazeland [Sun, 26 Feb 2012 11:49:01 +0000 (11:49 +0000)]
Follow-up r112410, r112412: Cheaper processing using plain().

12 years agoFixes bug 34723: applies the English language to CSS/JS both as a user subpage and...
Amir E. Aharoni [Sun, 26 Feb 2012 11:39:49 +0000 (11:39 +0000)]
Fixes bug 34723: applies the English language to CSS/JS both as a user subpage and a MediaWiki space page, and consequently applies LTR to JS and CSS in the textarea.

12 years agorename test file to end with Test.php :D
Antoine Musso [Sat, 25 Feb 2012 21:39:54 +0000 (21:39 +0000)]
rename test file to end with Test.php :D

12 years agobasic tests for bug 34508
Antoine Musso [Sat, 25 Feb 2012 21:22:49 +0000 (21:22 +0000)]
basic tests for bug 34508

12 years agoFollow-up r112410: (bug 34702) Use localised parentheses for comment, too.
Siebrand Mazeland [Sat, 25 Feb 2012 20:53:54 +0000 (20:53 +0000)]
Follow-up r112410: (bug 34702) Use localised parentheses for comment, too.

12 years ago(bug 34702) Use localised parentheses in Special:Contributions.
Siebrand Mazeland [Sat, 25 Feb 2012 20:42:08 +0000 (20:42 +0000)]
(bug 34702) Use localised parentheses in Special:Contributions.

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

12 years agoFixes bug 34715 Image redirects show the "redirected from" subtitle twice.
Derk-Jan Hartman [Sat, 25 Feb 2012 20:30:38 +0000 (20:30 +0000)]
Fixes bug 34715 Image redirects show the "redirected from" subtitle twice.

ImagePage no longer needs to set the "redirectedfrom" header by itself. Seems Article.php is taking care of it now. I suspect this was caused by the refactoring of WikiPage, Article, etc.

12 years agorelease-notes 1.19: Mark .wikitable change as BREAKING-CHANGES
Krinkle [Sat, 25 Feb 2012 16:36:43 +0000 (16:36 +0000)]
release-notes 1.19: Mark .wikitable change as BREAKING-CHANGES

12 years agoForgot to commit this file in r112396
Alexandre Emsenhuber [Sat, 25 Feb 2012 16:00:26 +0000 (16:00 +0000)]
Forgot to commit this file in r112396

12 years ago* (bug 34246) Display MediaWiki:Whatlinkshere-summary again in Special:Whatlinkshere
Alexandre Emsenhuber [Sat, 25 Feb 2012 15:59:12 +0000 (15:59 +0000)]
* (bug 34246) Display MediaWiki:Whatlinkshere-summary again in Special:Whatlinkshere

12 years ago* (bug 34528) Don't parse section name in edit section tooltips
Alexandre Emsenhuber [Sat, 25 Feb 2012 15:23:45 +0000 (15:23 +0000)]
* (bug 34528) Don't parse section name in edit section tooltips

12 years agoPass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and DatabaseBase...
Alexandre Emsenhuber [Sat, 25 Feb 2012 13:23:43 +0000 (13:23 +0000)]
Pass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and DatabaseBase::rollback()

12 years agoUse local context to get messages
Alexandre Emsenhuber [Sat, 25 Feb 2012 13:21:26 +0000 (13:21 +0000)]
Use local context to get messages

12 years agofixing bug 34609 - datepicker should always be set to display:none by default
Ryan Kaldari [Sat, 25 Feb 2012 03:02:23 +0000 (03:02 +0000)]
fixing bug 34609 - datepicker should always be set to display:none by default

12 years agoFixed $headers check in streamFile() to use isset()
Aaron Schulz [Sat, 25 Feb 2012 02:01:35 +0000 (02:01 +0000)]
Fixed $headers check in streamFile() to use isset()

12 years agoMore file streaming related profiling
Aaron Schulz [Sat, 25 Feb 2012 01:43:20 +0000 (01:43 +0000)]
More file streaming related profiling

12 years agoAdded some StreamFile profiling
Aaron Schulz [Sat, 25 Feb 2012 00:53:56 +0000 (00:53 +0000)]
Added some StreamFile profiling

12 years agoAttempting to address bug 34653; It seems ApiQueryLogEvents has not kept up with...
Arthur Richards [Fri, 24 Feb 2012 23:39:42 +0000 (23:39 +0000)]
Attempting to address bug 34653; It seems ApiQueryLogEvents has not kept up with changes to the Logging classes. I've changed some aspects of the ApiQueryLogEvents to use a DatabaseLogEntry object when extracting log row information and updated addLogParams to use this new scheme for handling parameters. I have not been able to sufficiently test this and I am still concerned about backwards compatibility with old parameter formats for older log records as well as parameter handling for the 'rights' and 'block' log types.

12 years ago[mw.loader] Remove 'media' type support in addInlineCSS
Krinkle [Fri, 24 Feb 2012 23:32:36 +0000 (23:32 +0000)]
[mw.loader] Remove 'media' type support in addInlineCSS

* This was never used in practice because the server only gives css text strings for media type "" or "all". Because server side concatenates everything together during pre-processing and e.g. print-stylesheet parts of it are wrapped in @media print {}

* Follows-up r110988

12 years ago[mw.loader] Refactor addInlineCSS's logic, fixing various bugs
Krinkle [Fri, 24 Feb 2012 23:22:30 +0000 (23:22 +0000)]
[mw.loader] Refactor addInlineCSS's logic, fixing various bugs

* Using mw.util.addCSS as base to instance of bug 33305 automatically
* Expose as mw.loader.addStyleTag
* Re-use the code in mw.util.addCSS
* Drop the "text > Cdata > element > jQuery object > innerHTML", in favor of setting cssText or appending a text node (html escapement isn't a problem when working with text nodes directly).
* Appending this way also works in IE, no need for the dispose/re-create style-tag logic in the try-catch().

* Follows-up r110988 (fixme)

12 years ago[JSTesting] actually commit the file (follows-up r112368)
Krinkle [Fri, 24 Feb 2012 23:14:02 +0000 (23:14 +0000)]
[JSTesting] actually commit the file (follows-up r112368)

12 years ago[JSTesting] Add more mw.loader tests
Krinkle [Fri, 24 Feb 2012 23:13:24 +0000 (23:13 +0000)]
[JSTesting] Add more mw.loader tests
* Follows-up r12279, r112281
* Follows-up r110988: Adds test for @import (currently failing: bug 34669)
* Adding StyleTest.css.php for making this easier and re-usable

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Fri, 24 Feb 2012 21:11:11 +0000 (21:11 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agor112128: Comment out dupe message keys
Raimond Spekking [Fri, 24 Feb 2012 20:31:11 +0000 (20:31 +0000)]
r112128: Comment out dupe message keys

12 years agoavoid test suite file leaks
Antoine Musso [Fri, 24 Feb 2012 20:30:55 +0000 (20:30 +0000)]
avoid test suite file leaks

12 years agor100315: removed now redundant code
Aaron Schulz [Fri, 24 Feb 2012 20:22:16 +0000 (20:22 +0000)]
r100315: removed now redundant code

12 years agowikistandard.css is not a common skin file, it is only used by the classic/standard...
Ryan Kaldari [Fri, 24 Feb 2012 20:13:30 +0000 (20:13 +0000)]
wikistandard.css is not a common skin file, it is only used by the classic/standard skin. moving from skins/common/ to skins/standard

12 years agoIn FSFileBackend:
Aaron Schulz [Fri, 24 Feb 2012 20:10:36 +0000 (20:10 +0000)]
In FSFileBackend:
* Removed some error suppression as display_errors should never be enabled for production sites and the suppression hid useful log information.

12 years agofollow-up to r111861, fixing classic skin
Ryan Kaldari [Fri, 24 Feb 2012 20:03:40 +0000 (20:03 +0000)]
follow-up to r111861, fixing classic skin

12 years agoTest that verifies uniqueness of query module prefixes
Max Semenik [Fri, 24 Feb 2012 18:49:48 +0000 (18:49 +0000)]
Test that verifies uniqueness of query module prefixes

12 years agoMore __METHOD__ in our madness
Sam Reed [Fri, 24 Feb 2012 18:45:24 +0000 (18:45 +0000)]
More __METHOD__ in our madness

12 years agoImprove documentation
Sam Reed [Fri, 24 Feb 2012 18:38:04 +0000 (18:38 +0000)]
Improve documentation

12 years agoMore __METHOD__ into db related methods
Sam Reed [Fri, 24 Feb 2012 17:00:52 +0000 (17:00 +0000)]
More __METHOD__ into db related methods

12 years agobetter structure filename error output
Antoine Musso [Fri, 24 Feb 2012 16:54:48 +0000 (16:54 +0000)]
better structure filename error output

When dumping an array, PHPUnit limit the number of characters shown. That would
just hide the relevant part of the path:

1) StructureTest::testUnitTestFileNamesEndWithTest
[...]
 Array (
+    0 => '/some/path/tests/phpunit/incl...ge.php'
+    1 => '/some/path/tests/phpunit/incl...ki.php'
 )

By stripping the common path ( /some/path/tests/phpunit ), we end up with a
more useful output:

 Array (
+    0 => 'includes/RecentChange.php'
+    1 => 'includes/Wiki.php'
 )

12 years agoavoid exif tests file leakage
Antoine Musso [Fri, 24 Feb 2012 15:43:11 +0000 (15:43 +0000)]
avoid exif tests file leakage

Exif test are leaking files heavily on our test server. This quick patch make
it sure we delete temporary files.

Ideally, we should have something like a temporary filesystem backend that
would self destruct :-D

requires r112326: wfRecursiveRemoveDir()

12 years agomove wfRecursiveRemoveDir to global functions
Antoine Musso [Fri, 24 Feb 2012 15:41:06 +0000 (15:41 +0000)]
move wfRecursiveRemoveDir to global functions

That useful method was hidden in SeleniumWebSettings. I need it to clean
up test files leakages.

12 years agoPass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and DatabaseBase...
Alexandre Emsenhuber [Fri, 24 Feb 2012 14:47:49 +0000 (14:47 +0000)]
Pass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and DatabaseBase::rollback()

12 years agoUse local context to get message
Alexandre Emsenhuber [Fri, 24 Feb 2012 12:52:42 +0000 (12:52 +0000)]
Use local context to get message

12 years agoFix bug 34684 in my PathRouter code:
Daniel Friesen [Fri, 24 Feb 2012 11:31:36 +0000 (11:31 +0000)]
Fix bug 34684 in my PathRouter code:
- Update the tests to test extra characters and patterns like like \\ and $1
- Also update the tests to make sure that matches that don't have enough data to work fail
- Replace the str_replace and preg_match based code with code based on preg_replace_callback.

12 years agoContribsPager can't accept multiple namespaces, passing an array causes a warning...
Tim Starling [Fri, 24 Feb 2012 04:29:50 +0000 (04:29 +0000)]
ContribsPager can't accept multiple namespaces, passing an array causes a warning in DatabaseMysql::strencode(). Not sure if/how this worked in 1.18 but it's broken in 1.19wmf1. Tested.

12 years agoExamples can just be a string
Sam Reed [Fri, 24 Feb 2012 02:06:39 +0000 (02:06 +0000)]
Examples can just be a string

So if it's not false, it can be string|array, if it's a string, just put it in an array

12 years ago[JSTesting] mock/restore mw.messages as well, like mw.config
Krinkle [Fri, 24 Feb 2012 01:00:54 +0000 (01:00 +0000)]
[JSTesting] mock/restore mw.messages as well, like mw.config

12 years ago[JSTesting] Refactor mw.loader test to be more extendable
Krinkle [Fri, 24 Feb 2012 00:44:33 +0000 (00:44 +0000)]
[JSTesting] Refactor mw.loader test to be more extendable

12 years agoImproved profiling of a few functions a bit
Aaron Schulz [Thu, 23 Feb 2012 23:00:38 +0000 (23:00 +0000)]
Improved profiling of a few functions a bit

12 years agofix doc, this is not an array
Jeroen De Dauw [Thu, 23 Feb 2012 22:58:11 +0000 (22:58 +0000)]
fix doc, this is not an array

12 years agodocs++
Jeroen De Dauw [Thu, 23 Feb 2012 22:26:38 +0000 (22:26 +0000)]
docs++

12 years agoPass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and DatabaseBase...
Alexandre Emsenhuber [Thu, 23 Feb 2012 20:01:17 +0000 (20:01 +0000)]
Pass __METHOD__ to DatabaseBase::begin(), DatabaseBase::commit() and DatabaseBase::rollback()

12 years agoUse local context to get messages
Alexandre Emsenhuber [Thu, 23 Feb 2012 19:57:42 +0000 (19:57 +0000)]
Use local context to get messages

12 years agoBug 34604 - [mw.config] wgActionPaths should be an object instead of a numeral array...
Krinkle [Thu, 23 Feb 2012 02:45:45 +0000 (02:45 +0000)]
Bug 34604 - [mw.config] wgActionPaths should be an object instead of a numeral array JavaScript

12 years agorelease-notes-1.19
Krinkle [Thu, 23 Feb 2012 02:43:57 +0000 (02:43 +0000)]
release-notes-1.19
* Update some bug summaries to clearer versions (to lessen ambiguity as to whether it describes the removed behavior or the added one).

* Removed "Some deprecated presentational html attributes will now be automatically
  converted to css." duplicate entry of "Most presentational html attributes like valign are now converted to inline css style rules."

* Removed bug 24037, which was reverted.