lhc/web/wiklou.git
15 years agoLocalisation updates for core messages from translatewiki.net (2009-02-10 23:29 UTC)
Siebrand Mazeland [Tue, 10 Feb 2009 23:39:35 +0000 (23:39 +0000)]
Localisation updates for core messages from translatewiki.net (2009-02-10 23:29 UTC)

15 years agoAPI: Page prop=imageinfo by (title, timestamp) rather than using an offset. Suggested...
Roan Kattouw [Tue, 10 Feb 2009 19:10:58 +0000 (19:10 +0000)]
API: Page prop=imageinfo by (title, timestamp) rather than using an offset. Suggested by Brad Jorsch.

15 years agoLocalization update.
Rotem Liss [Tue, 10 Feb 2009 18:32:23 +0000 (18:32 +0000)]
Localization update.

15 years agotypo from r47092. Spotted by SPQRobin
Raimond Spekking [Tue, 10 Feb 2009 16:36:35 +0000 (16:36 +0000)]
typo from r47092. Spotted by SPQRobin

15 years agoLocalize time zone regions in Special:Preferences
Raimond Spekking [Tue, 10 Feb 2009 16:19:34 +0000 (16:19 +0000)]
Localize time zone regions in Special:Preferences

15 years agoAPI: (bug 17433) Added bot flag to list=watchlist&wlprop=flags output
Roan Kattouw [Tue, 10 Feb 2009 16:01:50 +0000 (16:01 +0000)]
API: (bug 17433) Added bot flag to list=watchlist&wlprop=flags output

15 years agoAPI: Make UTF-8 cleanup actually work; it was broken from the beginning. Apparently...
Roan Kattouw [Tue, 10 Feb 2009 15:56:34 +0000 (15:56 +0000)]
API: Make UTF-8 cleanup actually work; it was broken from the beginning. Apparently I expected array_walk to behave like array_map, which is not the case.

15 years agoOops, accidentally reverted r47053 in m last commit
Alexandre Emsenhuber [Tue, 10 Feb 2009 13:10:43 +0000 (13:10 +0000)]
Oops, accidentally reverted r47053 in m last commit

15 years agoAllow entities so that the " " in pipe-separator are not escaped twice
Alexandre Emsenhuber [Tue, 10 Feb 2009 13:04:18 +0000 (13:04 +0000)]
Allow entities so that the " " in pipe-separator are not escaped twice

15 years agorm deprecated note for MagicWordwgVariableIDs hook since it's the only way for an...
Alexandre Emsenhuber [Tue, 10 Feb 2009 12:48:58 +0000 (12:48 +0000)]
rm deprecated note for MagicWordwgVariableIDs hook since it's the only way for an extension to register a new variable

15 years agoAPI: Page prop=revisions by rev_id or (rev_page, rev_id), depending on mode, because...
Roan Kattouw [Tue, 10 Feb 2009 12:32:22 +0000 (12:32 +0000)]
API: Page prop=revisions by rev_id or (rev_page, rev_id), depending on mode, because the offset system potentially sucks. Suggested by Brad Jorsch

15 years agoLocalisation updates for core messages from translatewiki.net (2009-02-10 06:41 UTC)
Siebrand Mazeland [Tue, 10 Feb 2009 06:54:37 +0000 (06:54 +0000)]
Localisation updates for core messages from translatewiki.net (2009-02-10 06:41 UTC)

15 years agoApply changes made live on Wikimedia cluster related to preprocessor caching to subve...
Andrew Garrett [Mon, 9 Feb 2009 23:18:37 +0000 (23:18 +0000)]
Apply changes made live on Wikimedia cluster related to preprocessor caching to subversion. Patch worked on by Tim Starling and myself.

Changes from the original patch (r46936):
* Add versioning to the cache, so the cache can be purged.
* Only cache preprocessor output for input of over a certain amount (default of 1000 bytes).

15 years agoAdded missing Revision::FOR_THIS_USER flag
Aaron Schulz [Mon, 9 Feb 2009 22:41:02 +0000 (22:41 +0000)]
Added missing Revision::FOR_THIS_USER flag

15 years agoLocalization update.
Rotem Liss [Mon, 9 Feb 2009 22:36:16 +0000 (22:36 +0000)]
Localization update.

15 years agoTweaks for bug 17060
Aaron Schulz [Mon, 9 Feb 2009 22:27:25 +0000 (22:27 +0000)]
Tweaks for bug 17060
* Don't show links to deleted revs in history for anyone (consistency)
* Always hide deleted content from all users; it can be viewed via (show/hide) links

15 years ago* (bug 17311) Add a note beside the gender selection menu to tell users that this...
Raimond Spekking [Mon, 9 Feb 2009 22:07:13 +0000 (22:07 +0000)]
* (bug 17311) Add a note beside the gender selection menu to tell users that this information will be public

15 years agoReplace hard coded pipe separators with locale based
Siebrand Mazeland [Mon, 9 Feb 2009 21:47:00 +0000 (21:47 +0000)]
Replace hard coded pipe separators with locale based

15 years agoLocalization update.
Rotem Liss [Mon, 9 Feb 2009 19:54:27 +0000 (19:54 +0000)]
Localization update.

15 years agoAPI: Query-continue prop=categoryinfo by cat_title rather than offset. Suggested...
Roan Kattouw [Mon, 9 Feb 2009 19:54:25 +0000 (19:54 +0000)]
API: Query-continue prop=categoryinfo by cat_title rather than offset. Suggested by Brad Jorsch

15 years agoFix up r47037, which was itself a fix-up of r46845. Change suggested by Brad Jorsch
Roan Kattouw [Mon, 9 Feb 2009 19:24:28 +0000 (19:24 +0000)]
Fix up r47037, which was itself a fix-up of r46845. Change suggested by Brad Jorsch

15 years ago(bug 7509) Separation strings should be configurable
Siebrand Mazeland [Mon, 9 Feb 2009 17:48:41 +0000 (17:48 +0000)]
(bug 7509) Separation strings should be configurable

Last commit to fix this issue. Related commits are r47028, r47040, r47044. Originally committed as r40953, which was reverted in r40977, because if was too verbose. Language::pipeList, and Language::commaList should have resolved that.

15 years agoPer code review, bit of cleanup to Special:Export.
Chad Horohoe [Mon, 9 Feb 2009 16:34:40 +0000 (16:34 +0000)]
Per code review, bit of cleanup to Special:Export.

15 years agoRemove hard coding of pipe separators in skins. Use Language::pipeList as much as...
Siebrand Mazeland [Mon, 9 Feb 2009 16:24:03 +0000 (16:24 +0000)]
Remove hard coding of pipe separators in skins. Use Language::pipeList as much as possible. Should also make code a bit more readable here and there.

15 years agoRemove a TODO from ApiMove and add a FIXME to SpecialMovepage
Roan Kattouw [Mon, 9 Feb 2009 15:15:49 +0000 (15:15 +0000)]
Remove a TODO from ApiMove and add a FIXME to SpecialMovepage

15 years ago* remove forgotten case of hard coded pipe separator in Pager
Siebrand Mazeland [Mon, 9 Feb 2009 14:31:48 +0000 (14:31 +0000)]
* remove forgotten case of hard coded pipe separator in Pager
* fix bug in GlobalFunctions.php introduced in r47028. pipeList() needs to be fed an array.

15 years ago* API: (bug 17357) Add subpage moving to the API
Roan Kattouw [Mon, 9 Feb 2009 14:16:51 +0000 (14:16 +0000)]
* API: (bug 17357) Add subpage moving to the API
* Added Title::moveSubpages() as a backend function
** Didn't update SpecialMovepage to use this; left to braver souls
* Fix handling of errors on talk page move (will backport)

15 years agoAPI: Fix up r46825:
Roan Kattouw [Mon, 9 Feb 2009 14:07:18 +0000 (14:07 +0000)]
API: Fix up r46825:
* put the tables in the right order
* JOIN on user_text as well for better index usage
* Force the index on the recentchanges table as well
* Don't ORDER BY rev_user_text if it's constant

15 years agoFix some more regressions from r46845 reported by Brad Jorsch on the mediawiki-api...
Roan Kattouw [Mon, 9 Feb 2009 13:28:12 +0000 (13:28 +0000)]
Fix some more regressions from r46845 reported by Brad Jorsch on the mediawiki-api list <lists.wikimedia.org/pipermail/mediawiki-api/2009-February/000924.html>

15 years agoFollow up r47025: Add new message
Raimond Spekking [Mon, 9 Feb 2009 12:39:54 +0000 (12:39 +0000)]
Follow up r47025: Add new message

15 years agoSimple proof-of-principle script to generate a CDB file from the currently loaded...
Tim Starling [Mon, 9 Feb 2009 09:37:13 +0000 (09:37 +0000)]
Simple proof-of-principle script to generate a CDB file from the currently loaded extensions

15 years ago* Update message 'pipe-separator' to have leading and trailing space for English...
Siebrand Mazeland [Mon, 9 Feb 2009 09:13:30 +0000 (09:13 +0000)]
* Update message 'pipe-separator' to have leading and trailing space for English and Occitan, to be able to remove some hard coded spaces
* Take out some hard coded pipe characters. Replace by message or Language::pipeList
* Take out a hard coded comma list SpecialIpblocklist.php. Replace by Language::commaList

15 years agoFallback for Yakut to Russian per request of translator HalanTul
Siebrand Mazeland [Mon, 9 Feb 2009 08:34:55 +0000 (08:34 +0000)]
Fallback for Yakut to Russian per request of translator HalanTul

15 years ago* Tweaks for bug 17052:
Aaron Schulz [Mon, 9 Feb 2009 07:42:54 +0000 (07:42 +0000)]
* Tweaks for bug 17052:
** Made radio button default selection fallback to the next one for deleted revs
** Use deleted diff message rather than showing an ambiguous "empty diff"
* Code style tweaks

15 years ago* Minor adjustment to previous commit, unify ordering (print footer, then debug data).
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).

15 years ago* (bug 17408) Add $wgShowDebug configuration variable, displays debug data at the...
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.

15 years agoLocalisation updates for core messages from translatewiki.net (2009-02-08 22:48 UTC)
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)

15 years ago(bug 17404) "userrights-interwiki" right was missing in User::$mCoreRights
Alexandre Emsenhuber [Sun, 8 Feb 2009 19:28:37 +0000 (19:28 +0000)]
(bug 17404) "userrights-interwiki" right was missing in User::$mCoreRights

15 years ago* Recommit r39503. (bug 14468) Lines in classic RecentChanges and Watchlist now have...
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

15 years agoLocalization update.
Rotem Liss [Sun, 8 Feb 2009 15:34:27 +0000 (15:34 +0000)]
Localization update.

15 years agoFix on r47003. Use the correct message key. Thanks to UV for spotting this.
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.

15 years ago(bug 16909) Histlegend message should use live 'cur', 'last' messages instead of...
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)

15 years ago(bug 17341) "Powered by MediaWiki" should be on the left on RTL wikis
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

15 years agoLocalisation updates for core messages from translatewiki.net (2009-02-07 21:24 UTC)
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)

15 years agoLocalization update.
Rotem Liss [Sat, 7 Feb 2009 18:23:06 +0000 (18:23 +0000)]
Localization update.

15 years agoLocalisation updates: Updating magic words and special page aliases
Huji [Sat, 7 Feb 2009 15:41:30 +0000 (15:41 +0000)]
Localisation updates: Updating magic words and special page aliases

15 years agoCorrect fix for the E_NOTICE fixed in r46977.
Alexandre Emsenhuber [Sat, 7 Feb 2009 15:22:01 +0000 (15:22 +0000)]
Correct fix for the E_NOTICE fixed in r46977.

15 years ago* Fix E_NOTICE
Alexandre Emsenhuber [Sat, 7 Feb 2009 15:16:51 +0000 (15:16 +0000)]
* Fix E_NOTICE
* Add page title

15 years agoFix another E_NOTICE.
Chad Horohoe [Sat, 7 Feb 2009 15:13:42 +0000 (15:13 +0000)]
Fix another E_NOTICE.

15 years agoFix E_STRICT per Raymond.
Chad Horohoe [Sat, 7 Feb 2009 14:44:56 +0000 (14:44 +0000)]
Fix E_STRICT per Raymond.

15 years agoMinor alphabetsize.
Greg Sabino Mullane [Sat, 7 Feb 2009 05:46:24 +0000 (05:46 +0000)]
Minor alphabetsize.

15 years agoLocalisation updates Cantonese and Chinese
Shinjiman [Sat, 7 Feb 2009 02:13:54 +0000 (02:13 +0000)]
Localisation updates Cantonese and Chinese

15 years agoRewrite Special:Export to subclass SpecialPage.
Chad Horohoe [Fri, 6 Feb 2009 23:36:12 +0000 (23:36 +0000)]
Rewrite Special:Export to subclass SpecialPage.

15 years agoAdd 'include pages linked to from these pages' to Special:Export and the correspondin...
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.

15 years agoSmall tweak for 'noarticletext'
Siebrand Mazeland [Fri, 6 Feb 2009 22:15:02 +0000 (22:15 +0000)]
Small tweak for 'noarticletext'

15 years agoLocalization update.
Rotem Liss [Fri, 6 Feb 2009 22:03:57 +0000 (22:03 +0000)]
Localization update.

15 years agoGive users a direct link to the page log so as to more easily find
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

15 years agoFix for r46460: use "CREATE INDEX ... ON ..." rather than inside "CREATE TABLE" so...
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

15 years agoCache preprocessor output in memcached.
Andrew Garrett [Fri, 6 Feb 2009 20:27:58 +0000 (20:27 +0000)]
Cache preprocessor output in memcached.

15 years ago(bug 17190) User ID on prefs page shouldn't be delimited.
Chad Horohoe [Fri, 6 Feb 2009 19:52:35 +0000 (19:52 +0000)]
(bug 17190) User ID on prefs page shouldn't be delimited.

15 years agoRevert "Revert r46880, r46902. After issues with editing rights for pages in r46880...
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

15 years agoLocalization update.
Rotem Liss [Fri, 6 Feb 2009 17:04:44 +0000 (17:04 +0000)]
Localization update.

15 years agoMake 'nosuchactiontext' more correct.
Siebrand Mazeland [Fri, 6 Feb 2009 15:10:42 +0000 (15:10 +0000)]
Make 'nosuchactiontext' more correct.

15 years agoHide title if DELETED_ACTION is on, but don't worry about type/action, which isn...
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

15 years ago(bug 17379) GENDER now works with Contributions-title
Chad Horohoe [Fri, 6 Feb 2009 14:40:56 +0000 (14:40 +0000)]
(bug 17379) GENDER now works with Contributions-title

15 years agoMove cascade below page_restrictions check
Aaron Schulz [Fri, 6 Feb 2009 14:35:17 +0000 (14:35 +0000)]
Move cascade below page_restrictions check

15 years ago1. Namespace translation for Chinese Language.
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)

15 years agoRevert r46880, r46902. After issues with editing rights for pages in r46880, there...
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.

15 years agoLocalization update for he.
Rotem Liss [Fri, 6 Feb 2009 11:51:34 +0000 (11:51 +0000)]
Localization update for he.

15 years agoFix fatal error in r46885 (add templates parameter to action=import): add missing...
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

15 years agoFix for r46880 -- didn't take into account that the action does not always correspond...
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.

15 years agoFixed missing quotes in r46840
Tim Starling [Fri, 6 Feb 2009 05:43:26 +0000 (05:43 +0000)]
Fixed missing quotes in r46840

15 years agoMore installer XSS
Tim Starling [Fri, 6 Feb 2009 03:46:35 +0000 (03:46 +0000)]
More installer XSS

15 years agoTreat svn:// URLs as external links by default
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.

15 years agoAdd r46884 (Import templates via interwiki) to API as well.
Chad Horohoe [Fri, 6 Feb 2009 00:21:06 +0000 (00:21 +0000)]
Add r46884 (Import templates via interwiki) to API as well.

15 years ago(bug 15283) Interwiki imports should fetch included templates
Chad Horohoe [Fri, 6 Feb 2009 00:02:44 +0000 (00:02 +0000)]
(bug 15283) Interwiki imports should fetch included templates

15 years agoMake parserTests.php more git bisect-friendly
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.

15 years ago* adding type="application/<feedtype>+xml" to links pointing to feeds
Danny B [Thu, 5 Feb 2009 23:36:26 +0000 (23:36 +0000)]
* adding type="application/<feedtype>+xml" to links pointing to feeds

15 years agoMake nofollow exceptions unset for parser tests
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.

15 years agoMove permissions check in getUserPermissionsErrorsInternal up to the top. There's...
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).

15 years agoAdd Tags special page to "changes" group.
Andrew Garrett [Thu, 5 Feb 2009 23:04:08 +0000 (23:04 +0000)]
Add Tags special page to "changes" group.

15 years ago* adding rel="alternate" to links pointing to printable version or feed
Danny B [Thu, 5 Feb 2009 22:46:26 +0000 (22:46 +0000)]
* adding rel="alternate" to links pointing to printable version or feed

15 years agoUpdate Postgres schema per r46460
Alexandre Emsenhuber [Thu, 5 Feb 2009 20:55:07 +0000 (20:55 +0000)]
Update Postgres schema per r46460

15 years ago* STFU E_WARN, please review for correcteness
Niklas Laxström [Thu, 5 Feb 2009 19:55:57 +0000 (19:55 +0000)]
* STFU E_WARN, please review for correcteness

15 years agoLocalisation updates for core messages from translatewiki.net
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

15 years agoUpdate RELEASE-NOTES for r46871.
Siebrand Mazeland [Thu, 5 Feb 2009 18:26:42 +0000 (18:26 +0000)]
Update RELEASE-NOTES for r46871.

15 years ago(bug 6702) Default system messages updated/improved. Processed patches 5327 and 5328...
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 ('')

15 years agoLocalisation updates for core messages from translatewiki.net (2009-02-05 18:09 UTC)
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)

15 years agoFix regression from r46845 which broke ApiResult::cleanUpUTF8() and caused an E_NOTICE
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

15 years agoFix E_WARNING reported by siebrand
Roan Kattouw [Thu, 5 Feb 2009 15:31:06 +0000 (15:31 +0000)]
Fix E_WARNING reported by siebrand

15 years agoRELEASE-NOTES for r46845
Roan Kattouw [Thu, 5 Feb 2009 15:25:32 +0000 (15:25 +0000)]
RELEASE-NOTES for r46845

15 years agoLocalization update for he.
Rotem Liss [Thu, 5 Feb 2009 15:17:13 +0000 (15:17 +0000)]
Localization update for he.

15 years ago* API: BREAKING CHANGE: (bug 11430) Return fewer results than the limit in some cases...
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()

15 years ago(bug 17366) fix for r46840: Xml::encodeJsVar() already escapes and quotes $conf-...
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

15 years ago* API: Listing (semi-)deleted revisions and log entries (with rev_/log_deleted !...
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

15 years agoFix r46838 per IAlex on Code Review
Andrew Garrett [Thu, 5 Feb 2009 09:07:33 +0000 (09:07 +0000)]
Fix r46838 per IAlex on Code Review

15 years ago* Fixed a whole lot of XSS vulnerabilities in the installer. All require a live insta...
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)

15 years ago* Remove unneeded includes
Niklas Laxström [Thu, 5 Feb 2009 08:13:57 +0000 (08:13 +0000)]
* Remove unneeded includes

15 years agoAvoid E_NOTICE for wikis that give no rights to anonymous users.
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.

15 years agoAdd missing mCoreRight 'writeapi' to User.php
Andrew Garrett [Thu, 5 Feb 2009 07:47:46 +0000 (07:47 +0000)]
Add missing mCoreRight 'writeapi' to User.php