lhc/web/wiklou.git
12 years ago(bug 28545) When using the uca-default collation, sortkey's starting with a
Brian Wolff [Mon, 12 Sep 2011 02:10:11 +0000 (02:10 +0000)]
(bug 28545) When using the uca-default collation, sortkey's starting with a
space (U+20) will now sort under an invisible header like in 1.16 rather than a U+6DE (ARABIC START OF RUB EL HIZB)

12 years agoSpecialSearch: add two hooks, one to modify the power search box, one to change the...
Robin Pepermans [Mon, 12 Sep 2011 01:39:11 +0000 (01:39 +0000)]
SpecialSearch: add two hooks, one to modify the power search box, one to change the message pointing to the page title searched for

WikimediaIncubator:
* use these hooks and SpecialSearchSetupEngine to improve search usability
* use a different message for the language code in preferences, per suggestion of Amir

12 years ago* r96737: set OutputPage->addWikiText() as an interface message by default
Robin Pepermans [Sun, 11 Sep 2011 21:07:17 +0000 (21:07 +0000)]
* r96737: set OutputPage->addWikiText() as an interface message by default
* r96760: use 'noflip' for $flip in OutputPage->addInlineStyle() so it's always a string
* Add some parameter documentation

12 years agoPass the context to the HTMLForm object
Alexandre Emsenhuber [Sun, 11 Sep 2011 20:44:08 +0000 (20:44 +0000)]
Pass the context to the HTMLForm object

12 years ago(follow-up r96765). Appearently my release notes for that revision were horrible ;)
Brian Wolff [Sun, 11 Sep 2011 20:37:22 +0000 (20:37 +0000)]
(follow-up r96765). Appearently my release notes for that revision were horrible ;)

12 years ago(follow-up r96767) Make {{DEFAULTSORT:..|noerror}} and noreplace i18n-izable.
Brian Wolff [Sun, 11 Sep 2011 20:32:58 +0000 (20:32 +0000)]
(follow-up r96767) Make {{DEFAULTSORT:..|noerror}} and noreplace i18n-izable.

Hopefully i did this right. I've never added a magic word before...

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Sun, 11 Sep 2011 20:12:21 +0000 (20:12 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agoPer r96723: register new message key to maintenance script
Raimond Spekking [Sun, 11 Sep 2011 19:46:33 +0000 (19:46 +0000)]
Per r96723: register new message key to maintenance script

12 years ago(Bug 30364) LanguageConverter should depend on the page content language instead...
Robin Pepermans [Sun, 11 Sep 2011 17:56:27 +0000 (17:56 +0000)]
(Bug 30364) LanguageConverter should depend on the page content language instead of the wiki content language. Remains largely the same, except for extensions using the PageContentLanguage hook like Translate and WikimediaIncubator.
* Made variant tabs hidden on special pages (has no or sometimes wrong/inconsistent effect there; plus it's mainly in the user language)
* Made redirects be in content language again (remove from Title->getPageLanguage())

12 years agofix r96712 copy paste error :(
Robin Pepermans [Sun, 11 Sep 2011 14:52:29 +0000 (14:52 +0000)]
fix r96712 copy paste error :(

12 years agoAdress fixme on r92054: Style print
Leo Koppelkamm [Sun, 11 Sep 2011 09:16:14 +0000 (09:16 +0000)]
Adress fixme on r92054: Style print

12 years ago* Use local context instead of global variables
Alexandre Emsenhuber [Sun, 11 Sep 2011 08:43:30 +0000 (08:43 +0000)]
* Use local context instead of global variables
* Call Linker methods statically
* Added missing call to outputHeader()

12 years ago* Follow-up r96420: don't show e-mail links to anon users
Alexandre Emsenhuber [Sun, 11 Sep 2011 08:14:46 +0000 (08:14 +0000)]
* Follow-up r96420: don't show e-mail links to anon users
* Fix for r24612 (!) spotted while fixing the above: parenthesis arround the bitwise check are needed since ! operator has higher precedence than &

12 years ago(bug 16755) Add syntax to DEFAULTSORT - {{DEFAULTSORT:Foo|noerror}} and {{DEFAULTSORT...
Brian Wolff [Sun, 11 Sep 2011 02:20:20 +0000 (02:20 +0000)]
(bug 16755) Add syntax to DEFAULTSORT - {{DEFAULTSORT:Foo|noerror}} and {{DEFAULTSORT:Bar|noreplace}}
to in both cases prevent the "A sortkey already was specified earlier in the page, yadda yadda" message and in the second case, also do not replace the sortkey
if one was already specified.

12 years ago(bug 30722) Add an identity collation that sorts things based on what the unicode...
Brian Wolff [Sun, 11 Sep 2011 01:13:08 +0000 (01:13 +0000)]
(bug 30722) Add an identity collation that sorts things based on what the unicode code point is (aka pre-1.17 behaviour).

I'm tagging this 1.18 because the original bug was for iswiktionary wanting it, so it'd be nice to get it in 1.18.

12 years agoFix standard skin, which doesn't style ul/ol. The margin added in shared.css (see...
Robin Pepermans [Sun, 11 Sep 2011 00:57:32 +0000 (00:57 +0000)]
Fix standard skin, which doesn't style ul/ol. The margin added in shared.css (see r91518 and previous) made standard have both margin and default browser css. This resets that.

12 years agoDo r93269 in a better way (also fixes some rare cases). Use 'margin/padding' instead...
Robin Pepermans [Sun, 11 Sep 2011 00:13:18 +0000 (00:13 +0000)]
Do r93269 in a better way (also fixes some rare cases). Use 'margin/padding' instead of 'margin-left/padding-left' so it doesn't have to rely on the direction.

12 years ago* Per Aaron on r96261, use string 'flip' instead of boolean
Robin Pepermans [Sat, 10 Sep 2011 23:51:08 +0000 (23:51 +0000)]
* Per Aaron on r96261, use string 'flip' instead of boolean
* Apparently @noflip should only be set once, otherwise it behaves differently

12 years agomediawiki.Title.test: Add test for space collapsing
Krinkle [Sat, 10 Sep 2011 22:33:11 +0000 (22:33 +0000)]
mediawiki.Title.test: Add test for space collapsing
* When I first passed "Foobar___.js" to mw.Title and saw that it was stripping away (some) spaces, I thought it was a bug (since extension is part of the title and should be kept as is). Anyway, as it turns out it's not stripping them away because they are between 'title' and 'extension', it's a general rule that there should not two or more spaces next to each other in a title. Adding test to assert and confirm this behavior.

12 years agomediawiki.log.js: Add support for variadic arguments (just like the native console...
Krinkle [Sat, 10 Sep 2011 22:29:57 +0000 (22:29 +0000)]
mediawiki.log.js: Add support for variadic arguments (just like the native console does)
* Use unshift() when calling window.console.log (that way logging an object will not result in "prefix> [object Object]" but in "prefix> { key: .., .. }" (which most consoles do, similar thing for logging elements for which most console API implementations offer special features)
* Use string concatenation when using our own fabricated log. Did not use unshift for both, because in the latter that would show a bad comma ("prefix:>, foo, bar"). The native API does not show a comma between two logged variables, they're just shown next to each other.

12 years agomediawiki.log.js: Refactor
Krinkle [Sat, 10 Sep 2011 22:18:39 +0000 (22:18 +0000)]
mediawiki.log.js: Refactor
* Add @author info etc. to the file header
* Merge var statements
* remove single quotes around object keys where not needed
* Changing bottom padding on <body> to be relatively added instead of absolutely (body might have a bottom padding already!)
* Add return statement after reaching out to window.console. No need for the rest of the function to be executed in that case. outdenting the rest after the new return statement back one tab (thus removing the else-case)

12 years agoSimplify some contexts
Sam Reed [Sat, 10 Sep 2011 22:09:31 +0000 (22:09 +0000)]
Simplify some contexts

12 years agoCall Linker::titleAttrib() statically
Alexandre Emsenhuber [Sat, 10 Sep 2011 21:14:28 +0000 (21:14 +0000)]
Call Linker::titleAttrib() statically

12 years agoCorrectly parse interface messages as such, so it doesn't get converted according...
Robin Pepermans [Sat, 10 Sep 2011 20:05:13 +0000 (20:05 +0000)]
Correctly parse interface messages as such, so it doesn't get converted according to the content language (like r96257/r94395/r94279)

Also whitespace fix in MessagesEn for r96723

12 years agoFix comment
Alexandre Emsenhuber [Sat, 10 Sep 2011 19:51:10 +0000 (19:51 +0000)]
Fix comment

12 years agoRevert r96732
Sam Reed [Sat, 10 Sep 2011 18:51:56 +0000 (18:51 +0000)]
Revert r96732

12 years agoInvalidate user cache upon password change
Sam Reed [Sat, 10 Sep 2011 18:46:13 +0000 (18:46 +0000)]
Invalidate user cache upon password change

Should help (maybe fix?) Bug 30850 - maintenance/changePassword.php does not purge (APC) cache

12 years agoAdd @since to the Deferred stuff, ping r96716
Chad Horohoe [Sat, 10 Sep 2011 17:16:41 +0000 (17:16 +0000)]
Add @since to the Deferred stuff, ping r96716

12 years ago* Change the message 'yourvariant' to a more descriptive one (might be a bit too...
Robin Pepermans [Sat, 10 Sep 2011 17:12:35 +0000 (17:12 +0000)]
* Change the message 'yourvariant' to a more descriptive one (might be a bit too long however), and remove it as an optional message. Also added a help message to explain it.
* Make getVariantname fallback to the language name, and use that in Preferences. Shouldn't change the names in practice, but is a more logical implementation imho.
* (Fix a typo in Language.php)

12 years agoLocalization update for he.
Rotem Liss [Sat, 10 Sep 2011 13:04:07 +0000 (13:04 +0000)]
Localization update for he.

12 years ago* Use local context instead of global variables
Alexandre Emsenhuber [Sat, 10 Sep 2011 11:15:15 +0000 (11:15 +0000)]
* Use local context instead of global variables
* Call Linker methods statically

12 years agoMoved global define into class constant, replaced a bunch of $fname with __METHOD__.
Chad Horohoe [Sat, 10 Sep 2011 07:17:10 +0000 (07:17 +0000)]
Moved global define into class constant, replaced a bunch of $fname with __METHOD__.

12 years agoAdd some other ServicesJson tests.
Daniel Friesen [Sat, 10 Sep 2011 07:15:51 +0000 (07:15 +0000)]
Add some other ServicesJson tests.

12 years agoRefactor deferrable updates into classes & interfaces, also add helper method for...
Chad Horohoe [Sat, 10 Sep 2011 06:50:30 +0000 (06:50 +0000)]
Refactor deferrable updates into classes & interfaces, also add helper method for the most common use case:

$wgDeferredUpdateList[] = new HTMLCacheUpdate( $title, "sometable" );

I kept b/c with $wgDeferredUpdateList for now, but seeing as only 3 exts in svn use it (FileSearch, FlaggedRevs and WikiScripts), I'd like to deprecate it pretty soon :)

12 years agoAdd a comment about something I noticed while spelunking the code
Chad Horohoe [Sat, 10 Sep 2011 06:47:37 +0000 (06:47 +0000)]
Add a comment about something I noticed while spelunking the code

12 years agoAdd some basic tests to compare output of native json support and the Services_Json...
Chad Horohoe [Sat, 10 Sep 2011 05:24:46 +0000 (05:24 +0000)]
Add some basic tests to compare output of native json support and the Services_Json implementation, as I promised on wikitech-l. Could use plenty more test cases, but that should be trivial since I did it properly with data providers :)

12 years agoConversion script between Tifinagh and Latin for the Tachelhit language
Robin Pepermans [Sat, 10 Sep 2011 04:09:20 +0000 (04:09 +0000)]
Conversion script between Tifinagh and Latin for the Tachelhit language
Preferences: made getLanguageNames include those that don't have a Messages file

12 years agoRenamed Rev_List/Rev_Item classes to RevisionListBase/RevisionItemBase
Aaron Schulz [Fri, 9 Sep 2011 21:25:21 +0000 (21:25 +0000)]
Renamed Rev_List/Rev_Item classes to RevisionListBase/RevisionItemBase

12 years agoLocalisation update for core and extension messages from translatewiki.net
Raimond Spekking [Fri, 9 Sep 2011 20:33:58 +0000 (20:33 +0000)]
Localisation update for core and extension messages from translatewiki.net

12 years ago(bug 30640; follow-up r92279) Rotating images was making skewed images
Brian Wolff [Fri, 9 Sep 2011 20:13:09 +0000 (20:13 +0000)]
(bug 30640; follow-up r92279) Rotating images was making skewed images

This is Bryan's patch from bug 30640 with a couple minor related changes, plus some unit tests.
This also addresses an issue with preventing too-big images from being scaled from r92279.

I also noticed that image magick's rotation support is broken in 6.3.7 (the version I had installed locally. I've since upgraded) I'm not sure if we should be doing something about that...

I did test this without both image magick, and gd (although only very briefly with gd) both seemed to work well. I didn't test any other image scalars.

12 years agoFollowup r87986: qunit test case for bug 30825
Brion Vibber [Fri, 9 Sep 2011 18:43:37 +0000 (18:43 +0000)]
Followup r87986: qunit test case for bug 30825

jQuery's $.append() and friends go through some funky code paths which sometimes manually load <script> node contents via AJAX and eval them. That failed entirely in IE 7 if given a protocol-relative link ($wgServer = '//commons.wikimedia.org').
The fix in r87986 bypasses that by using DOM append directly on a script node, and thus fixes bug 30825 without even knowing it. :)

This test serves as a regression test.

12 years agoKill off $wg{Request,User,Lang,Output} usage within skins/ and redundant $this->skin...
Daniel Friesen [Fri, 9 Sep 2011 15:41:30 +0000 (15:41 +0000)]
Kill off $wg{Request,User,Lang,Output} usage within skins/ and redundant $this->skin local vars.

12 years agoFollowup r96667, I forgot the stylesheet change.
Daniel Friesen [Fri, 9 Sep 2011 15:40:19 +0000 (15:40 +0000)]
Followup r96667, I forgot the stylesheet change.

12 years agoAdd a class to the normal and hidden categories blocks. If non-positioning styles...
Daniel Friesen [Fri, 9 Sep 2011 15:37:20 +0000 (15:37 +0000)]
Add a class to the normal and hidden categories blocks. If non-positioning styles are going to be applied then they should be applied on classes, not ids. It's bad enough that we include a catlinks id in catlinks and make the process to attempt to have two catlinks blocks rediculous.

12 years agoTweak 'tog-oldsig' as suggested by Gustrónico.
Siebrand Mazeland [Fri, 9 Sep 2011 14:43:56 +0000 (14:43 +0000)]
Tweak 'tog-oldsig' as suggested by Gustrónico.

12 years agoReplace localisation cache check removed in r91432 with another check
Robin Pepermans [Fri, 9 Sep 2011 12:49:40 +0000 (12:49 +0000)]
Replace localisation cache check removed in r91432 with another check

12 years agoCommit live hack: pass XML_PARSE_HUGE (code uses 1 << 19 because the constant isn...
Roan Kattouw [Fri, 9 Sep 2011 11:28:00 +0000 (11:28 +0000)]
Commit live hack: pass XML_PARSE_HUGE (code uses 1 << 19 because the constant isn't available for some reason) into DOMDocument::loadXML() if the first call to loadXML() failed. This prevents newer versions of libxml2 from throwing a warning and messing up when the XML contains structures that are nested more than 256 levels deep. RELEASE-NOTES added to the 1.18 file, tagging this for backporting to 1.18 too.

We at Wikimedia never noticed this issue until we upgraded libxml2 on one of our servers as part of an OS upgrade, but apparently the interwebs knew about this since at least May 2010. Hat tip
 to http://deriksmith.livejournal.com/57617.html , where I found this fix.

12 years ago* Don't list sp:ChangeEmail/sp:ChangePassword at SpecialPages. These were clutter...
Aaron Schulz [Fri, 9 Sep 2011 09:25:33 +0000 (09:25 +0000)]
* Don't list sp:ChangeEmail/sp:ChangePassword at SpecialPages. These were clutter, and useless for anons, as there are links on sp:Preferences for these.
* Added check for checkTemporaryPassword() to sp:ChangeEmail.

12 years agoThis should fix regression reported in r96545
Niklas Laxström [Fri, 9 Sep 2011 08:04:18 +0000 (08:04 +0000)]
This should fix regression reported in r96545
Notice: Undefined offset: 1 in D:\www\MW_trunk\phase3\extensions\FlaggedRevs\dataclasses\FlaggedRevsLog.php on line 156

12 years agogetFilename renamed to getFilenames since it can return a list
Ariel Glenn [Fri, 9 Sep 2011 07:28:11 +0000 (07:28 +0000)]
getFilename renamed to getFilenames since it can return a list

12 years agoFollowup r96543, + is not the correct thing to use here
Niklas Laxström [Fri, 9 Sep 2011 05:17:05 +0000 (05:17 +0000)]
Followup r96543, + is not the correct thing to use here

12 years agoFollow up for r96606. Adding a message for passwordreset-domain.
Ryan Lane [Fri, 9 Sep 2011 05:04:35 +0000 (05:04 +0000)]
Follow up for r96606. Adding a message for passwordreset-domain.

12 years ago* Added a script to reduce disk space on a MySQL parser cache setup such as the one...
Tim Starling [Fri, 9 Sep 2011 03:51:45 +0000 (03:51 +0000)]
* Added a script to reduce disk space on a MySQL parser cache setup such as the one at Wikimedia at the moment, by removing all objects which expire before a given time.
* Fixed unintentional shortcut evaluation in MultiWriteBagOStuff::doWrite(). It would have caused writes to be skipped on the second cache if the first cache failed, now writes should be attempted on all caches.

12 years agoSome of the english translations for our exif-orientation-X messages were wrong ...
Brian Wolff [Fri, 9 Sep 2011 02:13:14 +0000 (02:13 +0000)]
Some of the english translations for our exif-orientation-X messages were wrong (CW instead of CCW, vice versa).

Do these types of changes need release-notes?

12 years agoRemove wgProto from mw.config
Krinkle [Fri, 9 Sep 2011 01:03:27 +0000 (01:03 +0000)]
Remove wgProto from mw.config
* Introduced in r82575 spontaneously, but was never used.
* It was removed from PHP by Tim in r90193, who gracefully kept a work-around in place to still have a protocol available in mw.config.
* Since it was new in JS in 1.18 (which hasn't been released yet), I suggest we take it out right away, especially because the PHP counterpart has been deprecated as well. No release notes needed.

12 years agoResolve fixme on r96249: can't use in static context
Chad Horohoe [Fri, 9 Sep 2011 01:01:30 +0000 (01:01 +0000)]
Resolve fixme on r96249: can't use  in static context

12 years agoShow the "Move associated talk page button" on special:movepage if there are subpages...
Brian Wolff [Fri, 9 Sep 2011 00:40:27 +0000 (00:40 +0000)]
Show the "Move associated talk page button" on special:movepage if there are subpages in the corresponding talk page
that could be affected by it, even if the base page being moved does not have a talk page.

(I just had a discussion with mindrones on irc about how the current behaviour with the talkspace subpages sometimes being moved by "move subpages" button and sometimes not depending on if current page had a talk page (and thus had the move assoc. talk button auto checked) was really confusing to the average user.)

As an aside, Special:Movepage could probably do with some refactoring ;)

12 years agouniform comment style, fix a few space issues, address couple issues from comments...
Ariel Glenn [Thu, 8 Sep 2011 21:06:15 +0000 (21:06 +0000)]
uniform comment style, fix a few space issues, address couple issues from comments on r95272

12 years agoLocalisation updates for core and extension messages from translatewiki.net
Raimond Spekking [Thu, 8 Sep 2011 20:11:29 +0000 (20:11 +0000)]
Localisation updates for core and extension messages from translatewiki.net

12 years agof'up r96606: register new message key to maintenance script
Raimond Spekking [Thu, 8 Sep 2011 20:08:23 +0000 (20:08 +0000)]
f'up r96606: register new message key to maintenance script

12 years agoAdding support for domains in SpecialPasswordReset.php.
Ryan Lane [Thu, 8 Sep 2011 19:54:32 +0000 (19:54 +0000)]
Adding support for domains in SpecialPasswordReset.php.

12 years agoPartial revert of r65898 (bug 27700). Callers should check 'create' and Title will...
Aaron Schulz [Thu, 8 Sep 2011 19:28:03 +0000 (19:28 +0000)]
Partial revert of r65898 (bug 27700). Callers should check 'create' and Title will internally check the proper subpermission depending on the title namespace.

12 years agoFix for r96516: undefined variable $flags
Alexandre Emsenhuber [Thu, 8 Sep 2011 19:11:33 +0000 (19:11 +0000)]
Fix for r96516: undefined variable $flags

12 years agoRemove message key per r96596
Raimond Spekking [Thu, 8 Sep 2011 19:06:43 +0000 (19:06 +0000)]
Remove message key per r96596

12 years agoPer r70966: rm unused msg
Chad Horohoe [Thu, 8 Sep 2011 19:00:00 +0000 (19:00 +0000)]
Per r70966: rm unused msg

12 years ago* Use local context instead of global variables
Alexandre Emsenhuber [Thu, 8 Sep 2011 17:34:24 +0000 (17:34 +0000)]
* Use local context instead of global variables
* Call Linker methods statically
* Fixed call to non-existing method Linker::makeImageLinkObj()

12 years agoSwitch JSON to (un)serialize
Niklas Laxström [Thu, 8 Sep 2011 16:59:19 +0000 (16:59 +0000)]
Switch JSON to (un)serialize

12 years agoStyle the metadata/EXIF table on file descripton pages for printing
Raimond Spekking [Thu, 8 Sep 2011 16:25:18 +0000 (16:25 +0000)]
Style the metadata/EXIF table on file descripton pages for printing

12 years agofollowup r96549: Add the 'display:none' to the existing section instead of opening...
Raimond Spekking [Thu, 8 Sep 2011 16:13:27 +0000 (16:13 +0000)]
followup r96549: Add the 'display:none' to the existing section instead of opening a new one.

12 years ago(bug 30130) Add selectionStart and selectionEnd parameters to encapsulateSelection...
Roan Kattouw [Thu, 8 Sep 2011 16:05:50 +0000 (16:05 +0000)]
(bug 30130) Add selectionStart and selectionEnd parameters to encapsulateSelection in jquery.textSelection. Modified patch by Santosh (removed whitespace and debugging code, added tests).

12 years agoTweaks to LoggedUpdateMaintenance:
Chad Horohoe [Thu, 8 Sep 2011 15:52:00 +0000 (15:52 +0000)]
Tweaks to LoggedUpdateMaintenance:
* Reduce some duplication
* Prefix skipped steps with "..." per updater convention
* Make PopulateLogUsertext, PopulateLogSearch and PopulateParentId use LoggedUpdateMaintenance -- now they will properly log when there was "Nothing to do" and we can skip the clutter on future update runs
* Docs, etc.

12 years agoShow a more useful message when someone tries enabling profileinfo but hasn't created...
Chad Horohoe [Thu, 8 Sep 2011 14:53:07 +0000 (14:53 +0000)]
Show a more useful message when someone tries enabling profileinfo but hasn't created the table yet

12 years agoGut anything from HttpTest that involves making external requests and setting cookies...
Chad Horohoe [Thu, 8 Sep 2011 14:04:36 +0000 (14:04 +0000)]
Gut anything from HttpTest that involves making external requests and setting cookies - the way we do this suite needs to be completely rethought.
Chalk this up as an example of how *not* to write unit tests.
Still have 5 failures :(

12 years agoUse wfParseUrl() instead of parse_url() in MWHttpRequest::__construct(), and check...
Roan Kattouw [Thu, 8 Sep 2011 13:53:18 +0000 (13:53 +0000)]
Use wfParseUrl() instead of parse_url() in MWHttpRequest::__construct(), and check the return value for false

12 years agoAdd tests for r96562. HttpTest still has 5 failing test (which is why it's marked...
Roan Kattouw [Thu, 8 Sep 2011 13:49:48 +0000 (13:49 +0000)]
Add tests for r96562. HttpTest still has 5 failing test (which is why it's marked @broken) and per Chad on IRC most of this suite is pure evil

12 years agoMove URL expansion from Http::request() (where it was put in r93820) to MWHttpRequest...
Roan Kattouw [Thu, 8 Sep 2011 13:48:11 +0000 (13:48 +0000)]
Move URL expansion from Http::request() (where it was put in r93820) to MWHttpRequest::__construct(). That should fix bug 30797 (UploadStash barfs on protocol-relative URLs)

12 years agoImprove r96548: fixed one fatal, restored user tool links and removed a little duplic...
Niklas Laxström [Thu, 8 Sep 2011 10:13:01 +0000 (10:13 +0000)]
Improve r96548: fixed one fatal, restored user tool links and removed a little duplication

12 years agoAdd a CSS class to the metadata/EXIF table row which shows the text 'Show extended...
Raimond Spekking [Thu, 8 Sep 2011 09:16:42 +0000 (09:16 +0000)]
Add a CSS class to the metadata/EXIF table row which shows the text 'Show extended details' and hide this row for printing. Useless because you cannot click on the paper :)

12 years agoUpdate ChangesList and derivatives to use LogFormatter.
Niklas Laxström [Thu, 8 Sep 2011 09:15:59 +0000 (09:15 +0000)]
Update ChangesList and derivatives to use LogFormatter.
This diff is a bit ugly. There is lots of duplication in ChangesList code.
Hopefully it is little better now, when most of the formatting is in LogFormatter.

12 years agoEnabled MoveLogFormatter
Niklas Laxström [Thu, 8 Sep 2011 09:09:38 +0000 (09:09 +0000)]
Enabled MoveLogFormatter
-> This brings better i18n even to existing move log entries
Fixed the class name from r96441, it's Move not Block
Added notes about new naming conventions to DefaultSettings.php
-> didn't bother the remain existing messages now, they will keep working
Didn't remove 1movedto2*, they are still used until I commit the code which actually makes new style log entries.

12 years agoUse LogFormatter to format log entries.
Niklas Laxström [Thu, 8 Sep 2011 08:57:02 +0000 (08:57 +0000)]
Use LogFormatter to format log entries.
* Anonymous users now display correctly
This paves the way for new LogFormatters than enable proper i18n.
Each log type must be converted individually.

12 years agoSplit getTypeMenu into two functions:
Niklas Laxström [Thu, 8 Sep 2011 08:51:32 +0000 (08:51 +0000)]
Split getTypeMenu into two functions:
* the current functions does the ugly thing extracting the current log type from array
* the new function just builds the selector, using XmlSelect - clearer and more flexible

12 years agoChange LogEventsList to use query info from DatabaseLogEntry.
Niklas Laxström [Thu, 8 Sep 2011 08:46:39 +0000 (08:46 +0000)]
Change LogEventsList to use query info from DatabaseLogEntry.
The only changes in the query are:
* New fields: log_user_text, user_id
* INNER JOIN on user table is changed to LEFT JOIN
* AND (user_id = log_user) is dropped from WHERE conditions (looks redundant, easy to add back if needed)

This means that log entries from anonymous users are not dropped anymore.
Those will actually get displayed correctly after the next commit.
It is also possible to use User::newFromRow for non-anonymous users now.

12 years agoDeprecated showHeader and make it use the new methods. Only caller anymore is Metavid...
Niklas Laxström [Thu, 8 Sep 2011 08:22:10 +0000 (08:22 +0000)]
Deprecated showHeader and make it use the new methods. Only caller anymore is MetavidWiki - trying to find out what is going to be the fate of that extension.

12 years agoRm old options from commandLine.inc days
Chad Horohoe [Thu, 8 Sep 2011 03:13:31 +0000 (03:13 +0000)]
Rm old options from commandLine.inc days

12 years agoStupid merge conflicts, fix r96537
Chad Horohoe [Thu, 8 Sep 2011 01:54:27 +0000 (01:54 +0000)]
Stupid merge conflicts, fix r96537

12 years agoLast fix for r96529, I swear...only CommonSettings.php needs interpretPath(). Core...
Chad Horohoe [Thu, 8 Sep 2011 01:52:36 +0000 (01:52 +0000)]
Last fix for r96529, I swear...only CommonSettings.php needs interpretPath(). Core loadSettings() already returns LocalSettings with $IP prefixed.

12 years agoAnother fix for r96529: using MW_CONFIG_CALLBACK should halt normal settings file...
Chad Horohoe [Thu, 8 Sep 2011 00:59:58 +0000 (00:59 +0000)]
Another fix for r96529: using MW_CONFIG_CALLBACK should halt normal settings file loading. Broke command-line installer

12 years agoTweaks to WikimediaMaintenance:
Chad Horohoe [Thu, 8 Sep 2011 00:35:16 +0000 (00:35 +0000)]
Tweaks to WikimediaMaintenance:
* Rename Site to WMFSite, less likely to conflict
* Create generic inclusion point for these scripts, so they don't have to duplicate the $IP detection
* Make them all subclass WikimediaMaintenance and move some of the wmf-specific hacks out of core -- almost resolved this crap :D
* Fix rebuildInterwiki to be protocol-relative (like r96139)
* By the way: rebuildInterwiki and dumpInterwiki seem awfully alike...maybe we can merge the two :)

12 years agoReverted r88023 per CR
Aaron Schulz [Wed, 7 Sep 2011 23:41:12 +0000 (23:41 +0000)]
Reverted r88023 per CR

12 years agoMerge r90266 to trunk
Sam Reed [Wed, 7 Sep 2011 23:21:41 +0000 (23:21 +0000)]
Merge r90266 to trunk

Fixes fixme on r75341, r75343

12 years agosplit out the inside of File::transform() to avoid copying all of transform for Swift...
Russ Nelson [Wed, 7 Sep 2011 22:57:05 +0000 (22:57 +0000)]
split out the inside of File::transform() to avoid copying all of transform for SwiftMedia

12 years agoFollowup to r86108, r86854, r96384: table sorter fetch of 'data-sort-value' attribute...
Brion Vibber [Wed, 7 Sep 2011 22:03:16 +0000 (22:03 +0000)]
Followup to r86108, r86854, r96384: table sorter fetch of 'data-sort-value' attribute failed on IE 6/7 due to directly using DOM methods not available in those browsers.

hasAttribute and getAttribute don't appear until IE 8 in Microsoft-land; switching to jQuery's .attr() resolves this nicely.

12 years agoFix whitespace
Sam Reed [Wed, 7 Sep 2011 21:14:55 +0000 (21:14 +0000)]
Fix whitespace

Swap xor for ^

Documentation

12 years agoFollowup r96479, move files to WikimediaMaintenance
Sam Reed [Wed, 7 Sep 2011 20:50:40 +0000 (20:50 +0000)]
Followup r96479, move files to WikimediaMaintenance

Added missing svn:eol-style native

Files still need updating to point back to the MW maintenance dir

12 years agoMove addWiki, dumpInterwiki, ourusers, rebuildInterwiki, renameWiki and Site to Wikim...
Sam Reed [Wed, 7 Sep 2011 20:40:42 +0000 (20:40 +0000)]
Move addWiki, dumpInterwiki, ourusers, rebuildInterwiki, renameWiki and Site to WikimediaMaintenance "extension"

12 years agocomplement r96386 tests
Antoine Musso [Wed, 7 Sep 2011 20:28:49 +0000 (20:28 +0000)]
complement r96386 tests

12 years agoget rid of duplication, remove unused function rename(), add documentation as per...
Ariel Glenn [Wed, 7 Sep 2011 20:21:52 +0000 (20:21 +0000)]
get rid of duplication, remove unused function rename(), add documentation as per comments on r95260

12 years agoBug 30806 - Userrights-notallowed message inaccurate
Sam Reed [Wed, 7 Sep 2011 19:55:38 +0000 (19:55 +0000)]
Bug 30806 - Userrights-notallowed message inaccurate

Message updated, not exactly per example given

12 years agoadding tools to parse the output of storageTypeStats.php
Ben Hartshorne [Wed, 7 Sep 2011 19:46:18 +0000 (19:46 +0000)]
adding tools to parse the output of storageTypeStats.php