Roan Kattouw [Sun, 7 Sep 2008 19:04:51 +0000 (19:04 +0000)]
(bug 15359) Add APIGetAllowedParams and APIGetParamDescription hooks
Aaron Schulz [Sun, 7 Sep 2008 18:50:23 +0000 (18:50 +0000)]
Ugh. There is nothing wrong with having nicer messages (seems to be #mediawiki consensus too). Partial revert of r40520 by siebrand.
Rotem Liss [Sun, 7 Sep 2008 16:57:33 +0000 (16:57 +0000)]
Localization update.
Siebrand Mazeland [Sun, 7 Sep 2008 15:11:59 +0000 (15:11 +0000)]
Make 'protect-otherreason', and 'protect-otherreason-op' consistent with 'ipbotherreason' by adding " reason".
Niklas Laxström [Sun, 7 Sep 2008 09:47:34 +0000 (09:47 +0000)]
* When using a {{SITENAME}} in a message, better to make sure {{GRAMMAR}} works too
Meno25 [Sun, 7 Sep 2008 09:16:49 +0000 (09:16 +0000)]
Update file
Rotem Liss [Sun, 7 Sep 2008 09:00:43 +0000 (09:00 +0000)]
Localization fixes.
Rotem Liss [Sun, 7 Sep 2008 08:59:26 +0000 (08:59 +0000)]
Localization update for he.
Rotem Liss [Sun, 7 Sep 2008 08:39:41 +0000 (08:39 +0000)]
Localization fixes.
Rotem Liss [Sun, 7 Sep 2008 08:28:45 +0000 (08:28 +0000)]
Protection form: Show action as header of an action if the message for this action does not exist.
Aaron Schulz [Sun, 7 Sep 2008 08:24:06 +0000 (08:24 +0000)]
Fix link cache use with FOR_UPDATE
Rotem Liss [Sun, 7 Sep 2008 08:24:00 +0000 (08:24 +0000)]
Show properly-sized select elements in protection form when the user does not have a specific permission.
Aaron Schulz [Sun, 7 Sep 2008 06:06:05 +0000 (06:06 +0000)]
* Reduce hook usage
* Add stable rev to process cache
Aaron Schulz [Sun, 7 Sep 2008 05:40:34 +0000 (05:40 +0000)]
Fix misnamed variable
Aaron Schulz [Sun, 7 Sep 2008 01:10:35 +0000 (01:10 +0000)]
Some form consistency tweaks
Aaron Schulz [Sun, 7 Sep 2008 00:38:57 +0000 (00:38 +0000)]
Add more error handling
Aaron Schulz [Sat, 6 Sep 2008 23:35:24 +0000 (23:35 +0000)]
Add edits-only filter to ListUsers (bug 10815)
Aaron Schulz [Sat, 6 Sep 2008 23:20:58 +0000 (23:20 +0000)]
* Add time/reason dropdown for protect form (bug 10799)
* Shorten message
Siebrand Mazeland [Sat, 6 Sep 2008 22:57:09 +0000 (22:57 +0000)]
Localisation updates for core messages from Betawiki (2008-09-07 00:39 CEST)
Aaron Schulz [Sat, 6 Sep 2008 21:52:18 +0000 (21:52 +0000)]
Remove type check for userIsNew(), shouldn't be needed
Bryan Tong Minh [Sat, 6 Sep 2008 21:26:46 +0000 (21:26 +0000)]
Committing a work on progress on improvements to the new upload code. Still needs some work to allow extensions to interact with it and also needs documentation. Modified SpecialUpload.php not committed.
Aaron Schulz [Sat, 6 Sep 2008 17:30:23 +0000 (17:30 +0000)]
Might as well be more consistent with "change protection" links
Aaron Schulz [Sat, 6 Sep 2008 17:12:45 +0000 (17:12 +0000)]
Fix regression from r40518; keep current values of page when no query params given
Aaron Schulz [Sat, 6 Sep 2008 15:11:54 +0000 (15:11 +0000)]
Fix typo for OldChangesList
Aaron Schulz [Sat, 6 Sep 2008 15:01:59 +0000 (15:01 +0000)]
* Mark non-autoconfirmed users in RC
* Avoid overselecting fields in RC and add $fields to SpecialRecentChangesQuery
* Some whitespace tweaks in RecentChange.php. Remove dead code.
* Avoid rc_new check in ChangesList
* Move some "unpatrolled" CSS to shared.css. Add 'newuser' CSS.
* Bump style version
Tim Starling [Sat, 6 Sep 2008 13:56:59 +0000 (13:56 +0000)]
Implemented blob support for SQLite. Allows null characters to be inserted into the database. Avoids total breakage of the objectcache table. For trunk and 1.13.
Chad Horohoe [Sat, 6 Sep 2008 12:51:09 +0000 (12:51 +0000)]
Syntax error. Consequently, getCookie() returns null if it can't find one, so we can just directly call it here and skip a logic step.
Chad Horohoe [Sat, 6 Sep 2008 12:38:34 +0000 (12:38 +0000)]
* Add getCookie() method to WebRequest as a wrapper for $_COOKIE. Updated all instances of $_COOKIE to use this.
* Switch from running fix_magic_quotes() on $_COOKIE and $_GET/$_POST to running it on $this->cookies and $this->data. Should keep us from interfering with other programs that might do the same (and/or trying to start up a second WebRequest object). This partially fixes bug 11558.
* Todo: Do similar things with $_SERVER/$_ENV and switch to a lazy-load style, rather than on every new WebRequest.
Victor Vasiliev [Sat, 6 Sep 2008 12:18:36 +0000 (12:18 +0000)]
* (bug 15492) list=recentchanges&rctype=log does't list log action
Patch by Roan Kattouw
Bryan Tong Minh [Sat, 6 Sep 2008 11:35:09 +0000 (11:35 +0000)]
Give 3rd parameter of FauxRequest constructor default value.
Bryan Tong Minh [Sat, 6 Sep 2008 08:58:24 +0000 (08:58 +0000)]
Add session accessor functions to WebRequest
Shinjiman [Sat, 6 Sep 2008 08:46:14 +0000 (08:46 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Siebrand Mazeland [Sat, 6 Sep 2008 08:02:34 +0000 (08:02 +0000)]
* add some newlines after periods
* remove some "sorry" and "please"
Aaron Schulz [Sat, 6 Sep 2008 07:41:34 +0000 (07:41 +0000)]
Add class to textarea for protected pages (bug 11825)
Aaron Schulz [Sat, 6 Sep 2008 07:20:13 +0000 (07:20 +0000)]
Set values from query params (bug 12750)
Aaron Schulz [Sat, 6 Sep 2008 07:11:36 +0000 (07:11 +0000)]
clean up form (bug 15163)
Tim Starling [Sat, 6 Sep 2008 07:05:14 +0000 (07:05 +0000)]
Fixed bug 15148, total breakage of Special:BlockIP on PostgreSQL:
* Migrated to a unique index for IP block conflict detection, like we did for MySQL some aeons ago.
* Modified DatabasePostgres to return a correct affected row count for INSERT IGNORE. Tested for single and multi.
* Fixed an unrelated bug: duplicate index rc_timestamp in tables.sql
* Tested for install and upgrade on PG 8.3.
No changelog because I'll backport it to 1.13.
Tim Starling [Sat, 6 Sep 2008 04:14:58 +0000 (04:14 +0000)]
Revert r40513, failing parser test for non-bug.
Chad Horohoe [Sat, 6 Sep 2008 03:15:35 +0000 (03:15 +0000)]
(bug 11475) Remove useless final param in $dbw->replace() call.
Chad Horohoe [Sat, 6 Sep 2008 02:46:55 +0000 (02:46 +0000)]
Bump $wgStyleVersion for r40507
Aaron Schulz [Fri, 5 Sep 2008 22:46:46 +0000 (22:46 +0000)]
Add more protection info on edit (bug 6179)
Aryeh Gregor [Fri, 5 Sep 2008 22:11:58 +0000 (22:11 +0000)]
(bug 6702) Improve some default system messages
Robert Stojnić [Fri, 5 Sep 2008 20:50:24 +0000 (20:50 +0000)]
* (bug 14398) mwsuggest.js: Let width of container be configurable
Dynamically change container *width* to fit as much as possible of suggestions. Width change is
animated (os_animation_steps=6), and is expands up to double of original size (os_container_max_width=2).
All of this can be overriden in site/user js.
Siebrand Mazeland [Fri, 5 Sep 2008 19:02:56 +0000 (19:02 +0000)]
Minor CameCase fix
Chad Horohoe [Fri, 5 Sep 2008 18:29:42 +0000 (18:29 +0000)]
Revert r40385. Half-assed attempt at making something configurable that doesn't need to be leads to borken code. /thumb/ is no longer configurable...just like it was before.
Aaron Schulz [Fri, 5 Sep 2008 18:03:42 +0000 (18:03 +0000)]
Add level select (bug 12961)
Aaron Schulz [Fri, 5 Sep 2008 17:34:44 +0000 (17:34 +0000)]
*Add history link to protect log items
*Made typeAction() more general
*Tweaked code for less tab whitespace
Shinjiman [Fri, 5 Sep 2008 16:38:19 +0000 (16:38 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Aryeh Gregor [Fri, 5 Sep 2008 16:32:57 +0000 (16:32 +0000)]
Forgot RELEASE-NOTES for last commit
Aryeh Gregor [Fri, 5 Sep 2008 16:31:34 +0000 (16:31 +0000)]
Refresh category table counts sometimes for small categories
When someone views a category page, if the number of retrieved pages is the whole category (no from= or until=, 200 or less retrieved), and that number doesn't match the number in the category table, we already detect that this is wrong and ignore the bogus category table number. Now the software also refreshes the bogus category counts in the database in this case, which should be pretty much instantaneous since it has less than 200 entries.
This adds no overhead for categories that have correct counts, and fixes the most visible case when category counts are wrong: small categories, when you can easily count the pages.
Aryeh Gregor [Fri, 5 Sep 2008 15:39:08 +0000 (15:39 +0000)]
Fix typo causing fatal error for Postgres in updaters.inc
Reported by kreegee in #mediawiki. I don't usually touch pgsql, but the problem and the fix both seem fairly obvious here. :) Also fixed another instance of the same typo lurking in some docs that I stumbled on.
Aryeh Gregor [Fri, 5 Sep 2008 15:35:16 +0000 (15:35 +0000)]
Don't fail fatally when Linker::link() is passed a non-object
This matches old behavior of makeKnownLinkObj() et al., effectively reverting part of r38162. We'd usually like to render the rest of the page even if one link fails. We might want to raise an E_USER_WARNING here, though.
Roan Kattouw [Fri, 5 Sep 2008 15:05:57 +0000 (15:05 +0000)]
(bug 15486) API action=block ignores autoblock parameter
Aaron Schulz [Fri, 5 Sep 2008 07:17:47 +0000 (07:17 +0000)]
tweak comment
Aaron Schulz [Fri, 5 Sep 2008 04:53:49 +0000 (04:53 +0000)]
Show localised log names in revision deletion log (bug 13694)
Tim Starling [Fri, 5 Sep 2008 04:23:24 +0000 (04:23 +0000)]
* Don't force rendering in File::getThumbnail(). The old code (pre-filerepo) required rendering to be forced all the time, the new code is much smarter about when to render and doesn't need rendering to be forced. Forcing rendering causes non-scaler servers to be used for scaling.
* Use File::transform() in the core instead of the deprecated File::getThumbnail().
Aaron Schulz [Fri, 5 Sep 2008 04:14:15 +0000 (04:14 +0000)]
Add begin() for good housekeeping
Tim Starling [Fri, 5 Sep 2008 03:46:07 +0000 (03:46 +0000)]
In wfDebugLog(): log the hostname if $wgShowHostnames is true. Cache the hostname.
Chad Horohoe [Fri, 5 Sep 2008 03:41:31 +0000 (03:41 +0000)]
Document isOpen() and lastQuery(). (set|clear|get)Flag still need some lovin'...I just don't know what they do.
Tim Starling [Fri, 5 Sep 2008 03:32:09 +0000 (03:32 +0000)]
In wfShellExec(), log return code 127 to a special log file, to check for missing executables on the Wikimedia cluster.
Chad Horohoe [Fri, 5 Sep 2008 01:36:51 +0000 (01:36 +0000)]
Better test name for test 13. Like test 12, we should say *what* about wfTime() we're checking.
Alexandre Emsenhuber [Thu, 4 Sep 2008 23:25:53 +0000 (23:25 +0000)]
(bug 15292) New message notification for unregistred users now works again
Alexandre Emsenhuber [Thu, 4 Sep 2008 22:20:32 +0000 (22:20 +0000)]
missing svn:keywords property
Roan Kattouw [Thu, 4 Sep 2008 21:53:43 +0000 (21:53 +0000)]
(bug 15466) Added action=purge to the API. Modified patch by ^demon
Alexandre Emsenhuber [Thu, 4 Sep 2008 21:20:16 +0000 (21:20 +0000)]
(bug 15482) Special:Recentchangeslinked has no longer two submit buttons
Siebrand Mazeland [Thu, 4 Sep 2008 20:59:09 +0000 (20:59 +0000)]
Localisation updates for core from Betawiki
Siebrand Mazeland [Thu, 4 Sep 2008 20:50:29 +0000 (20:50 +0000)]
Localisation updates for core messages from Betawiki (2008-09-04 22:41 CEST)
Alexandre Emsenhuber [Thu, 4 Sep 2008 20:38:08 +0000 (20:38 +0000)]
* Document OutputPageCheckLastModified hook
* Added includes/diff/ to the list of paths in maintenance/findhooks.php
Aaron Schulz [Thu, 4 Sep 2008 20:14:12 +0000 (20:14 +0000)]
More EditPage cleanup, mainly coding/whitespace tweaks. Also note that from previous commit, showDeletionLog() is called regardless of special intros.
Roan Kattouw [Thu, 4 Sep 2008 19:48:48 +0000 (19:48 +0000)]
(bug 15479) action=login no longer sets wait parameter when result="Throttled"; regression from r40054
Aaron Schulz [Thu, 4 Sep 2008 19:32:58 +0000 (19:32 +0000)]
Clean up showIntro():
* Tweak code style
* Move exists() check to deletion log function
* Document this fucking code
Roan Kattouw [Thu, 4 Sep 2008 15:52:23 +0000 (15:52 +0000)]
Oops
Roan Kattouw [Thu, 4 Sep 2008 15:17:51 +0000 (15:17 +0000)]
* Split patrol code
** Backend code moved to RecentChange::reallyMarkPatrolled() and doMarkPatrolled()
** Adapted Article::markpatrolled()
* (bug 15466) Added action=patrol to the API. Modified patch by Soxred93
* Added rctoken=patrol to list=recentchanges
* Detect duplicate warnings in ApiBase::setWarning()
Daniel Friesen [Thu, 4 Sep 2008 13:57:52 +0000 (13:57 +0000)]
Revert r40251 by aaron. Broke &editintro= bug15455.
Roan Kattouw [Thu, 4 Sep 2008 13:42:22 +0000 (13:42 +0000)]
(bug 15471) Fix regression from r40088 which caused apprefix=Main_Page/ to fail because Main Page/. is not a valid title
Roan Kattouw [Thu, 4 Sep 2008 13:40:33 +0000 (13:40 +0000)]
(bug 15473) Correcting Doxygen comment for ApiEditPage
Tim Starling [Thu, 4 Sep 2008 07:45:52 +0000 (07:45 +0000)]
Clarify documentation
Aaron Schulz [Thu, 4 Sep 2008 07:28:48 +0000 (07:28 +0000)]
Avoid string '::' call in $wgSpecialPageCacheUpdates
Tim Starling [Thu, 4 Sep 2008 06:37:51 +0000 (06:37 +0000)]
Ignore invalid titles in $out->getLanguageLinks().
Tim Starling [Thu, 4 Sep 2008 06:19:27 +0000 (06:19 +0000)]
Fix for bug 13770, second attempt. Tested with a conflicting install of both dom and domxml, as per the report.
Chad Horohoe [Thu, 4 Sep 2008 04:15:27 +0000 (04:15 +0000)]
No more icky mkdir() calls. Grepping for mkdir() now returns nothing :)
Tim Starling [Thu, 4 Sep 2008 03:23:42 +0000 (03:23 +0000)]
Work around database corruption reported on WP:VPT -- unlinked title instead of PHP error. Break long lines.
Tim Starling [Thu, 4 Sep 2008 03:22:26 +0000 (03:22 +0000)]
Documentation
Brion Vibber [Thu, 4 Sep 2008 03:13:55 +0000 (03:13 +0000)]
* (bug 2889) MediaWiki:Print.css applies to the printable version
MediaWiki:Handheld.css and MediaWiki:Print.css now available (handheld only if $wgHandheldStyle is configured).
Alexandre Emsenhuber [Thu, 4 Sep 2008 01:29:24 +0000 (01:29 +0000)]
No need to wrap it in a ResultWrapper object as Database::query() already returns a ResultWrapper object
David McCabe [Wed, 3 Sep 2008 22:57:26 +0000 (22:57 +0000)]
Made ChangesList::insertUserRelatedLinks public for use by hooks.
Alexandre Emsenhuber [Wed, 3 Sep 2008 22:47:34 +0000 (22:47 +0000)]
fix XHTML error
David McCabe [Wed, 3 Sep 2008 22:13:03 +0000 (22:13 +0000)]
Added OldChangesListRecentChangesLine hook for customizing RC messages in OldChangesList mode. TODO: Customize other ChangesList implementations.
Siebrand Mazeland [Wed, 3 Sep 2008 21:28:24 +0000 (21:28 +0000)]
Localisation updates for core messages from Betawiki (2008-09-03 23:15 CEST)
Chad Horohoe [Wed, 3 Sep 2008 18:01:51 +0000 (18:01 +0000)]
Parser test for bug 15453
Chad Horohoe [Wed, 3 Sep 2008 17:30:20 +0000 (17:30 +0000)]
Add @ingroup definitions to these. Created new group HTTP for web-related things (cookies, headers, HTTP requests, etc).
Chad Horohoe [Wed, 3 Sep 2008 15:47:42 +0000 (15:47 +0000)]
Implement 'thumbDir' configuration parameter for local and foreign repos. Replaces apiThumbCacheDir as it's redundant. Also allows for customization of the default '/thumb/' path on local repos.
Roan Kattouw [Wed, 3 Sep 2008 14:47:49 +0000 (14:47 +0000)]
(bug 15448) YAML output returns empty strings instead of 0. Surprisingly, this was not caused by PHP's "helpful" 0=='' ; research shows this was a regression from r32485 that no one ever noticed
Roan Kattouw [Wed, 3 Sep 2008 14:26:41 +0000 (14:26 +0000)]
(bug 15444) API: Throwing a regular 'unknownerror' rather than ('unknownerror', AS_END) when EditPage::AS_END is returned, for consistency with other write modules.
Aryeh Gregor [Wed, 3 Sep 2008 14:02:32 +0000 (14:02 +0000)]
Fix for r40379, allow commas again
Chad Horohoe [Wed, 3 Sep 2008 13:50:37 +0000 (13:50 +0000)]
+docs
Aryeh Gregor [Wed, 3 Sep 2008 13:45:10 +0000 (13:45 +0000)]
Use ECMAScript standard, section 9.3, to decide what's a number
r40348 was kind of broken, in terms of considering strings like "e" to be numbers. The version before that would also act incorrectly for strings like ".".
Aaron Schulz [Wed, 3 Sep 2008 04:43:17 +0000 (04:43 +0000)]
fix case
Aaron Schulz [Wed, 3 Sep 2008 04:17:20 +0000 (04:17 +0000)]
Move doMassUserBlock() to core
Tim Starling [Wed, 3 Sep 2008 04:07:14 +0000 (04:07 +0000)]
Removed useless ss_row_id condition. Fixed "$activeUsers === -1", comparison fails because it's actually the string "-1", no doubt because it's a BIGINT which is too big for PHP to represent with an numeric type.