Raimond Spekking [Thu, 28 Apr 2011 20:38:36 +0000 (20:38 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-28 20:00:00 UTC)
Mark A. Hershberger [Thu, 28 Apr 2011 20:18:32 +0000 (20:18 +0000)]
Provisional fix for Bug #28631 to remove artifacts from GIF. This
seems better in my (very) limited testing than leaving it in, but I'd
like to get more tests.
Trevor Parscal [Thu, 28 Apr 2011 14:58:41 +0000 (14:58 +0000)]
Applied patch supplied in bug #28699 to prevent obscuring content when consoless browsers get a console rendered for them by mediawiki.log. Also adds pre-wrap CSS rule to allow \n to render properly in the console. Thanks for the patch!
Jure Kajzer [Thu, 28 Apr 2011 12:44:19 +0000 (12:44 +0000)]
* close connection in class destructor (unlike MySql, Oracle does not commit on close)
Siebrand Mazeland [Thu, 28 Apr 2011 08:33:49 +0000 (08:33 +0000)]
Update date format default and options.
Siebrand Mazeland [Thu, 28 Apr 2011 08:29:06 +0000 (08:29 +0000)]
Remove unused mdy data format.
Brion Vibber [Thu, 28 Apr 2011 00:18:01 +0000 (00:18 +0000)]
Declare some local vars/funcs as local so they don't stomp on JS global namespaces weirdly
Krinkle [Wed, 27 Apr 2011 22:19:56 +0000 (22:19 +0000)]
Little performance fix and typo fix. Follow-up r86202
Krinkle [Wed, 27 Apr 2011 20:27:26 +0000 (20:27 +0000)]
FU: r87041: Oops
Krinkle [Wed, 27 Apr 2011 20:25:35 +0000 (20:25 +0000)]
Fixes for IE7 (alignment of checkboxes due to double-margin bug on floated elements. The popular display:inline hack doesn't fix this. Removed the margin for now, was collapsed/invisible in most browsers anyway. Covered by the margins on the parent elements.
Raimond Spekking [Wed, 27 Apr 2011 20:22:02 +0000 (20:22 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-27 20:00:00 UTC)
Sam Reed [Wed, 27 Apr 2011 20:05:39 +0000 (20:05 +0000)]
* (bug 28719) Do not call mLinkHolders __destruct explicitly
Patch by Vitaliy Filippov
Mark A. Hershberger [Wed, 27 Apr 2011 19:13:34 +0000 (19:13 +0000)]
revert r76127, r76129, and r83535 b/c I'm backing out the fix for bug #542. Fixing ancient bugs causes grief for many people.
Max Semenik [Wed, 27 Apr 2011 18:22:01 +0000 (18:22 +0000)]
Bug 28039 - Boldface all fatals. Moved showError() from WebInstaller to base class, added its call to all env checks wherever appropriate. Also fixed a fatal in CLI installer when no DB drivers are present.
Rotem Liss [Wed, 27 Apr 2011 11:26:01 +0000 (11:26 +0000)]
Localization fix for he.
Rotem Liss [Wed, 27 Apr 2011 11:22:24 +0000 (11:22 +0000)]
Localization update for he.
Leo Koppelkamm [Wed, 27 Apr 2011 11:02:59 +0000 (11:02 +0000)]
TableSorter: Allow whitespace between digits and percent sign. Fixes Bug 28406
Siebrand Mazeland [Wed, 27 Apr 2011 09:46:37 +0000 (09:46 +0000)]
Update date formats for Indonedian (id). Requested by Ivan Lanin.
Discussed at https://translatewiki.net/wiki/Thread:Support/Time_format
Siebrand Mazeland [Wed, 27 Apr 2011 09:43:19 +0000 (09:43 +0000)]
RELEASE-NOTES TLC:
* break lines at or before 80 characters.
* punctuation for every entry.
* all caps for API and SVG.
* move an entry to language updates.
Raimond Spekking [Tue, 26 Apr 2011 20:24:56 +0000 (20:24 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-26 20:00:00 UTC)
Krinkle [Tue, 26 Apr 2011 20:00:59 +0000 (20:00 +0000)]
jquery.byteLimit fixes:
* 'this' in a fn/prototype context already points to the jQuery object. Calling $(this) is redundant and goes through $.fn.init again untill it reaches the last else case (luckily $.fn.init() has a failsafe case for that, but also makes it harder to spot)
* Adding support for using the current attribute value (to avoid having to duplicate the values between PHP and JavaScript). Fully backwards compatible, I think it's a very handy feature to be able to pass a custom length, but using the maxLength attribute as a default makes sense.
Max Semenik [Tue, 26 Apr 2011 19:23:23 +0000 (19:23 +0000)]
Oops, forgot to revert r86954 in r86973, not needed anymore
Max Semenik [Tue, 26 Apr 2011 19:20:19 +0000 (19:20 +0000)]
Follow-up r86954: make one centralised call to array_values(), there are more breakages of this kind
Krinkle [Tue, 26 Apr 2011 18:18:29 +0000 (18:18 +0000)]
* Fix ancient jumpy bug when clicking the hover-triangle (normally nobody does that, but just tried it for screenreader thing, it's been around for quite some time (href="#": needs preventDefault)
* jQuery chaining :)
* Add bugzilla ref. in comment ("hidden link being clicked")
(Follow-up r86958, r86861)
Krinkle [Tue, 26 Apr 2011 18:01:52 +0000 (18:01 +0000)]
Selectors go from right to left. Starting with a generic 'a' is kind of slow. Also loses the advantage of an id-selector.
* Optimizing by selecting the ID seperately (very fast) and doing a find() within that context (also caching pCactions ).
* while at it:
- caching selector
- aliasing $ to jQuery locally
- Shorthand dom-ready
(Follow-up r86861)
Max Semenik [Tue, 26 Apr 2011 17:29:57 +0000 (17:29 +0000)]
Without this array_values(), user groups will be exported to JSON as object instead of array
Leo Koppelkamm [Tue, 26 Apr 2011 10:08:46 +0000 (10:08 +0000)]
Followup to r86603 per Bug 28681 : Create public array mw.toolbar.buttons. User scripts can modify it, until it's written to the DOM on doc.ready
Jure Kajzer [Tue, 26 Apr 2011 07:17:33 +0000 (07:17 +0000)]
* typo from r86708
Sam Reed [Mon, 25 Apr 2011 22:56:08 +0000 (22:56 +0000)]
* (bug 28702) Undefined offset in ApiParamInfo.php
Followup r85758 (bug 28254)
If no DFLT is set, fall back to "null", which means a string parameter
Sam Reed [Mon, 25 Apr 2011 22:41:54 +0000 (22:41 +0000)]
More parameter and return type hints
Sam Reed [Mon, 25 Apr 2011 21:41:02 +0000 (21:41 +0000)]
Followup r86905, after saving GlobalFunctions.php
Sam Reed [Mon, 25 Apr 2011 21:38:48 +0000 (21:38 +0000)]
Move 5 more classes into cache/
Ryan Kaldari [Mon, 25 Apr 2011 21:37:32 +0000 (21:37 +0000)]
fix for bug 28573 - in printable version centered images are not centered
Sam Reed [Mon, 25 Apr 2011 21:33:38 +0000 (21:33 +0000)]
Move 3 files into cache directory
Move in AutoLoader to cache section also
Sam Reed [Mon, 25 Apr 2011 21:25:45 +0000 (21:25 +0000)]
Type hinting
Braces
Remove extra whitespace
Sam Reed [Mon, 25 Apr 2011 21:18:17 +0000 (21:18 +0000)]
Followup r86898, fix $wgProxyScriptPath
Sam Reed [Mon, 25 Apr 2011 21:04:45 +0000 (21:04 +0000)]
proxy_check.php is probably useful to keep around, but it's not really an includes script
Move it to maintenance/proxy_check.php
Brion Vibber [Mon, 25 Apr 2011 21:00:49 +0000 (21:00 +0000)]
* (bug 28627) External link normalization now handles file: URL cases without throwing notice warnings.
Added some test cases for wfMakeUrlIndex() to GlobalTests (tweaks $wgUrlProtocols to toss in file:// support so it can test them).
Needs more cases for other URL styles probably; some of the more pathological file: URL cases still won't normalize really cleanly but will go through the function without exploding. The most-needed variants will be the Windows/IE-compatible ones I think -- so file:///c:/foo or file://server/foo.
Raimond Spekking [Mon, 25 Apr 2011 19:45:47 +0000 (19:45 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-25 19:23:00 UTC)
Robin Pepermans [Mon, 25 Apr 2011 19:00:53 +0000 (19:00 +0000)]
Fix for r86670: properly convert uppercase latin to syllabics
Siebrand Mazeland [Mon, 25 Apr 2011 18:20:53 +0000 (18:20 +0000)]
Revert r86872: Breaks LiquidThreads page moves with the below failure. Threads are lost and nowhere to be found any more.
[25-Apr-2011 18:12:45] /wiki/Special:MoveThread/Thread:User_talk:Siebrand/test/One_new_message: Exception: MWNamespace::getTalk does not make any sense for given namespace -1
#0 /www/w/includes/Namespace.php(81): MWNamespace::isMethodValidFor(-1, 'MWNamespace::ge...')
#1 /www/w/includes/WatchedItem.php(73): MWNamespace::getTalk(-1)
#2 /www/w/includes/User.php(2304): WatchedItem->addWatch()
#3 /www/w/includes/actions/WatchAction.php(53): User->addWatch(Object(Title))
#4 /www/w/includes/Action.php(376): WatchAction->onView()
#5 /www/w/extensions/LiquidThreads/classes/Thread.php(115): FormlessAction->execute()
#6 /www/w/extensions/LiquidThreads/classes/Thread.php(435): Thread::create(Object(Article), Object(Article), NULL, 1, 'One new message')
#7 /www/w/extensions/LiquidThreads/classes/Thread.php(414): Thread->leaveTrace('move test', Object(Title), Object(Title))
#8 /www/w/extensions/LiquidThreads/pages/SpecialMoveThread.php(107): Thread->moveToPage(Object(Title), 'move test', true)
#9 [internal function]: SpecialMoveThread->trySubmit(Array)
#10 /www/w/includes/HTMLForm.php(279): call_user_func(Array, Array)
#11 /www/w/includes/HTMLForm.php(228): HTMLForm->trySubmit()
#12 /www/w/includes/HTMLForm.php(242): HTMLForm->tryAuthorizedSubmit()
#13 /www/w/extensions/LiquidThreads/pages/ThreadActionPage.php(37): HTMLForm->show()
#14 /www/w/includes/SpecialPageFactory.php(459): ThreadActionPage->execute('Thread:User_tal...')
#15 /www/w/includes/Wiki.php(252): SpecialPageFactory::executePath(Object(Title), Object(RequestContext))
#16 /www/w/includes/Wiki.php(98): MediaWiki->handleSpecialCases()
#17 /www/w/index.php(145): MediaWiki->performRequestForTitle(NULL)
#18 {main}
Happy-melon [Mon, 25 Apr 2011 17:37:43 +0000 (17:37 +0000)]
Implement an interface and abstract class to hold the widely-reused get(Request|User|Title|Lang|Skin|Output) accessors for objects acting as a context source. Article is rather messier because both getTitle() and getUser() are in use for other things, and Article::$mTitle is in extremely wide use both within Article.php and outside.
Happy-melon [Mon, 25 Apr 2011 17:34:30 +0000 (17:34 +0000)]
Type hinting and documentation tweaks. This file is actually pretty good...
Sam Reed [Mon, 25 Apr 2011 14:46:42 +0000 (14:46 +0000)]
* (bug 27249) "Installed software" table in Special:Version should always be left-to-right
Patch by Jan Paul Posma
Roan Kattouw [Mon, 25 Apr 2011 14:08:01 +0000 (14:08 +0000)]
(bug 24298) Make dropdown menus in Vector more accessible by expanding and collapsing them when the hidden link behind the dropdown arrow receives a click event (triggered by an enter or space bar key press in the typical use case) and changing the appearance of the arrow when the hidden link behind it is focused. Patch by Jan Paul Posma
--This line, and those behind, will be ignored--
M phase3/skins/Vector.php
M phase3/skins/vector/images/arrow-down-icon.png
M phase3/skins/vector/screen.css
AM phase3/skins/vector/vector.js
M phase3/resources/Resources.php
Max Semenik [Mon, 25 Apr 2011 14:05:57 +0000 (14:05 +0000)]
Rm all mentions of "this module" in API action descriptions. They are supposed to be read by API users, not MW coders, thus internal terminology shouldn't be used here.
Leo Koppelkamm [Mon, 25 Apr 2011 13:51:54 +0000 (13:51 +0000)]
Add |alt= option for galleries ( Bug 18682 ). Recommit of r86749, with nested |alt= now fixed. Patch by Jan Paul Posma
Max Semenik [Mon, 25 Apr 2011 13:44:54 +0000 (13:44 +0000)]
Fix typo in description
Leo Koppelkamm [Mon, 25 Apr 2011 13:18:09 +0000 (13:18 +0000)]
Followup to r86854: fix $ object
Leo Koppelkamm [Mon, 25 Apr 2011 13:15:26 +0000 (13:15 +0000)]
Followup to r86108: jQuery tries to be too smart and converts the string to a number, which breaks the value parser
Happy-melon [Mon, 25 Apr 2011 11:59:31 +0000 (11:59 +0000)]
Documentation, type-hinting and deprecated functions in Article.php.
Roan Kattouw [Mon, 25 Apr 2011 11:39:30 +0000 (11:39 +0000)]
(bug 16921) Add JavaScript-based enforcing of byte limits on move and protection forms. Patch by Jan Paul Posma
Roan Kattouw [Mon, 25 Apr 2011 11:35:40 +0000 (11:35 +0000)]
(bug 21180) Move the old toolbar below the summary input to match the new toolbar
Roan Kattouw [Mon, 25 Apr 2011 10:17:30 +0000 (10:17 +0000)]
Followup r86625: per CR, use loose comparison against null instead of typeof foo != 'undefined' because jQuery 1.4 (which MW uses) actually returns null for unset .data() keys, but 1.5 returns undefined.
Mark A. Hershberger [Mon, 25 Apr 2011 03:20:17 +0000 (03:20 +0000)]
Remove hints since $this->isNew was not possible anywhere else.
Mark A. Hershberger [Mon, 25 Apr 2011 02:20:04 +0000 (02:20 +0000)]
clean up eol w/s
Alexandre Emsenhuber [Sun, 24 Apr 2011 20:14:43 +0000 (20:14 +0000)]
In DBConnectionError:
* Reimplement msg() instead of forcing useMessageCache() to false
* Use that version of msg() instead of always checking for $wgLang
* Simplify a bit fileCachedPage()
Raimond Spekking [Sun, 24 Apr 2011 19:59:30 +0000 (19:59 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-24 21:19:26 UTC)
Alexandre Emsenhuber [Sun, 24 Apr 2011 18:47:36 +0000 (18:47 +0000)]
Fix comment, language is handled correctly with parse and parseinline since r79642
Raimond Spekking [Sun, 24 Apr 2011 17:58:56 +0000 (17:58 +0000)]
Followup r86764: don't parse the comment. Spotted by SPQRobin@Translatewiki and fixed the help of Ialex
Alexandre Emsenhuber [Sun, 24 Apr 2011 16:53:46 +0000 (16:53 +0000)]
* Use wfMsgNoTrans() instead of wfMsgReal()
* Simplify getPageTitle()
* Remove a useless call to getPageTitle(), <img> tag does not have content
Happy-melon [Sun, 24 Apr 2011 10:50:51 +0000 (10:50 +0000)]
Follow-up r86775: restub $wgLang. Not because it's a good idea, but because I can't see how to avoid the circular dependencies on it *without* stubbing it. Probably easier to just continue the drive to deprecate the global variable altogether.
Raimond Spekking [Sat, 23 Apr 2011 22:13:36 +0000 (22:13 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-23 21:50:00 UTC)
Sam Reed [Sat, 23 Apr 2011 21:40:52 +0000 (21:40 +0000)]
Tidy up some unused variables and such
Sam Reed [Sat, 23 Apr 2011 21:32:37 +0000 (21:32 +0000)]
Move patch contributors to the right section
Remove Jan Paul and Derk-Jan Hartman from patch contributors as they're developers
Move diebuche and bawolff
Happy-melon [Sat, 23 Apr 2011 21:27:24 +0000 (21:27 +0000)]
Some type-hinting and documentation in HTMLForm.php
Happy-melon [Sat, 23 Apr 2011 21:26:54 +0000 (21:26 +0000)]
Follow-up r86347: the $mFile written to in SpecialUndelete is not actually the 'same' variable as is used in SpecialPage (SpecialPage->mFile is the php file where wfEvilSpecialPageFunction() can be found, while SpecialUndelete->mFile is a deleted file), but it still complains about private access unless it's redeclared.
Sam Reed [Sat, 23 Apr 2011 21:26:10 +0000 (21:26 +0000)]
Add missing semicolon from r86750
Mark A. Hershberger [Sat, 23 Apr 2011 21:26:04 +0000 (21:26 +0000)]
* Add preprocessor tests that Bergi supplied for Bug #28642
* Add Bergi to CREDITS
Mark A. Hershberger [Sat, 23 Apr 2011 21:21:02 +0000 (21:21 +0000)]
Use assertStringEqualsFile in place of assertEquals and reading the file.
Mark A. Hershberger [Sat, 23 Apr 2011 21:18:50 +0000 (21:18 +0000)]
missed some w/s
Mark A. Hershberger [Sat, 23 Apr 2011 21:18:22 +0000 (21:18 +0000)]
w/s cleanup
Sam Reed [Sat, 23 Apr 2011 21:17:18 +0000 (21:17 +0000)]
Fix code accidentally committed in r86735
Mark A. Hershberger [Sat, 23 Apr 2011 19:57:59 +0000 (19:57 +0000)]
follow up r86752 with some content for the result of “Gallery with wikitext inside caption”
Krinkle [Sat, 23 Apr 2011 19:38:53 +0000 (19:38 +0000)]
Change getUrl to getFullUrl for {{filepath:Filename.jpg}} of non-thumbd local files. This way it matches the paths for thumbnails and for foreign files. (bug 28618)
Mark A. Hershberger [Sat, 23 Apr 2011 19:28:35 +0000 (19:28 +0000)]
random w/s cleanup
Mark A. Hershberger [Sat, 23 Apr 2011 18:58:03 +0000 (18:58 +0000)]
* Fixes Bug #27860 - Minor edit after clicking 'new section' tab
Patch from Jan Paul Posma of which he writes:
This patch hides the minor edit checkbox when editing a new page or new
section, and makes sure it cannot be enabled by injecting the form value in
HTML.
* Add Jan Paul Posma to CREDITs re Reedy's earlier comments.
* Add note about isNew to other possible places that it can be used.
Alexandre Emsenhuber [Sat, 23 Apr 2011 17:42:34 +0000 (17:42 +0000)]
wfMsgReal() -> wfMsg() or wfMsgNoTrans()
Sam Reed [Sat, 23 Apr 2011 16:57:03 +0000 (16:57 +0000)]
* (bug 28560) list=deletedrevs should die, if combination of param is invalid
No checking for NS or unique in the mode 1/2 checks, as they have defaults of 0 and false, which is impossible to determine if they had been set as that, or just using the defaults. They are ignored in the code still on the incorrect path
Update usage of dir
Alexandre Emsenhuber [Sat, 23 Apr 2011 16:27:29 +0000 (16:27 +0000)]
Don't double escape html entities for messages obtained through Message::escaped().
Since we require PHP 5.2.3+ and htmlspecialchars() has a fourth parameter to prevent double escaping since... PHP 5.2.3 (per manual), let's use it
Robin Pepermans [Sat, 23 Apr 2011 16:18:19 +0000 (16:18 +0000)]
Remove unused messages 'recentchangesall' (removed in r36682) and 'imagelistall' (removed in r14091). Not found in current source code.
Sam Reed [Sat, 23 Apr 2011 16:03:40 +0000 (16:03 +0000)]
* (bug 27344) add drprefix param to list=deletedrevs
Alexandre Emsenhuber [Sat, 23 Apr 2011 15:51:21 +0000 (15:51 +0000)]
Call $wgRequest->getLimitOffset() directly instead of wfCheckLimits()
Happy-melon [Sat, 23 Apr 2011 15:19:38 +0000 (15:19 +0000)]
Stop stubbing $wgLang and $wgContLang. There are no major code paths which do not call either $wgLang or $wgContLang at least once. All index.php calls unstub $wgContLang from MediaWiki::parseTitle() except in the edgecase of viewing pages referenced only by "curid=123", and since those will end up calling OutputPage::output() they will eventually be unstubbed at some point as well. All calls through load.php unstub $wgLang in ResourceLoaderContext::getLanguage() from ResouceLoader::respond() --> ResourceLoader::preloadModuleInfo(). All calls through api.php unstub $wgContLang in ApiResult::cleanUpUTF8() from ApiMain::printResult().
Sam Reed [Sat, 23 Apr 2011 14:24:42 +0000 (14:24 +0000)]
Followup r86763, and also fix ancient revision from SpecialProtectedpages (Aaron at fault), use $db->getInfinity()
Happy-melon [Sat, 23 Apr 2011 14:16:12 +0000 (14:16 +0000)]
Document SpecialPageFactory::getAliasList()
Sam Reed [Sat, 23 Apr 2011 14:11:43 +0000 (14:11 +0000)]
Documentation
Fix call to undefined self::getTitleFor
Happy-melon [Sat, 23 Apr 2011 13:55:27 +0000 (13:55 +0000)]
Documentation and type hinting.
Raimond Spekking [Sat, 23 Apr 2011 13:40:04 +0000 (13:40 +0000)]
Simplify a bit to make nicer links: Special:ListFiles/Username
Sam Reed [Sat, 23 Apr 2011 13:29:11 +0000 (13:29 +0000)]
Add some more spacing due to long parameter names
Use str_repeat for ease rather than " " etc
Fix MiserMode to MiserMode
Raimond Spekking [Sat, 23 Apr 2011 13:23:08 +0000 (13:23 +0000)]
Embrace comment with () only when really needed. In Special:ListFiles and ImagePage the comment is shown alone in a table cell -> no () needed
Sam Reed [Sat, 23 Apr 2011 13:07:40 +0000 (13:07 +0000)]
* (bug 26882) Allow listing of indefinite protections with the api
Swap some !empty for count
Raimond Spekking [Sat, 23 Apr 2011 12:18:42 +0000 (12:18 +0000)]
Followup r86670: Define section header for new variant
Sam Reed [Sat, 23 Apr 2011 11:50:20 +0000 (11:50 +0000)]
* (bug 28558) Add iw_api and iw_wikiid to meta=siteinfo&siprop=interwikimap
Waiting on bug 28673 to be merged to core and be used, before this is of any use, but it's done anyway
Sam Reed [Sat, 23 Apr 2011 11:12:31 +0000 (11:12 +0000)]
* (bug 28672) give information about misermode on api
Leo Koppelkamm [Sat, 23 Apr 2011 09:55:42 +0000 (09:55 +0000)]
Reverting r86749: The alt stuff is far too simplistic. One way to fix it would be to generalize makeImage() in the parser to process gallery params as well, but I don't have time to that now
Max Semenik [Sat, 23 Apr 2011 09:49:52 +0000 (09:49 +0000)]
SQLite compatibility for patch-profiling.sql
Leo Koppelkamm [Sat, 23 Apr 2011 07:27:45 +0000 (07:27 +0000)]
Add ability to use add alt texts for images in galleries ( Bug 18682 ). Patch by Jan Paul Posma. Also cleaned up some comments and var names
Daniel Friesen [Sat, 23 Apr 2011 03:10:57 +0000 (03:10 +0000)]
Allow rows missing iw_trans or iw_local to be considered valid.
Daniel Friesen [Sat, 23 Apr 2011 02:35:21 +0000 (02:35 +0000)]
Move the Interwiki class to includes/interwiki/ to make way for a more flexible Interwiki system. Do this first since svn doesn't support editing and moving a file in the same commit.