Commit graph

34513 commits

Author SHA1 Message Date
Roan Kattouw
1ce0c189ee Followup r84399: remove another round() call 2011-03-20 17:10:48 +00:00
Roan Kattouw
8d2ed2207a Remove stray round() call, rounding of timestamps was removed some time ago. Thanks to Michael for pointing this one out 2011-03-20 17:08:38 +00:00
Roan Kattouw
45f9da8ad7 (bug 27336) Add $wgJobTypesExcludedFromDefaultQueue for job types that aren't supposed to be run by 'normal' job runners. Modified patch by Michael Dale 2011-03-20 16:52:57 +00:00
Roan Kattouw
43993f1fd6 (bug 27641) purgeThumbnails should support exclusion of expensive files. Add $wgExcludeFromThumbnailPurge and don't purge thumbnails whose extension is in that array when the files they belong to are purged with action=purge. Committing patch by Michael Dale with small coding style tweaks 2011-03-20 16:38:08 +00:00
Roan Kattouw
3f52bd8007 Revert r83812 (schema change for cl_type enum), no longer needed after r84392. Also reverts r83821 (followup to r83812, add /*_*/ ) 2011-03-20 16:30:59 +00:00
Platonides
d394638f7b Follow up r84175 2011-03-20 16:29:31 +00:00
Roan Kattouw
a6c758a39a Per r83812 CR, solve the categorymembers paging problem by doing separate queries for each value of cl_type, with some trickery to make paging work. This makes the enum->varchar schema change for cl_type unnecessary, so I'll revert that.
Code was largely copied from Tim's CR comment on r83812 but adapted to deal with the fact that we have to apply the cmcontinue-induced WHERE on cl_sortkey and cl_from only for the first query. Because ApiQueryBase doesn't let us unset or overwrite conditions like these in a nice way, I added an $extraQuery parameter to ApiQueryBase::select() that excepts additional query parameters that are only applied to that query but not stored in the object.
2011-03-20 16:25:01 +00:00
Antoine Musso
5da14533aa Makes wikilinks nicer when possible
This patch mostly impact Title:getLocalUrl() with two changes:

1) Abstraction:

$wgActionPath related code is now in Title::resolveActionPath(). It now
interprets query parameters using an array which is easier to read than
playing with a regexp and the evil $matches[].


2) Tweaking:

Change the 7 years old (r2621) URL forge:
  "{$wgScript}?title={$dbkey}&{$query}"
  => /w/index.php?title=FOO&q=2

To a nicer
  "str_replace( '$1', $dbkey, $wgArticlePath )"
  => /wiki/FOO?q=2


Additional changes:

* Parser tests were modified to reflect the changes.
* PHPUnit TitleTest amended to test getLocalUrl() (add more!!)
* When using wgActionPaths, makes sure the 'view' action is a sane default
2011-03-20 14:57:49 +00:00
Roan Kattouw
dd02d077b6 In $.textSelection, treat <input> elements differently from other elements (such as textareas and iframes) in IE, seems to be needed for some reason (oh IE, how I hate you). This fixes a bug causing Narayam's keyboard mappings to not work in <input> elements in IE. 2011-03-20 14:48:20 +00:00
Sam Reed
d8279d2c4a * (bug 16288) API: consider making closure status of wikis more clear with meta=siteinfo
Added bug to RELEASE-NOTES, this adds the hook and usage into SiteMatrix


Have I got my & all right? I can never remember
2011-03-20 13:41:41 +00:00
Sam Reed
1a951ec9cd Addition of 'APIQuerySiteInfoGeneralInfo' hook for usage in bug 16288 "API: consider making closure status of wikis more clear with meta=siteinfo" 2011-03-20 13:31:22 +00:00
Antoine Musso
0d2baed222 correct wfDebug() calls added in r79272 & r79368 2011-03-20 11:39:44 +00:00
Sam Reed
29df5af44e Followup r84361, numerical keys ftw 2011-03-20 00:32:28 +00:00
Sam Reed
e696d174eb Actually list implicit groups in allusers.
Looks like I might've regressed this in the course of fixing other bugs. Oh well, fixed now
2011-03-20 00:23:41 +00:00
Sam Reed
db45168a0d * (bug 27469) label implicit groups in list=allusers&auprop=groups/list=users&usprop=groups 2011-03-20 00:19:29 +00:00
Happy-melon
7eac649e6d * Implement an extensible Block::prevents( <action> ) function to replace the plethora of direct member variable accesses This pushes the historic *disable*-createaccount-vs-*allow* usertalk-edit wierdness down to the database layer
* Implement accessors for isHardblock() and getRangeStart()/getRangeEnd() in the same fashion.
* Make the corresponding variables private, removing external accessors.  This required updating AbuseFilter with non-B/C code, so I also implemented the rest of the changes I've made to the blocking backend in that extension.
* Move the "get an IP range which encompasses the given IP/range" logic to Block.php; will be needed later... :D
2011-03-19 23:47:08 +00:00
Sam Reed
4569f31e09 * (Bug 14005) editing section 0 of an existing but empty page gives no such section error
Tested, with minor tweak. Also removed now un-needed code

Patch by Harry Burt
2011-03-19 23:23:32 +00:00
Sam Reed
b3ca74bd57 * (bug 27343) Add parseddescription to list=filearchive 2011-03-19 22:54:43 +00:00
Niklas Laxström
73fe21dce9 This feature never made it into 1.16 2011-03-19 21:46:45 +00:00
Happy-melon
4f1638a5a6 Follow-up r81524: fix fatal when modules are deregistered 2011-03-19 21:19:50 +00:00
Max Semenik
f2f298ba67 update.php: restore compatibility with PHP4 to die gracefully 2011-03-19 19:48:29 +00:00
Happy-melon
d1223c41bb Mark various internal methods as protected, which have no external calls in core or extensions. 2011-03-19 17:44:01 +00:00
Happy-melon
408181b29e Follow-up r84336: break some long lines 2011-03-19 17:36:10 +00:00
Happy-melon
f1b1aafa1d Block::forUpdate() is never called, and doesn't really make much sense in this context anyway; remove it and simplify. 2011-03-19 17:32:59 +00:00
Happy-melon
04e5a7daa3 Clarify the behaviour of Block::parseTarget(), and that TYPE_AUTO and TYPE_ID are broadly the same. 2011-03-19 16:50:21 +00:00
Happy-melon
3e89cb5506 Remove some insanely ancient (~r4797) unused globals and variables, and make private variables actually private (no external calls to worry about) 2011-03-19 16:41:14 +00:00
Max Semenik
bb3dca86f3 Fixed message borkage from r78593 2011-03-19 15:27:24 +00:00
Raimond Spekking
39ba7ebbba Localisation updates for core and extension messages from translatewiki.net (2011-03-19 14:31:00 UTC) 2011-03-19 14:46:48 +00:00
Alexandre Emsenhuber
479efc31eb Fix fatal from r83823 2011-03-19 13:00:11 +00:00
Tim Starling
389125293e Don't refuse to do work just because the pool counter server is down. This seemed like a good idea at the time, but in practice is rather fragile. 2011-03-19 12:55:48 +00:00
Alexandre Emsenhuber
ef1144e2e1 Per Hashar, fix for r83673: only accept StubContLang and StubUserLang for stub objects 2011-03-19 12:53:56 +00:00
Tim Starling
3342af373c Log pool counter errors 2011-03-19 12:06:04 +00:00
Max Semenik
b542038217 Fixed typo in r84314 2011-03-19 11:54:27 +00:00
Antoine Musso
1051599c4e consitent PHP version in RELEASE-NOTES (PHP 5.2.3)
Follow up r83879
2011-03-19 11:00:27 +00:00
Mark A. Hershberger
bd3be62048 Fix for Bug# 17463: New pages log doesn't remove/update item after suppression redirect
Except for some whitespace changes, this is Baowolff's patch from http://bug-attachment.wikimedia.org/attachment.cgi?id=8312 which I am applying in the spirit of “apologize later”.

Baowolff writes:

    Don't show new page entries in Special:newpage for supressed redirects.

    Patch to remove the new page entry from Special:RecentChange and
    special:newpages, if the new page gets moved with redirect supressed.


    I'm not a 100% sure this is a good idea. This will only suppress the initial
    new page line in the RC (And newpages), and won't supress any other edits to
    the page. Does this behaviour really make sense? (Thats not rhetorical). It
    seems somewhat different from deleting a page, where none of the content is
    relevent, but when you move a page, the edits don't go away, they're just in a
    new title.

    I suppose we could just change the new page entry in the RC to point to the
    other page, but that seems rather wrong too.

    So anyhow, not sure what the right approach is.
2011-03-19 04:24:15 +00:00
Happy-melon
476fd7589a Missed one instance of Block::infinity() from r84279. 2011-03-18 23:29:17 +00:00
Happy-melon
99f39a4779 Move Block::normaliseRange() to IP.php, then reduce it to 4 lines by using the existing functionality in that class. 2011-03-18 23:28:23 +00:00
Bryan Tong Minh
f71e2b1189 Extract bit depth and color type for PNG images 2011-03-18 23:03:58 +00:00
Happy-melon
21fcf991d0 Follow-ups to r84258 2011-03-18 22:28:39 +00:00
Bryan Tong Minh
ef3c0a92b4 Added hook BitmapHandlerTransform to allow extension to transform a file without overriding the entire handler. 2011-03-18 22:28:19 +00:00
Krinkle
170ba44c5d Follow-up r83658 CR: Undoing addition of second argument, prefix is for identifying the source window, not the context within 2011-03-18 22:22:04 +00:00
Krinkle
ee55aca0f1 per r83658 CR: mw.log.prefix is for identifying windows, not context. Using string concat instead 2011-03-18 22:18:06 +00:00
Krinkle
db8f2328c2 per r83658 CR: mw.log.prefix is for identifying windows, not context. Using string concat instead 2011-03-18 22:16:12 +00:00
Happy-melon
f8ab1088c2 Follow-ups to r84258. 2011-03-18 22:03:31 +00:00
Sam Reed
77f1fe6b72 Fix fatal Invalid argument supplied for foreach 2011-03-18 22:01:42 +00:00
Antoine Musso
8012c3b188 debugging statement when starting a phpunit parser test 2011-03-18 21:45:32 +00:00
Happy-melon
77d38cbeff Follow-up r83909, r83825: update special page aliases for all languages. 2011-03-18 21:42:39 +00:00
Happy-melon
374d7e7278 Fix borked r84266. 2011-03-18 21:31:11 +00:00
Happy-melon
ac5751ee48 Follow-up r84249: reimplement isAllowedAny(), and restore isAllowed() to only-accepting-one-parameter mode for the time being. 2011-03-18 21:07:05 +00:00
Mark A. Hershberger
2e61719bdb Followup r83536 to address Jack Phoenix's comments about the bogus w/s “cleanup” 2011-03-18 20:58:12 +00:00