Commit graph

34321 commits

Author SHA1 Message Date
Sam Reed
8c6f2012b9 * (bug 27670) Ordering by timestamp (and usage of start and end) isn't as clear in auto generated document, as it is on mw.org
where dir = (newer|older)

Will look at doing (asc|desc)(ending)?
2011-03-12 23:39:15 +00:00
Happy-melon
b2d91f90e4 Follow-up r83786: update references in SpecialPage::getTitleFor() and friends to point to 'Block' rather than 'Blockip'; should fix errors on translatewiki. 2011-03-12 23:22:34 +00:00
Happy-melon
97e2c97578 Follow-up r83794, r83792: restore new SpecialBlock.php code from r83786. This revision should *not* be broken :D 2011-03-12 22:53:15 +00:00
Happy-melon
37a21244f3 Follow-up r83790: svn-move SpecialBlockip.php to SpecialBlock.php. This revision will be broken 2011-03-12 22:51:48 +00:00
Bryan Tong Minh
18403736f2 Follow-up r83792: Remove left in debugging 2011-03-12 22:51:45 +00:00
Bryan Tong Minh
5e909e8090 Follow-up r83778: Need to de-rotate, so use 360 - angle instead of angle. 2011-03-12 22:50:43 +00:00
Bryan Tong Minh
03a00bb732 (bug 2581, bug 6834) Added links to thumbnail in several resolutions to the file description page. The sizes are set by $wgImageLimits.
Not really happy about how it looks, perhaps only the numbers should be linked? See http://www.mediawiki.org/wiki/User:Bryan/Bug_2581 for options.
Removed message show-big-image-thumb, added show-big-image-preview, show-big-image-other, show-big-image-size.
2011-03-12 22:49:31 +00:00
Happy-melon
2e29f228ce Follow-up r83786, try to keep the svn history of SpecialBlockip. This rev will be broken. 2011-03-12 22:48:58 +00:00
Happy-melon
b9be69ce3d Spin out all the CSS used on special pages into their own mediawiki.special module. This comprises about a third of /skins/common/shared.css, so it's definitely worthwhile not loading it for the 99.9% of pageviews which aren't special pages. 2011-03-12 22:42:58 +00:00
Sam Reed
86ce74c75d * (bug 28010) Passing a non existant user to list=users gives internal error
* (bug 27549) action=query&list=users&usprop=groups doesn't show implicit groups if a user doesn't have explicit groups

Also follows up r79556, where I'd done a couple of daft things... (accessing undefined objects)
2011-03-12 22:23:43 +00:00
Happy-melon
7805997608 Divert a river through the Augean Stables that is SpecialBlockip.php.
* Move to SpecialBlock.php, and rename class appropriately
* Complete refactor
* Use HTMLForm in block form.  This changes most of the ids and field names on the form, but allows proper validation, nicer formatting, clears up several fixmes, and is generally Better(TM).
* Spin various parts out into static functions, several of which properly belong in the backend (but Block.php is a worse mess still)
* Invert some of the block options so that every checkbox makes the block more severe (so "check to disable email" is fine, but "check to allow usertalk edit" (default true) is inverted to "check to disable usertalk edit" (default false). 
* revert r40359 (move doMassUserBlock() to core).  No one seems to be using this function, which has nothing to do with the frontend UI in SpecialBlock (it might perhaps belong in Block.php); it is pretty bespoke for CheckUser, doesn't seem to have very much utility elsewhere.
2011-03-12 21:54:35 +00:00
Bryan Tong Minh
8ca4667339 Fix switch fail in r83778: add missing break. 2011-03-12 21:35:27 +00:00
Raimond Spekking
597254bd3c Localisation updates for core and extension messages from translatewiki.net (2011-03-12 20:34:00 UTC) 2011-03-12 21:02:43 +00:00
Happy-melon
9cd7fd8b42 Follow-up r83747, forgot to commit a file 2011-03-12 20:47:52 +00:00
Rotem Liss
30b1bef4e4 Localization fix for he. 2011-03-12 20:11:19 +00:00
Bryan Tong Minh
9a3b3dd024 (bug 18691) Added support for SVG rasterization using the Imagick PHP extension. Based on patch by Yesid Carrillo. Set $wgSVGConverter = 'ImagickExt' to use it. Note that the results are extremely ugly, but I believe that happens with the command line scaler as well.
Introduced new syntax for $wgSVGConverters, if the selected converter is an array, it is assumed to be a PHP callable. Imagick support is done by SvgHandler::rasterizeImagickExt.
2011-03-12 19:59:41 +00:00
Bryan Tong Minh
634594c039 (bug 14706) Added support for the Imagick PHP extension. Based on patch by Leslie Hoare.
Scaler type is "imext". Rotation is supported.
Logic mostly copied from transformImagemagick() and ported to Imagick calls.
Resizing animated gifs is broken; it only shows the first frame and I can't find out why it does not work, but otherwise it is fully working.
2011-03-12 19:32:39 +00:00
Happy-melon
cce73ad600 RELEASE-NOTES for r83755 2011-03-12 18:51:51 +00:00
Happy-melon
3d161feebf Follow-up r83755: @deprecated @since is wrong, doesn't have the expected semantic meaning. 2011-03-12 18:14:33 +00:00
Alexandre Emsenhuber
33f66d157b Skip a part of useless code when redirecting because of getOldIDFromRequest() or showing a diff page 2011-03-12 14:21:41 +00:00
Alexandre Emsenhuber
2fecd3ac70 Use Html::element() to generate the element; the url and the title attribute are now build only when really necessary 2011-03-12 13:45:12 +00:00
Raimond Spekking
c5075db80d Follow-up r83755: Message 'ipaddress' is unused now, in core and extensions 2011-03-12 13:42:22 +00:00
Happy-melon
f516eaefb6 Deprecate $wgSysopUserBans and $wgSysopRangeBans, both of which are pre-1.2, and totally antiquated. Can't think of any reason why a modern wiki might want to make blocks IP-only; syadmins can still disable rangeblocks by setting $wgBlockCIDRLimit to the maximum for each IP mode (32 for IP4, 128 for IP6). 2011-03-12 12:13:22 +00:00
Aaron Schulz
ac9ac287ee Do the filearchive updates too; index is there now 2011-03-12 11:51:33 +00:00
Happy-melon
bbf16f8c3a Follow-up r83298: keep the two elements of the message separate in an array in HTMLSelectAndOtherField::loadDataFromRequest(), fixes various bugs with validation, defaults, and normalisation. 2011-03-12 11:08:20 +00:00
Happy-melon
cc941ed637 add __toString() call for User objects, returning User->getName(). Now that we require PHP 5.2+, we can do this with all our major classes... :D 2011-03-11 23:42:53 +00:00
Happy-melon
b14cde3ca7 First little bit of cleaning out the Augean stables of SpecialBlockip.php: spin out the suppressUserName/unsuppressUserName functions into their own file, to keep them with the rest of the RevDel stuff. 2011-03-11 23:33:36 +00:00
Aryeh Gregor
eee66c150a Remove HISTORY for r70526
Removed from 1.17 RELEASE-NOTES in r83720.
2011-03-11 21:01:46 +00:00
Raimond Spekking
54a44861ef Localisation updates for core and extension messages from translatewiki.net (2011-03-11 20:34:00 UTC) 2011-03-11 20:59:31 +00:00
Aryeh Gregor
ec4a189891 Normalize named entities to numeric
We should never be outputting named entities other than the ones in XML,
< > & ", because that will break well-formedness unless
we have a DTD in the doctype, which we don't in HTML5 mode.

I stuck with outputting numeric entities here instead of UTF-8 because
some characters are hard to read in UTF-8 (e.g.,  ).  Maybe it
would be nicer if we decoded to UTF-8 except for whitespace and control
characters, or something like that, but it's a detail.

I'll backport to 1.17 and add RELEASE-NOTES there, which is why I added
the line to HISTORY instead of RELEASE-NOTES.
2011-03-11 20:50:17 +00:00
Alexandre Emsenhuber
77b2dc77c9 Follow-up r83080: make ApiUploadTest really work this time 2011-03-11 20:04:17 +00:00
Happy-melon
73134450cd Follow-up r83298: add AutoLoader entry 2011-03-11 18:02:10 +00:00
Alexandre Emsenhuber
08861c5638 Only call User::getSkin() when necessary.
(With this, a parser cache hit on action=render may not load the skin at all)
2011-03-11 14:31:12 +00:00
Aryeh Gregor
fa86cd606e Allow all itemtypes for microdata
It's really not all that useful otherwise.
2011-03-11 02:10:00 +00:00
Trevor Parscal
7bd3d5944a Fixes bug #27979 by removing 2 unused arguments from the function declaration. These were an artifact of splitting the recurse and resolve functions. 2011-03-11 00:12:25 +00:00
Sam Reed
092deb3cc8 remved? 2011-03-10 23:14:50 +00:00
Alexandre Emsenhuber
9f4fcee5be Per Jarry1250 on IRC: fix for r81469: accept StubObject in Message::inLanguage(); was breaking api.php?action=query&meta=allmessages 2011-03-10 21:39:24 +00:00
Raimond Spekking
6425ce889e Localisation updates for core and extension messages from translatewiki.net (2011-03-10 20:05:00 UTC) 2011-03-10 21:02:36 +00:00
Antoine Musso
187575aa47 Makes MediaWikiProvide methods static
Follow up and revert r82369 which used dynamic calls
2011-03-10 20:24:04 +00:00
Krinkle
a5e3777468 Fixing minor issues with mw.loader
* Using $.isArray/isFunction instead of "instanceof" or typeof.
** "instanceof Array" can throw SyntaxErrors in some cases
** Some non-functions return 'function' as their type
* JSHint:
** using === to compare to null (faster and safer)
** Missing semicolons
** Mixed spaces with tabs
* Added mw.log call when module is loaded
* Added support for custom prefix to mw.log (the mw.config value for 'mw.log.prefix' is pretty ugly as it sets it globally, when calling a function later again it's no longer the same. Perhaps just get rid of it)
2011-03-10 18:49:14 +00:00
Krinkle
1fdfc7a37f Fixing minor issues in mw.htmlform
* jQuery should be mapped to $ before using it. $ should not be implied as global in-core. ("return $(this).show()" was using $ as global)
** added wrapper and replaced jQuery with $.
* Missing semicolon
2011-03-10 17:38:21 +00:00
Chad Horohoe
0b01187a64 (bug 27970) Wrong variable name, dependencies -> modules 2011-03-10 15:12:36 +00:00
Bryan Tong Minh
cd311a1678 Revert r83647, was based on the inability to read the function signature 2011-03-10 12:04:38 +00:00
Bryan Tong Minh
e018563918 Add wfObjectToArray to json_decode to ensure that the return value is an array 2011-03-10 12:02:35 +00:00
Tim Starling
005f53fe15 Fix duplicate removal. Was completely broken, with a "job_id IS NULL" condition in the delete query. Added a COMMIT to pop_type(). 2011-03-10 11:39:23 +00:00
Tim Starling
0df463c322 Add --maxtime parameter to allow job runners to be limited by time instead of job count. This makes more sense when --procs is used. Using it on Wikimedia will reduce the effect of laggy slaves. 2011-03-10 05:26:34 +00:00
Tim Starling
31851e18cf Some bug fixes for r83634. 2011-03-10 04:47:21 +00:00
Tim Starling
ec277aed72 Rewrite the caching code in nextJobDB.php so that jobs-loop.sh has a chance of being able to exit from the "high-priority" loop.
The current syndrome is that when the cache expires, a small number of high-priority jobs are added. These jobs are quickly cleared, but the job runners do not continue on to other things, because the cache keeps returning the same small list of wikis for 5 minutes. After 5 minutes, there are a few more jobs in the high-priority list, so the cycle continues.
2011-03-10 04:10:27 +00:00
Tim Starling
e20d18cbf3 Stats for duplicate removal 2011-03-10 02:27:15 +00:00
Ryan Kaldari
37fda0ba5f fix for Bug 27669 2011-03-10 00:25:33 +00:00