lhc/web/wiklou.git
12 years agoAdd action-* class to body. Bug 4438. Based on patch by Subfader
Leo Koppelkamm [Mon, 11 Jul 2011 10:57:01 +0000 (10:57 +0000)]
Add action-* class to body. Bug 4438. Based on patch by Subfader

12 years agowgAction incorrectly asumes 'view' instead of 'historysubmit' on diff-pages without...
Leo Koppelkamm [Mon, 11 Jul 2011 10:54:05 +0000 (10:54 +0000)]
wgAction incorrectly asumes 'view' instead of 'historysubmit' on diff-pages without a &action parameter. Bug 25800

12 years agouse tab name, not tab index for anchors on Special:Preferences. Bug 29672 . Patch...
Leo Koppelkamm [Mon, 11 Jul 2011 09:54:40 +0000 (09:54 +0000)]
use tab name, not tab index for anchors on Special:Preferences. Bug 29672 . Patch by Jarry1250. Ping r91757

12 years agoCall Linker methods statically and removed the $mSkin member
Alexandre Emsenhuber [Mon, 11 Jul 2011 08:46:37 +0000 (08:46 +0000)]
Call Linker methods statically and removed the $mSkin member

12 years agoOverride UsersPager::getTitle() in ActiveUsersPager
Alexandre Emsenhuber [Mon, 11 Jul 2011 08:27:07 +0000 (08:27 +0000)]
Override UsersPager::getTitle() in ActiveUsersPager

12 years agoUse getPageTitle() to set the page title instead of doing it manually
Alexandre Emsenhuber [Mon, 11 Jul 2011 08:17:26 +0000 (08:17 +0000)]
Use getPageTitle() to set the page title instead of doing it manually

12 years agoRemoved print and render actions from the check:
Alexandre Emsenhuber [Mon, 11 Jul 2011 07:56:22 +0000 (07:56 +0000)]
Removed print and render actions from the check:
* print was removed in 86373
* render does not reach this point since it simply output the content without any part of the skin

12 years agoBetterDirectionality fixes:
Robin Pepermans [Mon, 11 Jul 2011 00:39:41 +0000 (00:39 +0000)]
BetterDirectionality fixes:
* SkinTemplate: also set <div class="mw-content-ltr/rtl"> when action = historysubmit, so a diff displays correctly when you clicked on the "compare selected revisions" button on the history page
* ImagePage: set a dir attribute (according to the site content language) for the user comment in the file history
* FlaggedRevs: use CSS class sitedir-ltr/rtl instead of ambiguous rtl class

12 years agoAmend RELEASE-NOTES-1.19 for r91845
Sam Reed [Sun, 10 Jul 2011 23:26:13 +0000 (23:26 +0000)]
Amend RELEASE-NOTES-1.19 for r91845

12 years agoUpdate jQuery from 1.6.1 to 1.6.2 (maintenance/bugfix release)
Krinkle [Sun, 10 Jul 2011 21:17:28 +0000 (21:17 +0000)]
Update jQuery from 1.6.1 to 1.6.2 (maintenance/bugfix release)
* Release notes: http://blog.jquery.com/2011/06/30/jquery-162-released/
* Source: http://code.jquery.com/jquery-1.6.2.js
* Requested in bug 29773

12 years agoAdd test suite for jquery.byteLimit:
Krinkle [Sun, 10 Jul 2011 21:01:24 +0000 (21:01 +0000)]
Add test suite for jquery.byteLimit:
- Tests to verify that the byteLength does not exceed the byteLimit when inserting more characters
- Tests to verify that it doesn't prevent too early (ie. if limit is 10 and we insert 20 characters, there should be 10 characters in the input field).

This test suite has exposed that the latter is currently broken. jquery.byteLimit is preventing characters to be added as soon as byteLength(currentValue) + 3 is more than the given limit.

(Follows-up r86698, r91148)

12 years agoCentralize QUnit customizations for MediaWiki:
Krinkle [Sun, 10 Jul 2011 19:10:51 +0000 (19:10 +0000)]
Centralize QUnit customizations for MediaWiki:
- Rename 'awesome.js' to 'defineTestCallback.js' (more descriptive)
- Move all runner customizations into 'testrunner.js'
- Move all customization files into /data
- Fix bug in jquery.qunit.completenesstest that sometimes caused the element to be re-created if it was ran again from the console.
- Centralize additional assertion helpers in testrunner.js

12 years ago* Changed dynamic calls to Linker methods into static ones
Alexandre Emsenhuber [Sun, 10 Jul 2011 18:12:11 +0000 (18:12 +0000)]
* Changed dynamic calls to Linker methods into static ones
* Also preferably pass a Language object instead of a Skin one or boolean indicating whether it's for content. No other calls to these methods in core or extensions.

12 years agoLocalization update for he.
Rotem Liss [Sun, 10 Jul 2011 17:48:44 +0000 (17:48 +0000)]
Localization update for he.

12 years agoRemoving @broken comment. Not anymore, they don't as of r91388.
Krinkle [Sun, 10 Jul 2011 15:27:31 +0000 (15:27 +0000)]
Removing @broken comment. Not anymore, they don't as of r91388.
- (Follows-up 91387)

12 years agoEscape sidebar ID's. Bug 18688
Leo Koppelkamm [Sun, 10 Jul 2011 14:56:55 +0000 (14:56 +0000)]
Escape sidebar ID's. Bug 18688

12 years agofix issues after failed renameUser; this script will ask for lots of confirmation...
Ariel Glenn [Sun, 10 Jul 2011 14:20:17 +0000 (14:20 +0000)]
fix issues after failed renameUser; this script will ask for lots of confirmation, better safe than sorry.

12 years agoAdd a font-size to .redirectText in Vector and fix the vertical alignment of the...
Leo Koppelkamm [Sun, 10 Jul 2011 13:19:19 +0000 (13:19 +0000)]
Add a font-size to .redirectText in Vector and fix the vertical alignment of the arrow. Bug 26544

12 years agoDisable feed mode when including the page. I know that there is already r87705 to...
Alexandre Emsenhuber [Sun, 10 Jul 2011 07:33:29 +0000 (07:33 +0000)]
Disable feed mode when including the page. I know that there is already r87705 to address this, but this one is needed for the future.

12 years agoStylised ParserOptions.php
Alexandre Emsenhuber [Sun, 10 Jul 2011 06:45:40 +0000 (06:45 +0000)]
Stylised ParserOptions.php

12 years agoBug 29792: notice undefined index 'other' due to my commit r91803
Robin Pepermans [Sat, 9 Jul 2011 21:13:57 +0000 (21:13 +0000)]
Bug 29792: notice undefined index 'other' due to my commit r91803

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 9 Jul 2011 20:12:43 +0000 (20:12 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-09 19:33:00 UTC)

12 years agoAdded Request::setLang() and RequestContext::setSkin(); the latter will clone the...
Alexandre Emsenhuber [Sat, 9 Jul 2011 19:38:58 +0000 (19:38 +0000)]
Added Request::setLang() and RequestContext::setSkin(); the latter will clone the object and set the context on it.

12 years agoAllow the 'other' parameter for HTMLForm selectorother: it is used in SpecialBlock...
Robin Pepermans [Sat, 9 Jul 2011 19:33:58 +0000 (19:33 +0000)]
Allow the 'other' parameter for HTMLForm selectorother: it is used in SpecialBlock.php::getFormFields() (and maybe in more files)

12 years agoCall doMarkPatrolled() on the RecentChange object instead of calling RecentChange...
Alexandre Emsenhuber [Sat, 9 Jul 2011 18:57:33 +0000 (18:57 +0000)]
Call doMarkPatrolled() on the RecentChange object instead of calling RecentChange::markPatrolled() that will create a second instance

12 years agoFollow-up r91770: only translate when possible
Robin Pepermans [Sat, 9 Jul 2011 12:54:42 +0000 (12:54 +0000)]
Follow-up r91770: only translate when possible

12 years agoFollow-up r88054: register the file if a hook changed the target file.
Bryan Tong Minh [Sat, 9 Jul 2011 10:31:09 +0000 (10:31 +0000)]
Follow-up r88054: register the file if a hook changed the target file.

12 years agoPass the User object to RecentChange::doMarkPatrolled() instead of relying on $wgUser
Alexandre Emsenhuber [Sat, 9 Jul 2011 09:17:35 +0000 (09:17 +0000)]
Pass the User object to RecentChange::doMarkPatrolled() instead of relying on $wgUser

12 years agoFix for r91651: don't escape HTML
Alexandre Emsenhuber [Sat, 9 Jul 2011 09:01:50 +0000 (09:01 +0000)]
Fix for r91651: don't escape HTML

12 years agoFix whitespace, documentation
Sam Reed [Sat, 9 Jul 2011 03:49:25 +0000 (03:49 +0000)]
Fix whitespace, documentation

12 years ago* (bug 28630) Add iwlinks, langlinks, redirect to RefreshLinks::deleteLinksFromNonexi...
Sam Reed [Sat, 9 Jul 2011 03:47:43 +0000 (03:47 +0000)]
* (bug 28630) Add iwlinks, langlinks, redirect to RefreshLinks::deleteLinksFromNonexistent

12 years agoFollowup r86183 and per bug 28628
Sam Reed [Sat, 9 Jul 2011 03:43:22 +0000 (03:43 +0000)]
Followup r86183 and per bug 28628

Might awell make refreshLinks remove dead iwlinks from the table

12 years agoInline CSS is bad in itself and bad for RTL support (why was there even a message...
Robin Pepermans [Sat, 9 Jul 2011 01:03:48 +0000 (01:03 +0000)]
Inline CSS is bad in itself and bad for RTL support (why was there even a message containing CSS?)

12 years agoTranslate the block expiry date
Robin Pepermans [Fri, 8 Jul 2011 23:36:35 +0000 (23:36 +0000)]
Translate the block expiry date
I wonder why this hasn't been done yet...

12 years agoWow major typo, r91763
Chad Horohoe [Fri, 8 Jul 2011 22:15:29 +0000 (22:15 +0000)]
Wow major typo, r91763

12 years agoUse estimateRowCount() in CleanupTable rather than select count(*) which will take...
Chad Horohoe [Fri, 8 Jul 2011 22:08:19 +0000 (22:08 +0000)]
Use estimateRowCount() in CleanupTable rather than select count(*) which will take forevvvveeeerrrrr on tables like image or page. It's only used for estimating progress, so a little estimating is ok :)

12 years agoUndo browser defaults (underline/strike) for the <del> and <ins> DairikiDiff inserts...
Krinkle [Fri, 8 Jul 2011 21:32:30 +0000 (21:32 +0000)]
Undo browser defaults (underline/strike) for the <del> and <ins> DairikiDiff inserts. Fixes bug 29779

12 years agoReverting r91756 per CR and bug 26470
Krinkle [Fri, 8 Jul 2011 21:29:24 +0000 (21:29 +0000)]
Reverting r91756 per CR and bug 26470

12 years agoSelfrevert r91759. Messed up working-copy
Krinkle [Fri, 8 Jul 2011 21:28:54 +0000 (21:28 +0000)]
Selfrevert r91759. Messed up working-copy

12 years agoReverting r91756 per CR and bug 26470
Krinkle [Fri, 8 Jul 2011 21:27:44 +0000 (21:27 +0000)]
Reverting r91756 per CR and bug 26470

12 years agoHTMLForm: Add option to output a title for a fieldset & activate it for Special:Pref...
Leo Koppelkamm [Fri, 8 Jul 2011 21:12:10 +0000 (21:12 +0000)]
HTMLForm: Add option to output a title for a fieldset & activate it for Special:Pref. Preliminary work for Bug 29672

12 years agoBug 26470 : Add checkered background image for transparent images on hover
Leo Koppelkamm [Fri, 8 Jul 2011 20:34:08 +0000 (20:34 +0000)]
Bug 26470 : Add checkered background image for transparent images on hover

12 years agoredoing r91673 . Second step: Actually moving the files
Leo Koppelkamm [Fri, 8 Jul 2011 20:17:46 +0000 (20:17 +0000)]
redoing r91673 . Second step: Actually moving the files

12 years agor86603 : Updatin last call to mediawiki.legacy.edit and removing the module
Leo Koppelkamm [Fri, 8 Jul 2011 19:01:13 +0000 (19:01 +0000)]
r86603 : Updatin last call to mediawiki.legacy.edit and removing the module

12 years agoFix for r78786: make Special:Wantedpages includable again
Alexandre Emsenhuber [Fri, 8 Jul 2011 18:20:09 +0000 (18:20 +0000)]
Fix for r78786: make Special:Wantedpages includable again

12 years agoRemoved some error suppression operators
Alexandre Emsenhuber [Fri, 8 Jul 2011 18:17:02 +0000 (18:17 +0000)]
Removed some error suppression operators

12 years agoFixes Bug #28838 — remove CSS references to div.editsection which grep
Mark A. Hershberger [Fri, 8 Jul 2011 18:08:30 +0000 (18:08 +0000)]
Fixes Bug #28838 — remove CSS references to div.editsection which grep
confirms isn't currently in use.

12 years agoMoving skins/common/diff.css to mediawiki.action.history.diff.css and updating some...
Leo Koppelkamm [Fri, 8 Jul 2011 17:59:42 +0000 (17:59 +0000)]
Moving skins/common/diff.css to mediawiki.action.history.diff.css and updating some old comments in the process. Also moved one vendor-prefixed attribute in fron of the standard one. Extension follow in a second

12 years agoReverting r91642 per CR and pending review need-patch/patch in bug 29755
Krinkle [Fri, 8 Jul 2011 17:45:26 +0000 (17:45 +0000)]
Reverting r91642 per CR and pending review need-patch/patch in bug 29755

12 years agor91734: Do the same for search.css and remove module from resources.php
Leo Koppelkamm [Fri, 8 Jul 2011 17:20:56 +0000 (17:20 +0000)]
r91734: Do the same for search.css and remove module from resources.php

12 years agoMigrate skins/common/search.js functionality to mediawiki.special.search.js. Make...
Leo Koppelkamm [Fri, 8 Jul 2011 17:07:11 +0000 (17:07 +0000)]
Migrate skins/common/search.js functionality to mediawiki.special.search.js. Make JS unobtrusive.

12 years agoCreate a new RequestContext to use its OutputPage and Skin members instead of messing...
Alexandre Emsenhuber [Fri, 8 Jul 2011 16:18:31 +0000 (16:18 +0000)]
Create a new RequestContext to use its OutputPage and Skin members instead of messing with global ones

12 years agodemon is right, Mac is much more common nowadays. r91646
Leo Koppelkamm [Fri, 8 Jul 2011 15:19:44 +0000 (15:19 +0000)]
demon is right, Mac is much more common nowadays. r91646

12 years agoRewrite mwsuggest.js using j.ui.autocomplete. This gets rid of a lot of the little...
Leo Koppelkamm [Fri, 8 Jul 2011 14:59:20 +0000 (14:59 +0000)]
Rewrite mwsuggest.js using j.ui.autocomplete. This gets rid of a lot of the little kinks of the previously implemenation: The suggestion list now contains regular anchors which can be openened in new indows or separate tabs. The carret doesn't jump around anymore when using the arrow keys to select an item. This should make it much easier to eventually merge Vectors simple search & mwsuggest.

12 years agoRevert r91263 (fixing $wgScriptPath for cli installer). Completely breaks the web...
Chad Horohoe [Fri, 8 Jul 2011 14:25:01 +0000 (14:25 +0000)]
Revert r91263 (fixing $wgScriptPath for cli installer). Completely breaks the web installer for two important reasons:
* $wgScriptPath always has a default value of '/wiki', so the getVar() check will always be true and skip the environment check
* Also began returning true in the SCRIPT_NAME which would mean $wgScriptPath never got set

Breakage spotted by LewisCawte on IRC, thanks!

12 years agoUpdate j.ui.autocomplete which partially broke due to jQuery update in r89866
Leo Koppelkamm [Fri, 8 Jul 2011 13:50:11 +0000 (13:50 +0000)]
Update j.ui.autocomplete which partially broke due to jQuery update in r89866

12 years agoRedo r91721: Backport jQuery UI CSS fix for weird Webkit reflow bug. See https:/...
Leo Koppelkamm [Fri, 8 Jul 2011 13:32:06 +0000 (13:32 +0000)]
Redo r91721: Backport jQuery UI CSS fix for weird Webkit reflow bug. See https://github.com/jquery/jquery-ui/commit/a090faa833cf5b40105bb4aa74bca7ac39366fe9/

12 years agoRevert botched commit r91721
Leo Koppelkamm [Fri, 8 Jul 2011 13:27:40 +0000 (13:27 +0000)]
Revert botched commit r91721

12 years agoBackport jQuery UI CSS fix for weird Webkit reflow bug. See https://github.com/jquery...
Leo Koppelkamm [Fri, 8 Jul 2011 13:24:05 +0000 (13:24 +0000)]
Backport jQuery UI CSS fix for weird Webkit reflow bug. See https://github.com/jquery/jquery-ui/commit/a090faa833cf5b40105bb4aa74bca7ac39366fe9/

12 years ago* DatabaseOracle.php binds variables, so using $val = 'NULL' breaks certain maint...
Jure Kajzer [Fri, 8 Jul 2011 12:28:59 +0000 (12:28 +0000)]
* DatabaseOracle.php binds variables, so using $val = 'NULL' breaks certain maint. scripts

12 years agoFollow-up r91657: missed this one
Alexandre Emsenhuber [Fri, 8 Jul 2011 07:02:23 +0000 (07:02 +0000)]
Follow-up r91657: missed this one

12 years agorevert r91673 : lost of history
Antoine Musso [Fri, 8 Jul 2011 06:52:05 +0000 (06:52 +0000)]
revert r91673 : lost of history

12 years agoFix r91685: add space at the right place.
Robin Pepermans [Thu, 7 Jul 2011 21:07:51 +0000 (21:07 +0000)]
Fix r91685: add space at the right place.
(Also removing unused variable in protectedtitles.)

12 years agoBug #29752: add back a space that SPQRobin missed.
Mark A. Hershberger [Thu, 7 Jul 2011 20:58:04 +0000 (20:58 +0000)]
Bug #29752: add back a space that SPQRobin missed.

12 years ago* Fixed comment
Alexandre Emsenhuber [Thu, 7 Jul 2011 20:17:55 +0000 (20:17 +0000)]
* Fixed comment
* Wrap arround RequestContext::msg() instead of doing that all that stuff once more

12 years agoMoving cologneblue.css and nostalgia.css into their own folder
Leo Koppelkamm [Thu, 7 Jul 2011 19:59:06 +0000 (19:59 +0000)]
Moving cologneblue.css and nostalgia.css into their own folder

12 years agor74966: Deleting unused rtl.css
Leo Koppelkamm [Thu, 7 Jul 2011 19:47:16 +0000 (19:47 +0000)]
r74966: Deleting unused rtl.css

12 years agoFixes Bug#17866
Mark A. Hershberger [Thu, 7 Jul 2011 19:11:25 +0000 (19:11 +0000)]
Fixes Bug#17866

Minimal check that we have more than an empty string before sending and email. NikeRabbit asked me about LQT sending email to users w/o email addresses and this looked like one good place to add a check.

12 years ago(bug 29497) To support protocol-relative URLs in external links, add '//' to $wgUrlPr...
Roan Kattouw [Thu, 7 Jul 2011 18:26:24 +0000 (18:26 +0000)]
(bug 29497) To support protocol-relative URLs in external links, add '//' to $wgUrlProtocols and remove a useless \b in the bracketed external link regex in the parser that prevented the former from working outright. With this change, things like [//example.com/wiki/Foo Bar] are now supported, and [[{fullurl:Foo|action=edit}} Bar] no longer breaks if $wgServer is set to '//example.com' but produces a protocol-relative link instead. Protocol-relative URLs in free text are not picked up and turned into [1] links like URLs with protcols are; this is probably due to another \b somewhere, but I think this is a good thing.

12 years agoSet envelope sender to the same as the From: address when PEAR mail is used. This...
Mark A. Hershberger [Thu, 7 Jul 2011 18:03:46 +0000 (18:03 +0000)]
Set envelope sender to the same as the From: address when PEAR mail is used.  This is so that mail “bounces” to the expected place.

Note that this only works when $wgSMTP is set and (as a result) the PEAR mailer is used.

When $wgSMTP is not set, the envelope sender is set using $wgAdditionalMailParams set to something like “-f from@example.com”.  Someone should create some Envelope sender sanity in how the envelope sender is set.

Suggestion: if $wgAdditionalMailParams is not set, then use $wgEmergencyContact to create “-f $wgEmergencyContact” for php mailer and to set the Return-Path header for PEAR mailer.  I used “From:” for Return-Path here because it seemed most sensible.

See also: http://pear.php.net/bugs/bug.php?id=5017

12 years agoRemoving calls to deprecated functionality in favor of the new versions. Old version...
Krinkle [Thu, 7 Jul 2011 17:52:55 +0000 (17:52 +0000)]
Removing calls to deprecated functionality in favor of the new versions. Old version worked fine but shouldn't be used.

Follows-up:
* r75275: Introduced the updateTooltipAccessKeys function in the new library but didn't call it on document ready and left the deprecated one in the onloadhook-run in wikibits.js untouched
* r75287: Introduced jquery.checkboxShiftClick and called on-load but left the load call for the legacy version untouched. Depending on the load order at any given time it may not have been used.

Also reordering the if-else case in mw.util.updateTooltipAccessKeys to allow a call without arguments ("undefined instanceof Foo" throws exception)

12 years agow/s fixup before patch
Mark A. Hershberger [Thu, 7 Jul 2011 17:43:31 +0000 (17:43 +0000)]
w/s fixup before patch

12 years ago* Don't use isset() to check only for null
Alexandre Emsenhuber [Thu, 7 Jul 2011 17:42:19 +0000 (17:42 +0000)]
* Don't use isset() to check only for null
* Also pass the Title object in RequestContext::msg()

12 years agoOverride IndexPager::getTitle() in ImageListPager, this is the only class subclassing...
Alexandre Emsenhuber [Thu, 7 Jul 2011 17:34:15 +0000 (17:34 +0000)]
Override IndexPager::getTitle() in ImageListPager, this is the only class subclassing TablePager that don't do that in core

12 years agoRemoved usage of error suppression operator
Alexandre Emsenhuber [Thu, 7 Jul 2011 17:25:35 +0000 (17:25 +0000)]
Removed usage of error suppression operator

12 years agoPartial (?) fix for bug 29753 -- wrong Firefox version comparison for non-Mac Firefox...
Brion Vibber [Thu, 7 Jul 2011 17:17:06 +0000 (17:17 +0000)]
Partial (?) fix for bug 29753 -- wrong Firefox version comparison for non-Mac Firefox 2+ accesskey tooltip. However, this code IS NOT YET USED which is very suspicious. An earlier version of this code is wikibits.js is still being used for some reason, which indicates a maintenance problem.

12 years ago(bug 27410) The tag filter on a history page should be within a <label> element....
Chad Horohoe [Thu, 7 Jul 2011 16:59:25 +0000 (16:59 +0000)]
(bug 27410) The tag filter on a history page should be within a <label> element. Patch by The Evil IP Address.

Also remove inclusion protection for the 800th time: if a file only has classes, you don't need to do this :)

12 years agoReduce some duplication
Chad Horohoe [Thu, 7 Jul 2011 16:52:47 +0000 (16:52 +0000)]
Reduce some duplication

12 years ago(Update for r91646) Use mw-content-ltr/rtl so bullet list shows properly where user...
Robin Pepermans [Thu, 7 Jul 2011 16:15:27 +0000 (16:15 +0000)]
(Update for r91646) Use mw-content-ltr/rtl so bullet list shows properly where user direction != site direction. Also add lang & dir attribute, and fix typo in shared.css.

12 years agoRephrasing msg clearyourcache per Bug 27550 : Adding Chrome, moving up IE, making...
Leo Koppelkamm [Thu, 7 Jul 2011 15:59:42 +0000 (15:59 +0000)]
Rephrasing msg clearyourcache per Bug 27550 : Adding Chrome, moving up IE, making it a bulltetd list. Thanks Amir E. Aharoni

12 years agoBug #29755: Apply patch from Vitaliy Filippov so that MW's HTTP client
Mark A. Hershberger [Thu, 7 Jul 2011 14:56:18 +0000 (14:56 +0000)]
Bug #29755: Apply patch from Vitaliy Filippov so that MW's HTTP client
respects no_proxy env setting

12 years agoPartial revert of r90833, capitalisation change was not intented
Niklas Laxström [Thu, 7 Jul 2011 08:55:42 +0000 (08:55 +0000)]
Partial revert of r90833, capitalisation change was not intented

12 years agoReplace bullet-icon.png with an 8-bit version (became 24-bit due to r78011 which...
Krinkle [Wed, 6 Jul 2011 23:02:29 +0000 (23:02 +0000)]
Replace bullet-icon.png with an 8-bit version (became 24-bit due to r78011 which removed the color palette)
* Fixes (bug 19514) Unordered list list-style-image should be IE6-compatible (8-bit)

12 years agoFollowup r91609, helps to actually remove the @
Chad Horohoe [Wed, 6 Jul 2011 22:07:05 +0000 (22:07 +0000)]
Followup r91609, helps to actually remove the @

12 years agoBunch of error suppression operator fixes (bug
Chad Horohoe [Wed, 6 Jul 2011 21:57:44 +0000 (21:57 +0000)]
Bunch of error suppression operator fixes (bug

12 years ago* (bug 28626) Validate JavaScript files and pages loaded via ResourceLoader before...
Brion Vibber [Wed, 6 Jul 2011 21:48:09 +0000 (21:48 +0000)]
* (bug 28626) Validate JavaScript files and pages loaded via ResourceLoader before minification, protecting separate modules from interference

This is possibly not perfect but seems to serve for a start; follows up on r91591 that adds JSMin+ to use it in some unit tests. May want to adjust some related bits.

- $wgResourceLoaderValidateJs on by default (can be disabled)
- when loading a JS file through ResourceLoaderFileModule or ResourceLoaderWikiModule, parse it using JSMinPlus's JSParser class. If the parser throws an exception, the JS code of the offending file will be replaced by a JS exception throw listing the file or page name, line number (in original form), and description of the error from the parser.
- parsing results are cached based on md5 of content to avoid re-parsing identical text
- for JS pages loaded via direct load.php request, the parse error is thrown and visible in the JS console/error log

Issues:
- the primary use case for this is when a single load.php request implements multiple modules via mw.loader.implement() -- the loader catches the exception and skips on to the next module (good) but doesn't re-throw the exception for the JS console. It does log to console if present, but it'll only show up as a regular debug message, not an error. This can suppress visibility of errors in a module that's loaded together with other modules (such as a gadget).
- have not done performance testing on the JSParser
- have not done thorough unit testing with the JSParser

12 years agoFollowup r91602, forgot svn add
Chad Horohoe [Wed, 6 Jul 2011 21:05:29 +0000 (21:05 +0000)]
Followup r91602, forgot svn add

12 years agoClean up the mess that is wfDie (resolves r85918). wfDie() doesn't exist anymore...
Chad Horohoe [Wed, 6 Jul 2011 21:01:12 +0000 (21:01 +0000)]
Clean up the mess that is wfDie (resolves r85918). wfDie() doesn't exist anymore, so don't use it.

The only two usages left since r91590 are php version checks for index/load/api.php, and $wgAPIEnabled check in api.php. Consolidate all of the "bailing for invalid version" into PHPVersionError.php. Leaving $wgAPIEnabled as the only user was silly, so just echo and die like wfDie() would've done

12 years agoCorrect the documentation of srprop.
Derk-Jan Hartman [Wed, 6 Jul 2011 20:47:26 +0000 (20:47 +0000)]
Correct the documentation of srprop.

12 years agoActually return the title of the section, instead of the pagetitle when requesting...
Derk-Jan Hartman [Wed, 6 Jul 2011 20:41:12 +0000 (20:41 +0000)]
Actually return the title of the section, instead of the pagetitle when requesting srprop=sectiontitle from API search.

Fixes bug 29746

12 years ago* (bug 29745) Fatal error in API search
Sam Reed [Wed, 6 Jul 2011 20:18:22 +0000 (20:18 +0000)]
* (bug 29745) Fatal error in API search

Properly name objects being used

12 years agoRemove 'upload-wasdeleted' message. Its no longer used.
Brian Wolff [Wed, 6 Jul 2011 20:07:10 +0000 (20:07 +0000)]
Remove 'upload-wasdeleted' message. Its no longer used.

Original feature was (accidently?) removed/broken in r57868 and then re-created
using the message 'upload-recreate-warning' in r65339.

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Wed, 6 Jul 2011 20:03:01 +0000 (20:03 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-06 19:40:00 UTC)

12 years agoFollowup r83885: add JSMin+ 1.3 to use its parser to verify output of JavaScriptMinif...
Brion Vibber [Wed, 6 Jul 2011 20:02:10 +0000 (20:02 +0000)]
Followup r83885: add JSMin+ 1.3 to use its parser to verify output of JavaScriptMinifierTest unit test cases. Had to change some of the test cases because they were not valid JavaScript programs -- one of the quoting tests was incorrectly quoted in the PHP sources, and several tests around return, continue, and break keywords failed due to not using them in the contexts that they require.

http://crisp.tweakblogs.net/blog/1856/jsmin+-version-13.html
JSMin+ under MPL 1.1/ GPL 2.0 / LGPL 2.1 license.

12 years agoRemove last wfDie()s from maintenance
Chad Horohoe [Wed, 6 Jul 2011 19:57:52 +0000 (19:57 +0000)]
Remove last wfDie()s from maintenance

12 years agoPartial revert of r91106: followup to r91127.
Brion Vibber [Wed, 6 Jul 2011 18:47:35 +0000 (18:47 +0000)]
Partial revert of r91106: followup to r91127.

Suppressing all warning output from unserialize() in ExifBitmap::formatMetadata will hide actual errors; we're now checking explicitly for the bad-metadata and no-metadata markers so the case this was added for should not happen.

12 years agoMove wfShowingResultsNum() back into SpecialSearch where it belongs. No need for...
Chad Horohoe [Wed, 6 Jul 2011 18:13:06 +0000 (18:13 +0000)]
Move wfShowingResultsNum() back into SpecialSearch where it belongs. No need for a global function for something thats only used once in core or extensions

12 years agorefixing bug 27338 with all parser test fixes, reverts r91557
Ryan Kaldari [Wed, 6 Jul 2011 18:07:31 +0000 (18:07 +0000)]
refixing bug 27338 with all parser test fixes, reverts r91557

12 years agoCall parent::setUp() and allow it to do lang setup stuff
Chad Horohoe [Wed, 6 Jul 2011 17:58:29 +0000 (17:58 +0000)]
Call parent::setUp() and allow it to do lang setup stuff

12 years agoDeclared some member fields
Aaron Schulz [Wed, 6 Jul 2011 17:55:44 +0000 (17:55 +0000)]
Declared some member fields