Robert Leverington [Sun, 8 Feb 2009 23:48:48 +0000 (23:48 +0000)]
* Minor adjustment to previous commit, unify ordering (print footer, then debug data).
Robert Leverington [Sun, 8 Feb 2009 23:39:17 +0000 (23:39 +0000)]
* (bug 17408) Add $wgShowDebug configuration variable, displays debug data at the bottom of the main content area when enabled.
Siebrand Mazeland [Sun, 8 Feb 2009 22:54:52 +0000 (22:54 +0000)]
Localisation updates for core messages from translatewiki.net (2009-02-08 22:48 UTC)
Alexandre Emsenhuber [Sun, 8 Feb 2009 19:28:37 +0000 (19:28 +0000)]
(bug 17404) "userrights-interwiki" right was missing in User::$mCoreRights
Siebrand Mazeland [Sun, 8 Feb 2009 15:55:32 +0000 (15:55 +0000)]
* Recommit r39503. (bug 14468) Lines in classic RecentChanges and Watchlist now have classes "mw-line-odd" and "mw-line-even" to make styling using css possible. Implemented in OldChangesList::recentChangesLine using an additional parameter, while keeping behaviour for other uses unchanged. Did not see any use adding this to ChangesList::recentChangesLine.
* keep RELEASE-NOTES lines under 80 characters
Rotem Liss [Sun, 8 Feb 2009 15:34:27 +0000 (15:34 +0000)]
Localization update.
Siebrand Mazeland [Sun, 8 Feb 2009 14:11:44 +0000 (14:11 +0000)]
Fix on r47003. Use the correct message key. Thanks to UV for spotting this.
Siebrand Mazeland [Sun, 8 Feb 2009 09:56:57 +0000 (09:56 +0000)]
(bug 16909) Histlegend message should use live 'cur', 'last' messages instead of duplicating their contents. (not necessarily possible to all localisations)
Siebrand Mazeland [Sat, 7 Feb 2009 23:46:43 +0000 (23:46 +0000)]
(bug 17341) "Powered by MediaWiki" should be on the left on RTL wikis
Siebrand Mazeland [Sat, 7 Feb 2009 21:54:13 +0000 (21:54 +0000)]
Localisation updates for core messages from translatewiki.net (2009-02-07 21:24 UTC)
Rotem Liss [Sat, 7 Feb 2009 18:23:06 +0000 (18:23 +0000)]
Localization update.
Huji [Sat, 7 Feb 2009 15:41:30 +0000 (15:41 +0000)]
Localisation updates: Updating magic words and special page aliases
Alexandre Emsenhuber [Sat, 7 Feb 2009 15:22:01 +0000 (15:22 +0000)]
Correct fix for the E_NOTICE fixed in r46977.
Alexandre Emsenhuber [Sat, 7 Feb 2009 15:16:51 +0000 (15:16 +0000)]
* Fix E_NOTICE
* Add page title
Chad Horohoe [Sat, 7 Feb 2009 15:13:42 +0000 (15:13 +0000)]
Fix another E_NOTICE.
Chad Horohoe [Sat, 7 Feb 2009 14:44:56 +0000 (14:44 +0000)]
Fix E_STRICT per Raymond.
Greg Sabino Mullane [Sat, 7 Feb 2009 05:46:24 +0000 (05:46 +0000)]
Minor alphabetsize.
Shinjiman [Sat, 7 Feb 2009 02:13:54 +0000 (02:13 +0000)]
Localisation updates Cantonese and Chinese
Chad Horohoe [Fri, 6 Feb 2009 23:36:12 +0000 (23:36 +0000)]
Rewrite Special:Export to subclass SpecialPage.
Andrew Garrett [Fri, 6 Feb 2009 22:44:28 +0000 (22:44 +0000)]
Add 'include pages linked to from these pages' to Special:Export and the corresponding transwiki interface.
Siebrand Mazeland [Fri, 6 Feb 2009 22:15:02 +0000 (22:15 +0000)]
Small tweak for 'noarticletext'
Rotem Liss [Fri, 6 Feb 2009 22:03:57 +0000 (22:03 +0000)]
Localization update.
Purodha B Blissenbach [Fri, 6 Feb 2009 21:56:04 +0000 (21:56 +0000)]
Give users a direct link to the page log so as to more easily find
deleted redirects after page moves, or pages moved without automated
redirects, as per a suggestion of user Church of emacs, see:
http://translatewiki.net/wiki/Support#MediaWiki:Noarticletext
Alexandre Emsenhuber [Fri, 6 Feb 2009 21:17:43 +0000 (21:17 +0000)]
Fix for r46460: use "CREATE INDEX ... ON ..." rather than inside "CREATE TABLE" so that SQLite doesn't throw an error when creating new tables
Andrew Garrett [Fri, 6 Feb 2009 20:27:58 +0000 (20:27 +0000)]
Cache preprocessor output in memcached.
Chad Horohoe [Fri, 6 Feb 2009 19:52:35 +0000 (19:52 +0000)]
(bug 17190) User ID on prefs page shouldn't be delimited.
Andrew Garrett [Fri, 6 Feb 2009 17:58:18 +0000 (17:58 +0000)]
Revert "Revert r46880, r46902. After issues with editing rights for pages in r46880, there are issues with moving pages in r46902. Repored by Hojjat, confirmed by me.", with the 'issues' fixed -- the problem was that the 'move-target' action wasn't being handled
properly
Rotem Liss [Fri, 6 Feb 2009 17:04:44 +0000 (17:04 +0000)]
Localization update.
Siebrand Mazeland [Fri, 6 Feb 2009 15:10:42 +0000 (15:10 +0000)]
Make 'nosuchactiontext' more correct.
Aaron Schulz [Fri, 6 Feb 2009 14:42:50 +0000 (14:42 +0000)]
Hide title if DELETED_ACTION is on, but don't worry about type/action, which isn't what we're worried about
Chad Horohoe [Fri, 6 Feb 2009 14:40:56 +0000 (14:40 +0000)]
(bug 17379) GENDER now works with Contributions-title
Aaron Schulz [Fri, 6 Feb 2009 14:35:17 +0000 (14:35 +0000)]
Move cascade below page_restrictions check
Philip Tzou [Fri, 6 Feb 2009 13:21:11 +0000 (13:21 +0000)]
1. Namespace translation for Chinese Language.
2. New function to convert namespace text for display. (only applies on wiki with LanguageConverter class)
Siebrand Mazeland [Fri, 6 Feb 2009 12:27:16 +0000 (12:27 +0000)]
Revert r46880, r46902. After issues with editing rights for pages in r46880, there are issues with moving pages in r46902. Repored by Hojjat, confirmed by me.
Rotem Liss [Fri, 6 Feb 2009 11:51:34 +0000 (11:51 +0000)]
Localization update for he.
Roan Kattouw [Fri, 6 Feb 2009 10:25:51 +0000 (10:25 +0000)]
Fix fatal error in r46885 (add templates parameter to action=import): add missing comma
Andrew Garrett [Fri, 6 Feb 2009 07:24:09 +0000 (07:24 +0000)]
Fix for r46880 -- didn't take into account that the action does not always correspond directly to the required permission.
Tim Starling [Fri, 6 Feb 2009 05:43:26 +0000 (05:43 +0000)]
Fixed missing quotes in r46840
Tim Starling [Fri, 6 Feb 2009 03:46:35 +0000 (03:46 +0000)]
More installer XSS
Aryeh Gregor [Fri, 6 Feb 2009 00:49:49 +0000 (00:49 +0000)]
Treat svn:// URLs as external links by default
By request of Jinx on IRC. We could add boatloads more of these . . .
ssh://, git://, svn+ssh://, probably a lot more.
Chad Horohoe [Fri, 6 Feb 2009 00:21:06 +0000 (00:21 +0000)]
Add r46884 (Import templates via interwiki) to API as well.
Chad Horohoe [Fri, 6 Feb 2009 00:02:44 +0000 (00:02 +0000)]
(bug 15283) Interwiki imports should fetch included templates
Aryeh Gregor [Thu, 5 Feb 2009 23:41:00 +0000 (23:41 +0000)]
Make parserTests.php more git bisect-friendly
Now the following commands can track down parser test regressions (if
you're using git svn, of course):
git bisect start bad-rev good-rev
git bisect run maintenance/parserTests.php --regex 'Test name'
Just type those in (replacing "bad-rev" and "good-rev" with revision
ids, and 'Test name' with a regex that uniquely matches the regressing
test's name), and git will magically find the first bad revision for you
in a couple of minutes. (Then run git bisect reset to get back to
normal.)
All I changed to make this possible was changing the error return code
from 255 (-1) to 1. git bisect treats 1-124 and 126-127 as error codes,
but for some reason doesn't like 128-255.
Danny B [Thu, 5 Feb 2009 23:36:26 +0000 (23:36 +0000)]
* adding type="application/<feedtype>+xml" to links pointing to feeds
Aryeh Gregor [Thu, 5 Feb 2009 23:35:57 +0000 (23:35 +0000)]
Make nofollow exceptions unset for parser tests
This was causing a local parser test regression, because I had
$wgNoFollowDomainExceptions containing wikipedia.org.
Andrew Garrett [Thu, 5 Feb 2009 23:29:19 +0000 (23:29 +0000)]
Move permissions check in getUserPermissionsErrorsInternal up to the top. There's little use in short-circuiting in this method if we do the operations in order from most expensive (and least likely to short-circuit) to least expensive (and most likely to short-circuit).
Andrew Garrett [Thu, 5 Feb 2009 23:04:08 +0000 (23:04 +0000)]
Add Tags special page to "changes" group.
Danny B [Thu, 5 Feb 2009 22:46:26 +0000 (22:46 +0000)]
* adding rel="alternate" to links pointing to printable version or feed
Alexandre Emsenhuber [Thu, 5 Feb 2009 20:55:07 +0000 (20:55 +0000)]
Update Postgres schema per r46460
Niklas Laxström [Thu, 5 Feb 2009 19:55:57 +0000 (19:55 +0000)]
* STFU E_WARN, please review for correcteness
Siebrand Mazeland [Thu, 5 Feb 2009 19:26:39 +0000 (19:26 +0000)]
Localisation updates for core messages from translatewiki.net
* contains the changes related to r46871
Siebrand Mazeland [Thu, 5 Feb 2009 18:26:42 +0000 (18:26 +0000)]
Update RELEASE-NOTES for r46871.
Siebrand Mazeland [Thu, 5 Feb 2009 18:25:36 +0000 (18:25 +0000)]
(bug 6702) Default system messages updated/improved. Processed patches 5327 and 5328 by Michael De La Rue, with comments from Simetrical, and some of my own findings.
* 'nosuchactiontext' clarified
* replace <strong> with wikiML (''')
* replace <i> with wikiML ('')
Siebrand Mazeland [Thu, 5 Feb 2009 18:15:28 +0000 (18:15 +0000)]
Localisation updates for core messages from translatewiki.net (2009-02-05 18:09 UTC)
Roan Kattouw [Thu, 5 Feb 2009 15:46:30 +0000 (15:46 +0000)]
Fix regression from r46845 which broke ApiResult::cleanUpUTF8() and caused an E_NOTICE
Roan Kattouw [Thu, 5 Feb 2009 15:31:06 +0000 (15:31 +0000)]
Fix E_WARNING reported by siebrand
Roan Kattouw [Thu, 5 Feb 2009 15:25:32 +0000 (15:25 +0000)]
RELEASE-NOTES for r46845
Rotem Liss [Thu, 5 Feb 2009 15:17:13 +0000 (15:17 +0000)]
Localization update for he.
Roan Kattouw [Thu, 5 Feb 2009 14:30:59 +0000 (14:30 +0000)]
* API: BREAKING CHANGE: (bug 11430) Return fewer results than the limit in some cases to prevent running out of memory
* This means queries could possibly return fewer results than the limit and still set a query-continue
* Add iicontinue, rvcontinue, cicontinue, incontinue, amfrom to faciliate query-continue for these modules
* Implemented by blocking additions to the ApiResult object if they would make it too large
** Important things like query-continue values and warnings are exempt from this check
** RSS feeds and exported XML are also exempted (size-checking them would be too messy)
** Result size is checked against $wgAPIMaxResultSize, which defaults to 8 MB
For those who really care, per-file details follow:
ApiResult.php:
* Introduced ApiResult::$mSize which keeps track of the result size.
* Introduced ApiResult::size() which calculates an array's size
(which is the sum of the strlen()s of its elements).
* ApiResult::addValue() now checks that the result size stays below
$wgAPIMaxResultSize. If the item won't fit, it won't be added and addValue()
will return false. Callers should check the return value and set a
query-continue if it's false.
* Closed the back door that is ApiResult::getData(): callers can't manipulate
the data array directly anymore so they can't bypass the result size limit.
* Added ApiResult::setIndexedTagName_internal() which will call
setIndexedTagName() on an array already in the result. This is needed for the
'new' order of adding results, which means addValue()ing one result at a time
until you hit the limit or run out, then calling this function to set the tag
name.
* Added ApiResult::disableSizeCheck() and enableSizeCheck() which disable and
enable size checking in addValue(). This is used for stuff like query-continue
elements and warnings which shouldn't count towards the result size.
* Added ApiResult::unsetValue() which removes an element from the result and
decreases $mSize.
ApiBase.php:
* Like ApiResult::getData(), ApiBase::getResultData() no longer returns a
reference.
* Use ApiResult::disableSizeCheck() in ApiBase::setWarning()
ApiQueryBase.php:
* Added ApiQueryBase::addPageSubItem(), which adds page subitems one item
at a time.
* addPageSubItem() and addPageSubItems() now return whether the subitem
fit in the result.
* Use ApiResult::disableSizeCheck() in setContinueEnumParameter()
ApiMain.php:
* Use ApiResult::disableSizeCheck() in ApiMain::substituteResultWithError()
* Use getParameter() rather than $mRequest to obtain requestid
DefaultSettings.php:
* Added $wgAPIMaxResultSize, with a default value of 8 MB
ApiQuery*.php:
* Added results one at a time, and set a query-continue if the result is full.
ApiQueryLangLinks.php and friends:
* Migrated from addPageSubItems() to addPageSubItem(). This eliminates the
need for $lastId.
ApiQueryAllLinks.php, ApiQueryWatchlist.php, ApiQueryAllimages.php, ApiQuerySearch.php:
* Renamed $data to something more appropriate ($pageids, $ids or $titles)
ApiQuerySiteinfo.php:
* Abuse siprop as a query-continue parameter and set it to all props that
couldn't be processed.
ApiQueryRandom.php:
* Doesn't do continuations, because the result is supposed to be random.
* Be smart enough to not run the second query if the results of the first
didn't fit.
ApiQueryImageInfo.php, ApiQueryRevisions.php, ApiQueryCategoryInfo.php, ApiQueryInfo.php:
* Added continue parameter which basically skips the first so many items
ApiQueryBacklinks.php:
* Throw the result in a big array first and addValue() that one element at a time if necessary
** This is necessary because the results aren't retrieved in order
* Introduced $this->pageMap to map namespace and title to page ID
* Rewritten extractRowInfo() and extractRedirRowInfo() a little
* Declared all private member variables explicitly
ApiQueryDeletedrevs.php:
* Use a pagemap just like in Backlinks
* Introduce fake page IDs and keep track of them so we know where to add what
** This doesn't change the output format, because the fake page IDs start at 0 and are consecutive
ApiQueryAllmessages.php:
* Add amfrom to facilitate query-continue
ApiQueryUsers.php:
* Rewrite: put the getOtherUsersInfo() code in execute()
Alexandre Emsenhuber [Thu, 5 Feb 2009 11:59:02 +0000 (11:59 +0000)]
(bug 17366) fix for r46840: Xml::encodeJsVar() already escapes and quotes $conf->DBtype, no need to do it twice
Roan Kattouw [Thu, 5 Feb 2009 11:44:10 +0000 (11:44 +0000)]
* API: Listing (semi-)deleted revisions and log entries (with rev_/log_deleted != 0) as well in prop=revisions and list=logevents, with commenthidden/userhidden/actionhidden/texthidden flags where appropriate
* Still honors the paranoia checks added in r46807
* Use $index consistently in ApiQueryLogEvents
* Some whitespace consistency
Andrew Garrett [Thu, 5 Feb 2009 09:07:33 +0000 (09:07 +0000)]
Fix r46838 per IAlex on Code Review
Tim Starling [Thu, 5 Feb 2009 08:56:35 +0000 (08:56 +0000)]
* Fixed a whole lot of XSS vulnerabilities in the installer. All require a live installer, i.e. with no LocalSettings.php present.
* Implemented taint support in the installer and fixed some false positives (and false negatives)
Niklas Laxström [Thu, 5 Feb 2009 08:13:57 +0000 (08:13 +0000)]
* Remove unneeded includes
Andrew Garrett [Thu, 5 Feb 2009 07:52:19 +0000 (07:52 +0000)]
Avoid E_NOTICE for wikis that give no rights to anonymous users.
Andrew Garrett [Thu, 5 Feb 2009 07:47:46 +0000 (07:47 +0000)]
Add missing mCoreRight 'writeapi' to User.php
Alex Z [Thu, 5 Feb 2009 03:12:03 +0000 (03:12 +0000)]
update parserTests.txt per change to red-link-title message in r46663
Roan Kattouw [Wed, 4 Feb 2009 23:19:18 +0000 (23:19 +0000)]
API: Re-enable ucprop=patrolled and rcshow=patrolled|!patrolled using the timestamp index for the join (thanks to Tim for pointing this out) and a STRAIGHT_JOIN for the inner join case
Roan Kattouw [Wed, 4 Feb 2009 22:56:34 +0000 (22:56 +0000)]
Commit RELEASE-NOTES for r46823
Roan Kattouw [Wed, 4 Feb 2009 22:51:36 +0000 (22:51 +0000)]
API: BREAKING CHANGE: Remove rctitles parameter from list=recentchanges for performance reasons (requests using it time out on enwiki)
Andrew Garrett [Wed, 4 Feb 2009 22:16:35 +0000 (22:16 +0000)]
Add ACTIVEUSERS magic-word, complement to NUMBEROFUSERS.
Roan Kattouw [Wed, 4 Feb 2009 22:12:25 +0000 (22:12 +0000)]
API: Tweak the format for &export to be more XML-friendly. Not a breaking change since &export hasn't gone live yet anyway
Roan Kattouw [Wed, 4 Feb 2009 20:11:27 +0000 (20:11 +0000)]
* API: (bug 17007) Add action=import
* Add intoken=import to prop=info
* Store message key and arguments in WikiErrorMsg
Alexandre Emsenhuber [Wed, 4 Feb 2009 19:43:30 +0000 (19:43 +0000)]
Removed check for empty( $action ), seems to be old register_globals code, but since $action is set in index.php with
$action = $wgRequest->getVal( 'action', 'view' );
it can't match empty() in "normal" conditions
Roan Kattouw [Wed, 4 Feb 2009 19:10:14 +0000 (19:10 +0000)]
* API: (bug 17355) Added auwitheditsonly parameter to list=allusers
* Use consistent code style
Alexandre Emsenhuber [Wed, 4 Feb 2009 19:01:14 +0000 (19:01 +0000)]
* (bug 17231) Transcluding special pages on wikis using language conversion no longer affects the page title
* Whitespaces tweaks in LanguageConverter.php
Please feel free to correct this if it's not the correct solution ;)
Aaron Schulz [Wed, 4 Feb 2009 18:54:59 +0000 (18:54 +0000)]
(bug 17342) Prevent deleted log item leaking (via slow brute-force)
Aaron Schulz [Wed, 4 Feb 2009 18:23:26 +0000 (18:23 +0000)]
(bug 17352) Improve review UI with regards to blocks
Siebrand Mazeland [Wed, 4 Feb 2009 18:09:48 +0000 (18:09 +0000)]
Localisation updates for core messages from translatewiki.net (2009-02-04 18:04 UTC)
Siebrand Mazeland [Wed, 4 Feb 2009 18:00:06 +0000 (18:00 +0000)]
Use "e-mail" consistently.
Roan Kattouw [Wed, 4 Feb 2009 14:18:53 +0000 (14:18 +0000)]
Nitpicking brigade: fix copyright year
Roan Kattouw [Wed, 4 Feb 2009 13:16:12 +0000 (13:16 +0000)]
API: Temporarily disable ucprop=patrolled and ucshow=patrolled|!patrolled because of performance concerns mentioned on bug 17215
Siebrand Mazeland [Wed, 4 Feb 2009 10:26:26 +0000 (10:26 +0000)]
(bug 12937) Update native name for Afar
Tim Starling [Wed, 4 Feb 2009 09:10:32 +0000 (09:10 +0000)]
Added basic support for Wietse Venema's taint feature. Fixed a few instances of shoddy code that it turned up, no actual vulnerabilities yet.
Roan Kattouw [Tue, 3 Feb 2009 16:25:50 +0000 (16:25 +0000)]
* API: (bug 17326) BREAKING CHANGE: Changing output format for prop=imageinfo&iiprop=metadata to something based on name/value pairs. This means we don't use parts of the metadata in attributes anymore, something that caused invalid XML to be output. For more info on the exact format, see the mediawiki-api mailing list
* Removed the spaces-to-underscores hack in the XML formatter
X! [Tue, 3 Feb 2009 13:56:31 +0000 (13:56 +0000)]
When creating a new section, one can specify the 'nosummary' parameter to disallow creation of a section title
Andrew Garrett [Tue, 3 Feb 2009 04:58:08 +0000 (04:58 +0000)]
Re-implementation of r46725 (caching of Cite <references /> output).
This time, I've written a Parser method called serialiseHalfParsedText, which, as the name implies, grabs some half-parsed text, and fixes up all of the strip
markers, and link comments, and makes it safe to import some other time with unserialiseHalfParsedText. I tested it by live-hacking the cache key to be a constant,
and then putting <references /> on a completely different page, where it worked perfectly.
Tim Starling [Tue, 3 Feb 2009 02:07:00 +0000 (02:07 +0000)]
* Support for the "blobs table" LB config parameter
* Don't redefine the constructor
Chad Horohoe [Tue, 3 Feb 2009 00:06:46 +0000 (00:06 +0000)]
(bug 17330) Fix minor warning if $titles is null, which it can be.
Andrew Garrett [Mon, 2 Feb 2009 23:35:12 +0000 (23:35 +0000)]
Add some core rights
Roan Kattouw [Mon, 2 Feb 2009 23:17:07 +0000 (23:17 +0000)]
(bug 17327) Normalize API help texts: remove quotes
Rotem Liss [Mon, 2 Feb 2009 20:23:17 +0000 (20:23 +0000)]
Localization fixes.
Roan Kattouw [Mon, 2 Feb 2009 20:07:33 +0000 (20:07 +0000)]
* API: (bug 17007) Add export functionality to the API
* Accessed through the export and exportnowrap parameters added to action=query
* To facilitate &exportnowrap, add ApiFormatRaw, a formatter that just spits out its input without any formatting (not accessible through &format= of course)
* Fix up the action=query description message to reflect the deprecation of query.php
Raimond Spekking [Mon, 2 Feb 2009 17:52:26 +0000 (17:52 +0000)]
Wrap 'searchresulttext' into a div with class
Redo of r45651: Now without breakage when the message text starts with line-start-markup such as a table or list.
Siebrand Mazeland [Mon, 2 Feb 2009 16:41:16 +0000 (16:41 +0000)]
* (bug 17105) Numeric table sorting broken. Patch contributed by Michael Walsh.
* removed some trailing whitespace in RELEASE-NOTES
Roan Kattouw [Mon, 2 Feb 2009 16:38:40 +0000 (16:38 +0000)]
API: (bug 17317) Added watch parameter to action=protect
Siebrand Mazeland [Mon, 2 Feb 2009 16:29:51 +0000 (16:29 +0000)]
(bug 17283) Remove double URL escaping in show/hide links for log entries and RevisionDeleteForm::__construct. Patch contributed by Mormegil.
Siebrand Mazeland [Mon, 2 Feb 2009 16:21:43 +0000 (16:21 +0000)]
(bug 17236) Suppress 'watch user page link' for IP range blocks. Patch contributed by Mormegil.
Siebrand Mazeland [Mon, 2 Feb 2009 14:54:33 +0000 (14:54 +0000)]
Localisation updates for core messages from Betawiki (2009-02-02 14:46 UTC)
Philip Tzou [Mon, 2 Feb 2009 14:15:21 +0000 (14:15 +0000)]
(bug 3311) Automatic category redirects