lhc/web/wiklou.git
12 years agoAdded some lock call profiling
Aaron Schulz [Fri, 2 Mar 2012 01:34:06 +0000 (01:34 +0000)]
Added some lock call profiling

12 years ago(bug 34863) Make it so an image that was previously deleted and currently does not...
Brian Wolff [Fri, 2 Mar 2012 01:02:41 +0000 (01:02 +0000)]
(bug 34863) Make it so an image that was previously deleted and currently does not exist (locally or foreignly), shows a snippet from the deletion (and move) log.

Currently things outside of file namespace display the snippet, so file ns should display snippet for completeness. As far as I can tell, the only reason files don't is because ImagePage class overrides the Article class, and it was unintentional that the snippet was not included in ImagePage class.

12 years agoAdded missing space :)
Aaron Schulz [Fri, 2 Mar 2012 00:47:30 +0000 (00:47 +0000)]
Added missing space :)

12 years agoAdd some {}
Sam Reed [Fri, 2 Mar 2012 00:15:20 +0000 (00:15 +0000)]
Add some {}

Ping r111605

12 years agoImproves on r112836 by only using borders on the left and right of the changed text...
Trevor Parscal [Fri, 2 Mar 2012 00:07:33 +0000 (00:07 +0000)]
Improves on r112836 by only using borders on the left and right of the changed text, which makes multi-line changes render much nicer.

12 years agoLocalisation update for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 1 Mar 2012 22:21:50 +0000 (22:21 +0000)]
Localisation update for core and extension messages from translatewiki.net

12 years ago(bug 34873) List contributions of existing users that have invalid names
Aaron Schulz [Thu, 1 Mar 2012 22:10:12 +0000 (22:10 +0000)]
(bug 34873) List contributions of existing users that have invalid names

12 years agor112839: missing file change
Aaron Schulz [Thu, 1 Mar 2012 22:01:57 +0000 (22:01 +0000)]
r112839: missing file change

12 years agoError log readability is nice
Aaron Schulz [Thu, 1 Mar 2012 21:59:56 +0000 (21:59 +0000)]
Error log readability is nice

12 years agoActually enforce the FileBackend name requirements instead of just having a comment
Aaron Schulz [Thu, 1 Mar 2012 21:55:22 +0000 (21:55 +0000)]
Actually enforce the FileBackend name requirements instead of just having a comment

12 years ago* Pass number with numParams() to Message object and let that object format the number
Alexandre Emsenhuber [Thu, 1 Mar 2012 21:29:11 +0000 (21:29 +0000)]
* Pass number with numParams() to Message object and let that object format the number
* Added missing escaped() call from my last commit

12 years agoResolves bug #11374 and improves on r94429, r94461, r101147, r105280, r106884, r10712...
Trevor Parscal [Thu, 1 Mar 2012 21:27:52 +0000 (21:27 +0000)]
Resolves bug #11374 and improves on r94429, r94461, r101147, r105280, r106884, r107127, r108975 and r109932 which were reverted by r112750.

12 years agoSquishing resources/ images
Sam Reed [Thu, 1 Mar 2012 20:04:42 +0000 (20:04 +0000)]
Squishing resources/ images

12 years agoTidy up return values of envChecks
Sam Reed [Thu, 1 Mar 2012 19:12:07 +0000 (19:12 +0000)]
Tidy up return values of envChecks

False is used to to signify a failure mode we need to do stuff for, so returning true is ok in other cases, and makes it explicit

12 years agofix typo in r112479
Robin Pepermans [Thu, 1 Mar 2012 17:57:15 +0000 (17:57 +0000)]
fix typo in r112479

12 years ago* (bug 34849) Diff when editing an old version show the comparison with the current...
Alexandre Emsenhuber [Thu, 1 Mar 2012 17:29:12 +0000 (17:29 +0000)]
* (bug 34849) Diff when editing an old version show the comparison with the current text again

12 years agoHrrrmp *grumbles*
Niklas Laxström [Thu, 1 Mar 2012 13:38:49 +0000 (13:38 +0000)]
Hrrrmp *grumbles*

12 years agoCredit for Christian Aistleitner
Antoine Musso [Thu, 1 Mar 2012 13:14:48 +0000 (13:14 +0000)]
Credit for Christian Aistleitner

12 years agoBug 34818 improves regex to capture DB error message
Antoine Musso [Thu, 1 Mar 2012 13:11:25 +0000 (13:11 +0000)]
Bug 34818 improves regex to capture DB error message

Patch by christian at quelltextlich dot at

12 years agoBug 34734 - compressOld.php ignoring -s option
Antoine Musso [Thu, 1 Mar 2012 11:33:38 +0000 (11:33 +0000)]
Bug 34734 - compressOld.php ignoring -s option

This is fixing a regression caused by r90549.
Patch by christian at quelltextlich dot at

12 years agoWhitespace cleanup
Niklas Laxström [Thu, 1 Mar 2012 10:54:18 +0000 (10:54 +0000)]
Whitespace cleanup

12 years agoRestore many missing spaces from r112589
Niklas Laxström [Thu, 1 Mar 2012 10:42:02 +0000 (10:42 +0000)]
Restore many missing spaces from r112589
Also fixed indentation by spaces
And please don't ever use != ''. It's misleading.

12 years ago[mediawiki.action.history.diff.css] Revert 1.19 style changes back to how it was...
Krinkle [Thu, 1 Mar 2012 01:07:18 +0000 (01:07 +0000)]
[mediawiki.action.history.diff.css] Revert 1.19 style changes back to how it was in REL1_18
* After the 1.19wmf1 deployment several people have complained about various aspects of the new diff styling
-- The contrast being too low in the highlighted part (darker background behind bolded text)
-- The colors not being obvious perhaps (orange/blue)
-- Color blind users not seeing the difference very well between the light tones of the orange and blue
-- Trevor mentioned something about W3C Accessibility guidelines

To play it safe for now I think we should revert these changes to the status quo, and take the next few days (or weeks) to carefully check the concerns, perhaps look at other diff tools out there for inspiration (GitHub, Gerrit, LocalWiki, ..).

* Goes back to r91762 (last rev before REL1_18)
-- reverting: r94429, r94461, r101147, r105280, r106884, r107127, r108975, r109932
* Re-opens bug 33335

12 years agoIn populateImageSha1.php:
Aaron Schulz [Wed, 29 Feb 2012 22:45:17 +0000 (22:45 +0000)]
In populateImageSha1.php:
* Added 'force' parameter to run the script on rows with sha1 existing values (and where the file exists)
* Do the all the old versions of files after doing their current versions
* Broke long line and made a few minor cleanups

12 years agoFix comment from r54410, add rationale for using MySQL command line pipe
Tim Starling [Wed, 29 Feb 2012 22:30:23 +0000 (22:30 +0000)]
Fix comment from r54410, add rationale for using MySQL command line pipe

12 years agoAdded unsetVal() method as antithesis to setVal()
Arthur Richards [Wed, 29 Feb 2012 21:56:05 +0000 (21:56 +0000)]
Added unsetVal() method as antithesis to setVal()

12 years agoMore image shrinkage!
Sam Reed [Wed, 29 Feb 2012 21:21:17 +0000 (21:21 +0000)]
More image shrinkage!

12 years agoFix double indenting
Sam Reed [Wed, 29 Feb 2012 20:23:05 +0000 (20:23 +0000)]
Fix double indenting

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