Aaron Schulz [Sat, 17 Jan 2009 18:44:28 +0000 (18:44 +0000)]
* Added 'target' param to changesfeed to fix total breakage of RCL feed. They were all using the same cache so the feed for page X sometimes showed the feed for page Y.
* Removed extra constant cache key params
* Added feed comments
* Fixed tab space
Aaron Schulz [Sat, 17 Jan 2009 17:47:58 +0000 (17:47 +0000)]
(bug 8065) Fix summary forcing for new pages
Alexandre Emsenhuber [Sat, 17 Jan 2009 15:47:23 +0000 (15:47 +0000)]
svn:eol-style native
Raimond Spekking [Sat, 17 Jan 2009 14:12:47 +0000 (14:12 +0000)]
Localisation updates for core messages from Betawiki
Roan Kattouw [Sat, 17 Jan 2009 10:11:42 +0000 (10:11 +0000)]
Another followup to r45819: update references to the renamed archive.usertext_timestamp index. The user_newtalk.user_id and user_newtalk.user_ip indices aren't used anywhere that I could find.
Roan Kattouw [Sat, 17 Jan 2009 09:56:38 +0000 (09:56 +0000)]
Fix up r45819 per CR comments: removing calls to removed function Database::indexName()
Raimond Spekking [Sat, 17 Jan 2009 08:56:27 +0000 (08:56 +0000)]
self revert r45512, r45513 and r45515 for now
Per Brions review on r45512. I need a bit more time to fix it.
Shinjiman [Sat, 17 Jan 2009 05:01:43 +0000 (05:01 +0000)]
* Fixing the caching issue by using -{T|xxx}- syntax (only applies on wiki with LanguageConverter class)
* Improving the efficiency by using -{A|xxx}- syntax (only applies on wiki with LanguageConverter class)
patches by PhiLiP
Aaron Schulz [Sat, 17 Jan 2009 00:53:23 +0000 (00:53 +0000)]
Improve revertedEdits autopromote check to include undoing of edits
Shinjiman [Sat, 17 Jan 2009 00:41:28 +0000 (00:41 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Nathaniel Herman [Fri, 16 Jan 2009 23:34:38 +0000 (23:34 +0000)]
Add new hook 'UserLoadFromDatabase' that is called while loading a user from the database.
Roan Kattouw [Fri, 16 Jan 2009 23:15:04 +0000 (23:15 +0000)]
(bug 16645) Making the pl_namespace, tl_namespace and il_to indices UNIQUE, just like their differently-ordered counterparts. This helps MySQL optimize stuff (see bug)
Jack Phoenix [Fri, 16 Jan 2009 23:04:13 +0000 (23:04 +0000)]
allow extensions that use 'UserCreateForm' to add checkboxes into the signup form to define messages containing HTML. this can be very useful and necessary; think of something like a checkbox "I have read the site's terms of use", it would obviously need to link to the terms of use page. using msgWiki() instead of msgHtml() here would probably be safer, but msgWiki() likes to mess things up by introducing <p> tags and this is meant for extensions, so it won't cause any more risks than the current existing system messages that allow HTML inclusion.
Roan Kattouw [Fri, 16 Jan 2009 23:02:44 +0000 (23:02 +0000)]
Attempt at cleaning up r45764, r45769 (renamed indices for SQLite compat):
* removing the indexName() hack and with it the /*i*/ stuff from tables.sql
* undoing renames of formerly implicitly named indices
* three indices have to be called different in SQLite because of naming conflicts, adding a patch to updaters.inc that does that
Rotem Liss [Fri, 16 Jan 2009 22:36:52 +0000 (22:36 +0000)]
Localization update for he, and reordering messages in en (according to messages.inc).
Chad Horohoe [Fri, 16 Jan 2009 21:19:12 +0000 (21:19 +0000)]
(bug 17035) Fail gracefully if php's file_uploads are disabled.
Roan Kattouw [Fri, 16 Jan 2009 21:10:02 +0000 (21:10 +0000)]
Followup to r45810: remove unused global declaration
Roan Kattouw [Fri, 16 Jan 2009 21:03:13 +0000 (21:03 +0000)]
API: (bug 17027) Allow all configuration variables in $wgAPIReadableConfigVars to be read through meta=siteinfo&siprop=configvars. I tried my best to only make useful stuff readable and skip stuff that's sensitive (like $wgDBpassword), available already (like $wgExtraNamespaces) or useless (like $wgUpdateRowsPerJob).
Aaron Schulz [Fri, 16 Jan 2009 19:56:57 +0000 (19:56 +0000)]
(bug 1181) Don't try to replace the whole page with one section if replaceSection() fails
Huji [Fri, 16 Jan 2009 19:07:02 +0000 (19:07 +0000)]
Localisation updates: From betawiki
Niklas Laxström [Fri, 16 Jan 2009 16:53:32 +0000 (16:53 +0000)]
* Updating local name of ace per request of Si Gam Acèh at translatewiki.net/w/i.php?oldid=997315
Niklas Laxström [Fri, 16 Jan 2009 16:42:54 +0000 (16:42 +0000)]
Fixes to gv plural function
Aaron Schulz [Fri, 16 Jan 2009 13:23:23 +0000 (13:23 +0000)]
Tweak r45778, check exists()
Raimond Spekking [Fri, 16 Jan 2009 09:35:57 +0000 (09:35 +0000)]
* Wrap deletedwhileediting/confirmrecreate messages into a div with own classes
* Add class "error" for deletedwhileediting
* Remove "span class=error" from some localizations
** Makes default behaviour more consistent over all languages
* Use proper Xml::function for the checkbox
Thomas Dalton [Thu, 15 Jan 2009 22:08:37 +0000 (22:08 +0000)]
Page moves should not be minor edits
Aaron Schulz [Thu, 15 Jan 2009 18:46:57 +0000 (18:46 +0000)]
Add &redirect=no to newpages links (bug 14353)
Aaron Schulz [Thu, 15 Jan 2009 18:36:59 +0000 (18:36 +0000)]
Redid r45389 "Disallow broken Talk:File:x type titles (bug 5280)"
Aaron Schulz [Thu, 15 Jan 2009 17:53:19 +0000 (17:53 +0000)]
(Bug 15936) New page's patrol button should always be visible
Aaron Schulz [Thu, 15 Jan 2009 17:48:14 +0000 (17:48 +0000)]
Avoid extra parent id query on rev creation; only needs to be done if the current value is null, not 0
Aaron Schulz [Thu, 15 Jan 2009 17:33:13 +0000 (17:33 +0000)]
Use getRawUserText function, since this is just there to trigger index usage for patrol link query
Raimond Spekking [Thu, 15 Jan 2009 17:05:47 +0000 (17:05 +0000)]
Localisation updates for core messages from Betawiki
Tim Starling [Thu, 15 Jan 2009 14:20:28 +0000 (14:20 +0000)]
* Preserve usertext_timestamp index name for MySQL, prefix it for SQLite. Issues remain on the experimental non-installable DBMSes.
* Clean up some E_STRICT issues
Roan Kattouw [Thu, 15 Jan 2009 10:26:23 +0000 (10:26 +0000)]
Fix regression from r45749: only UTF-8 normalize strings
Roan Kattouw [Thu, 15 Jan 2009 10:18:44 +0000 (10:18 +0000)]
* svn:eol-style native for r45755
* Replace spaces with tabs in ApiFormatJson_json.php, fix some crazy indentation
Tim Starling [Thu, 15 Jan 2009 06:56:58 +0000 (06:56 +0000)]
For backport to 1.14.
* Made the upgrader work with SQLite
* Implemented missing schema info functionality in DatabaseSqlite
* Merged the SQLite and MySQL schemas into the one file with the help of some replaceVars() hacks.
* Moved all primary key definitions to the field definition, moved all indexes to CREATE INDEX statements, for best SQLite compatibility.
* Made all autoincrement fields primary keys, as required by SQLite.
* Removed meaningless buzzword from the category table comment
* tables.sql: s/'0'/0/
* In SQLite the index names have DB scope. Renamed archive.usertext_timestamp, user_newtalk.user_id, user_newtalk.user_ip
* SQLite does not support UPDATE with LIMIT by default. Removed all instances I could find.
* Made query errors work in the installer.
* Fixed DatabaseSqlite::lastErrno(), made SQLITE_SCHEMA errors automatically reissue the query as suggested on sqlite-users. Otherwise upgrade breaks.
* Removed miscellaneous status information from getServerVersion(), that's not the place to put it
Aaron Schulz [Thu, 15 Jan 2009 01:42:11 +0000 (01:42 +0000)]
Use new notifyRC2UDP() function in LogPage to avoid duplicated code
Aaron Schulz [Thu, 15 Jan 2009 01:32:15 +0000 (01:32 +0000)]
* Convert prefsubmit div into a table to fix tab indexing
* Fix XHTML
Aaron Schulz [Wed, 14 Jan 2009 23:42:57 +0000 (23:42 +0000)]
Move up user page noindex check
Brion Vibber [Wed, 14 Jan 2009 22:31:25 +0000 (22:31 +0000)]
Follow-up to r45698 "(bug 16969) Add show/hide to Preferences for option on specialpages added by FlaggedRevs"
That also added toggles in core for showing/hiding patrolled edits by default in watchlist & RC, but they were being shown regardless of whether patrolling was enabled.
Now hiding them if patrolling is disabled.
X! [Wed, 14 Jan 2009 22:24:56 +0000 (22:24 +0000)]
/me slaps himself for being in the wrong directory while commiting
Leons Petrazickis [Wed, 14 Jan 2009 22:20:15 +0000 (22:20 +0000)]
(bug 17028) Added support for IBM DB2 database. config/index.php has new interface elements that only show up if PHP has ibm_db2 module enabled. AutoLoader knows about the new DB2 classes. GlobalFunctions has a new constant for DB2 time format. Revision class fixed slightly. Also includes new PHP files containing the Database and Search API implementations for IBM DB2.
X! [Wed, 14 Jan 2009 22:15:50 +0000 (22:15 +0000)]
(bug 17025) Add "fileextension" parameter to meta=siteinfo&siprop=
Roan Kattouw [Wed, 14 Jan 2009 21:39:14 +0000 (21:39 +0000)]
Remove RELEASE-NOTES entries for backported changes (backported in r45682, r45683, r45752), so they aren't listed twice (in 1.14's and 1.15's release notes)
Raimond Spekking [Wed, 14 Jan 2009 21:24:41 +0000 (21:24 +0000)]
Localisation updates for core messages from Betawiki
Roan Kattouw [Wed, 14 Jan 2009 21:22:00 +0000 (21:22 +0000)]
API: Clean up invalid UTF-8 in the result before feeding it to the formatter. This should fix bug 15261 (trimmed multibyte chars) and bug 16262 (chars like \x0f)
Raimond Spekking [Wed, 14 Jan 2009 20:32:25 +0000 (20:32 +0000)]
Follow up r45741 per IAlex comment:
OutputPage::wrapWikiMsg() directly adds the html to OutputPage::$mBodytext rather than returning it.
Brion Vibber [Wed, 14 Jan 2009 20:03:40 +0000 (20:03 +0000)]
Partial revert of r45689 "bug 15470: Don't force-capitalize on Special:Upload. There's no point in throwing errors for any of this crap, really. I think this cleans up the last of the useless errors (for spacing/capitalization) in Special:Upload."
This made the auto-filled destination file name no longer match what we would actually upload as. It would be better to make it *more* accurate (handling normalization of forbidden chars) rather than less accurate.
The particular problem of bug 15470 should be resolved by actually checking how normalization should proceed, not by failing to do it.
Brion Vibber [Wed, 14 Jan 2009 19:56:42 +0000 (19:56 +0000)]
Followup to r45676, r45688, r45689, but this time actually working. :)
For bug 16968 -- don't throw a filename change warning when we auto-capitalize the file per $wgCapitalLinks.
Brion Vibber [Wed, 14 Jan 2009 19:41:30 +0000 (19:41 +0000)]
Revert r45671 "Added "__\" magic word to eat up all whitespace and newlines to the next non-whitespace character, to facilitate writing readable template code where whitespace is significant."
Unplanned syntax change.
Brion Vibber [Wed, 14 Jan 2009 19:14:20 +0000 (19:14 +0000)]
Revert r45642 "* Fixing the caching issue by using -{T|xxx}- syntax (only applies on wiki with LanguageConverter class) * Improving the efficiency by using -{A|xxx}- syntax (only applies on wiki with LanguageConverter class) patches by PhiLiP"
Causes parser test regression and other problems noted in code review.
Raimond Spekking [Wed, 14 Jan 2009 19:01:56 +0000 (19:01 +0000)]
* Wrap success/failure/norev messages into a div with own classes
* Add class "error" for failure/norev
* Remove "span class=error" from some localizations
** Makes default behaviour more consistent over all languages
Aaron Schulz [Wed, 14 Jan 2009 18:14:12 +0000 (18:14 +0000)]
$udp is already on by default, remove arguments
Aaron Schulz [Wed, 14 Jan 2009 18:10:03 +0000 (18:10 +0000)]
Tweak $udp param
Alexandre Emsenhuber [Wed, 14 Jan 2009 18:07:03 +0000 (18:07 +0000)]
(bug 17010) maintenance/namespaceDupes.php now add the suffix recursively if the destination page exists
Aryeh Gregor [Wed, 14 Jan 2009 17:54:52 +0000 (17:54 +0000)]
(bug 16852) padleft and padright now handle multibyte characters and multicharacter pad strings
Patch by RememberTheDot, with adjustments to comments by me
Roan Kattouw [Wed, 14 Jan 2009 17:04:46 +0000 (17:04 +0000)]
API: (bug 16844) Added clcategories parameter to prop=category to make checking whether a certain page is in a certain category more efficient
Aaron Schulz [Wed, 14 Jan 2009 01:45:52 +0000 (01:45 +0000)]
Added notifyRC2UDP() convenience function
Aaron Schulz [Wed, 14 Jan 2009 00:39:43 +0000 (00:39 +0000)]
Fix for r45723
Aaron Schulz [Wed, 14 Jan 2009 00:26:21 +0000 (00:26 +0000)]
Cleaned up single rev page diffs (bug 11527)
X! [Wed, 14 Jan 2009 00:00:40 +0000 (00:00 +0000)]
Fix comment leftover from ApiLogout
Merlijn S. van Deen [Tue, 13 Jan 2009 23:58:45 +0000 (23:58 +0000)]
Fixes for r45514 and r45516:
* Removed deprecated constructs
* Replaced SQL queries with their functional equivalents
** Removed deleteBatch function: equivalent to $dbw->delete()
* Allow slave servers to catch up before deleting more rows
* Fixed to use a new, unbuffered, slave database connection
* This one should actually work
Aaron Schulz [Tue, 13 Jan 2009 21:51:14 +0000 (21:51 +0000)]
Check $wgLang->isRTL()
Alex Z [Tue, 13 Jan 2009 20:28:54 +0000 (20:28 +0000)]
adding newline to end of wfDebug calls where it was missing.
Aaron Schulz [Tue, 13 Jan 2009 18:37:46 +0000 (18:37 +0000)]
(bug 11443) Auto-noindex user/user talk pages for blocked users
Aaron Schulz [Tue, 13 Jan 2009 18:05:43 +0000 (18:05 +0000)]
* Short-circuit userWasLastToEdit()
* Move edit conflict suppress check up
* Code style tweaks
Huji [Tue, 13 Jan 2009 16:25:21 +0000 (16:25 +0000)]
Localisation updates: Correcting a translation
Aaron Schulz [Tue, 13 Jan 2009 15:42:10 +0000 (15:42 +0000)]
(bug 15391) catch DBQueryError too
Rotem Liss [Tue, 13 Jan 2009 14:30:34 +0000 (14:30 +0000)]
Localization update for he.
Raimond Spekking [Tue, 13 Jan 2009 14:15:45 +0000 (14:15 +0000)]
follow up r45698: Add new messages
Aaron Schulz [Tue, 13 Jan 2009 13:46:02 +0000 (13:46 +0000)]
(bug 16969) Add show/hide to Preferences for option on specialpages added by FlaggedRevs
X! [Tue, 13 Jan 2009 02:10:17 +0000 (02:10 +0000)]
* (bug 17002) Add &minor= and &summary= as parameters in the url when editing, to automatically add a summary or a minor edit.
X! [Tue, 13 Jan 2009 01:50:28 +0000 (01:50 +0000)]
(bug 17000) Special:RevisionDelete now checks if the database is locked before trying to delete the edit. Patch by FunPika
Chad Horohoe [Tue, 13 Jan 2009 00:18:40 +0000 (00:18 +0000)]
bug 15470: Don't force-capitalize on Special:Upload. There's no point in throwing errors for any of this crap, really. I think this cleans up the last of the useless errors (for spacing/capitalization) in Special:Upload.
Chad Horohoe [Mon, 12 Jan 2009 23:58:07 +0000 (23:58 +0000)]
Remove this ucfirst() crap. $filtered is already a DB key, so it should've been normalized at Title construction anyway (and if it wasn't, that's Title's fault). Fwiw: we're throwing a dismissable error every time $wgCapitalLinks is enabled and a lowercase name is submitted. Why bother? We handle this silently everywhere else...
Charles Melbye [Mon, 12 Jan 2009 22:52:09 +0000 (22:52 +0000)]
Fix a problem with a protected class method that brought up an error, and also
fixed a typo in the release notes.
Raimond Spekking [Mon, 12 Jan 2009 19:51:49 +0000 (19:51 +0000)]
Add a linebreak per mediawiki.org/wiki/Special:Code/MediaWiki/45052#c1221
Raimond Spekking [Mon, 12 Jan 2009 17:16:47 +0000 (17:16 +0000)]
Bug 16991: Fix regression: Add class for right justify figures again. Class is defined in shared.css already.
Roan Kattouw [Mon, 12 Jan 2009 16:39:04 +0000 (16:39 +0000)]
API: (bug 16858) Revamped list=deletedrevs to make listing deleted contributions and all deleted pages possible. This reintroduces drnamespace (removed earlier because of performance concerns, now implemented efficiently) and introduces druser, drexcludeuser, drfrom, drcontinue and drunique
Chad Horohoe [Mon, 12 Jan 2009 14:28:46 +0000 (14:28 +0000)]
(bug 16968) Don't throw useless warnings on Special:Upload. We don't warn the user about spaces/underscores anywhere else, why bother with it here? And if $wgCapitalLinks is enabled, we should silently deal with it, rather than make the user think they've done something wrong.
Roan Kattouw [Mon, 12 Jan 2009 14:27:28 +0000 (14:27 +0000)]
API: (bug 16629) "edit=:move=" in page.page_restrictions was interpreted incorrectly. Also moved up the code checking for legacy protections to right after the code checking for 'new' protections.
Roan Kattouw [Mon, 12 Jan 2009 14:11:20 +0000 (14:11 +0000)]
API: (bug 16798) Fix for PHP bug 46944 (PHP's JSON formatter encodes certain UTF8 characters incorrectly) by falling back to our own formatter if PHP's is broken. Also fix up our own JSON formatter which also messed up these characters, albeit in a different way. Slightly modified patch by Brad Jorsch.
Niklas Laxström [Mon, 12 Jan 2009 08:11:22 +0000 (08:11 +0000)]
brr, Article::getContent still has "side effects"
Fran Rogers [Mon, 12 Jan 2009 07:50:54 +0000 (07:50 +0000)]
Comment that should've accompanied r45671 (*shakes fist at TortoiseSVN*):
Added "__\" magic word to eat up all whitespace and newlines to the next non-whitespace character, to facilitate writing readable template code where whitespace is significant.
Fran Rogers [Mon, 12 Jan 2009 07:45:34 +0000 (07:45 +0000)]
Niklas Laxström [Sun, 11 Jan 2009 10:02:32 +0000 (10:02 +0000)]
* Plural function for gv, not yet verified to be correct
Alex Z [Sun, 11 Jan 2009 03:42:13 +0000 (03:42 +0000)]
(bug 16965) Follow-up to r45266, also don't record self-links, such as those created by <ref>s.
Aaron Schulz [Sat, 10 Jan 2009 22:07:12 +0000 (22:07 +0000)]
Just use != here
Raimond Spekking [Sat, 10 Jan 2009 20:11:16 +0000 (20:11 +0000)]
Wrap 'searchresulttext' into a div with class
Alexandre Emsenhuber [Sat, 10 Jan 2009 19:41:11 +0000 (19:41 +0000)]
Fix for r45648: only change page title if it's not an empty string (which is the default value)
Shinjiman [Sat, 10 Jan 2009 19:34:16 +0000 (19:34 +0000)]
follow up of r45642, only set page title when it is not on the special namespace
Niklas Laxström [Sat, 10 Jan 2009 17:16:21 +0000 (17:16 +0000)]
* Reverting r45588, causes fatal errors when saving new sections
Shinjiman [Sat, 10 Jan 2009 17:08:13 +0000 (17:08 +0000)]
fixing typo on Cantonese/Chinese loclisation, backport to REL_1_14
Shinjiman [Sat, 10 Jan 2009 16:13:44 +0000 (16:13 +0000)]
* Fixing the caching issue by using -{T|xxx}- syntax (only applies on wiki with LanguageConverter class)
* Improving the efficiency by using -{A|xxx}- syntax (only applies on wiki with LanguageConverter class)
patches by PhiLiP
Chad Horohoe [Sat, 10 Jan 2009 16:10:30 +0000 (16:10 +0000)]
Update comments for $wgForeignFileRepos
Shinjiman [Sat, 10 Jan 2009 15:56:00 +0000 (15:56 +0000)]
Localisation updates Cantonese, Chinese and Old/Late Time Chinese
Aaron Schulz [Sat, 10 Jan 2009 13:41:22 +0000 (13:41 +0000)]
* Added getRawText() convenience function to always get the current revision
* Fix incorrect usage of getContent() which broke if ?oldid was set
Tim Starling [Sat, 10 Jan 2009 00:53:26 +0000 (00:53 +0000)]
* (bug 16937) Show appropriate error message when someone attempts an install on PostgreSQL 7.3 or earlier.
* Fix some issues with the earlier migration of getServerVersion() to numeric only.
Aaron Schulz [Fri, 9 Jan 2009 23:18:47 +0000 (23:18 +0000)]
Minor code style tweaks & cleanup
Aaron Schulz [Fri, 9 Jan 2009 22:49:40 +0000 (22:49 +0000)]
Hide patrol mark if patrolling is disabled
Aaron Schulz [Fri, 9 Jan 2009 18:44:52 +0000 (18:44 +0000)]
Check $wgLogRestrictions for udp-only case