lhc/web/wiklou.git
13 years agoType hinting
Sam Reed [Mon, 25 Apr 2011 21:25:45 +0000 (21:25 +0000)]
Type hinting

Braces

Remove extra whitespace

13 years agoFollowup r86898, fix $wgProxyScriptPath
Sam Reed [Mon, 25 Apr 2011 21:18:17 +0000 (21:18 +0000)]
Followup r86898, fix $wgProxyScriptPath

13 years agoproxy_check.php is probably useful to keep around, but it's not really an includes...
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

13 years ago* (bug 28627) External link normalization now handles file: URL cases without throwin...
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.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
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)

13 years agoFix for r86670: properly convert uppercase latin to syllabics
Robin Pepermans [Mon, 25 Apr 2011 19:00:53 +0000 (19:00 +0000)]
Fix for r86670: properly convert uppercase latin to syllabics

13 years agoRevert r86872: Breaks LiquidThreads page moves with the below failure. Threads are...
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}

13 years agoImplement an interface and abstract class to hold the widely-reused get(Request|User...
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.

13 years agoType hinting and documentation tweaks. This file is actually pretty good...
Happy-melon [Mon, 25 Apr 2011 17:34:30 +0000 (17:34 +0000)]
Type hinting and documentation tweaks.  This file is actually pretty good...

13 years ago* (bug 27249) "Installed software" table in Special:Version should always be left...
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

13 years ago(bug 24298) Make dropdown menus in Vector more accessible by expanding and collapsing...
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

13 years agoRm all mentions of "this module" in API action descriptions. They are supposed to...
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.

13 years agoAdd |alt= option for galleries ( Bug 18682 ). Recommit of r86749, with nested |alt...
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

13 years agoFix typo in description
Max Semenik [Mon, 25 Apr 2011 13:44:54 +0000 (13:44 +0000)]
Fix typo in description

13 years agoFollowup to r86854: fix $ object
Leo Koppelkamm [Mon, 25 Apr 2011 13:18:09 +0000 (13:18 +0000)]
Followup to r86854: fix $ object

13 years agoFollowup to r86108: jQuery tries to be too smart and converts the string to a number...
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

13 years agoDocumentation, type-hinting and deprecated functions in Article.php.
Happy-melon [Mon, 25 Apr 2011 11:59:31 +0000 (11:59 +0000)]
Documentation, type-hinting and deprecated functions in Article.php.

13 years ago(bug 16921) Add JavaScript-based enforcing of byte limits on move and protection...
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

13 years ago(bug 21180) Move the old toolbar below the summary input to match the new toolbar
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

13 years agoFollowup r86625: per CR, use loose comparison against null instead of typeof foo...
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.

13 years agoRemove hints since $this->isNew was not possible anywhere else.
Mark A. Hershberger [Mon, 25 Apr 2011 03:20:17 +0000 (03:20 +0000)]
Remove hints since $this->isNew was not possible anywhere else.

13 years agoclean up eol w/s
Mark A. Hershberger [Mon, 25 Apr 2011 02:20:04 +0000 (02:20 +0000)]
clean up eol w/s

13 years agoIn DBConnectionError:
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()

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
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)

13 years agoFix comment, language is handled correctly with parse and parseinline since r79642
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

13 years agoFollowup r86764: don't parse the comment. Spotted by SPQRobin@Translatewiki and fixed...
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

13 years ago* Use wfMsgNoTrans() instead of wfMsgReal()
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

13 years agoFollow-up r86775: restub $wgLang. Not because it's a good idea, but because I can...
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.

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
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)

13 years agoTidy up some unused variables and such
Sam Reed [Sat, 23 Apr 2011 21:40:52 +0000 (21:40 +0000)]
Tidy up some unused variables and such

13 years agoMove patch contributors to the right section
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

13 years agoSome type-hinting and documentation in HTMLForm.php
Happy-melon [Sat, 23 Apr 2011 21:27:24 +0000 (21:27 +0000)]
Some type-hinting and documentation in HTMLForm.php

13 years agoFollow-up r86347: the $mFile written to in SpecialUndelete is not actually the 'same...
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.

13 years agoAdd missing semicolon from r86750
Sam Reed [Sat, 23 Apr 2011 21:26:10 +0000 (21:26 +0000)]
Add missing semicolon from r86750

13 years ago* Add preprocessor tests that Bergi supplied for Bug #28642
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

13 years agoUse assertStringEqualsFile in place of assertEquals and reading the file.
Mark A. Hershberger [Sat, 23 Apr 2011 21:21:02 +0000 (21:21 +0000)]
Use assertStringEqualsFile in place of assertEquals and reading the file.

13 years agomissed some w/s
Mark A. Hershberger [Sat, 23 Apr 2011 21:18:50 +0000 (21:18 +0000)]
missed some w/s

13 years agow/s cleanup
Mark A. Hershberger [Sat, 23 Apr 2011 21:18:22 +0000 (21:18 +0000)]
w/s cleanup

13 years agoFix code accidentally committed in r86735
Sam Reed [Sat, 23 Apr 2011 21:17:18 +0000 (21:17 +0000)]
Fix code accidentally committed in r86735

13 years agofollow up r86752 with some content for the result of “Gallery with wikitext inside...
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”

13 years agoChange getUrl to getFullUrl for {{filepath:Filename.jpg}} of non-thumbd local files...
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)

13 years agorandom w/s cleanup
Mark A. Hershberger [Sat, 23 Apr 2011 19:28:35 +0000 (19:28 +0000)]
random w/s cleanup

13 years ago* Fixes Bug #27860 - Minor edit after clicking 'new section' tab
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.

13 years agowfMsgReal() -> wfMsg() or wfMsgNoTrans()
Alexandre Emsenhuber [Sat, 23 Apr 2011 17:42:34 +0000 (17:42 +0000)]
wfMsgReal() -> wfMsg() or wfMsgNoTrans()

13 years ago* (bug 28560) list=deletedrevs should die, if combination of param is invalid
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

13 years agoDon't double escape html entities for messages obtained through Message::escaped().
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

13 years agoRemove unused messages 'recentchangesall' (removed in r36682) and 'imagelistall'...
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.

13 years ago* (bug 27344) add drprefix param to list=deletedrevs
Sam Reed [Sat, 23 Apr 2011 16:03:40 +0000 (16:03 +0000)]
* (bug 27344) add drprefix param to list=deletedrevs

13 years agoCall $wgRequest->getLimitOffset() directly instead of wfCheckLimits()
Alexandre Emsenhuber [Sat, 23 Apr 2011 15:51:21 +0000 (15:51 +0000)]
Call $wgRequest->getLimitOffset() directly instead of wfCheckLimits()

13 years agoStop stubbing $wgLang and $wgContLang. There are no major code paths which do not...
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().

13 years agoFollowup r86763, and also fix ancient revision from SpecialProtectedpages (Aaron...
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()

13 years agoDocument SpecialPageFactory::getAliasList()
Happy-melon [Sat, 23 Apr 2011 14:16:12 +0000 (14:16 +0000)]
Document SpecialPageFactory::getAliasList()

13 years agoDocumentation
Sam Reed [Sat, 23 Apr 2011 14:11:43 +0000 (14:11 +0000)]
Documentation

Fix call to undefined self::getTitleFor

13 years agoDocumentation and type hinting.
Happy-melon [Sat, 23 Apr 2011 13:55:27 +0000 (13:55 +0000)]
Documentation and type hinting.

13 years agoSimplify a bit to make nicer links: Special:ListFiles/Username
Raimond Spekking [Sat, 23 Apr 2011 13:40:04 +0000 (13:40 +0000)]
Simplify a bit to make nicer links: Special:ListFiles/Username

13 years agoAdd some more spacing due to long parameter names
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

13 years agoEmbrace comment with () only when really needed. In Special:ListFiles and ImagePage...
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

13 years ago* (bug 26882) Allow listing of indefinite protections with the api
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

13 years agoFollowup r86670: Define section header for new variant
Raimond Spekking [Sat, 23 Apr 2011 12:18:42 +0000 (12:18 +0000)]
Followup r86670: Define section header for new variant

13 years ago* (bug 28558) Add iw_api and iw_wikiid to meta=siteinfo&siprop=interwikimap
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

13 years ago* (bug 28672) give information about misermode on api
Sam Reed [Sat, 23 Apr 2011 11:12:31 +0000 (11:12 +0000)]
* (bug 28672) give information about misermode on api

13 years agoReverting r86749: The alt stuff is far too simplistic. One way to fix it would be...
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

13 years agoSQLite compatibility for patch-profiling.sql
Max Semenik [Sat, 23 Apr 2011 09:49:52 +0000 (09:49 +0000)]
SQLite compatibility for patch-profiling.sql

13 years agoAdd ability to use add alt texts for images in galleries ( Bug 18682 ). Patch by...
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

13 years agoAllow rows missing iw_trans or iw_local to be considered valid.
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.

13 years agoMove the Interwiki class to includes/interwiki/ to make way for a more flexible Inter...
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.

13 years agoBreaking the 'math' table setup out to Math extension. Should be the last main step...
Brion Vibber [Fri, 22 Apr 2011 21:37:16 +0000 (21:37 +0000)]
Breaking the 'math' table setup out to Math extension. Should be the last main step in extension-ification of the math options!

The 'math' table will no longer be created on a default install unless you've explicitly enabled the Math plugin at install time; the usual update.php procedure will add it in.

Postgres, Oracle, MSSQL, and DB2 variants are included -- broken out from the core files -- but have not been tested.

I know there has been some code duplication in parser test infrastructure but could only find one instance of the parser test temporary table setup to remove the 'math' table from (the extension adds it back via the hook). If the phpunit-based runner breaks, please track it down and fix it there too.

13 years agoUse wfMsgExt() instead of wfMsgReal()
Alexandre Emsenhuber [Fri, 22 Apr 2011 21:05:47 +0000 (21:05 +0000)]
Use wfMsgExt() instead of wfMsgReal()

13 years agoImplemented param tracking for hook users, feels a bit hackish
Niklas Laxström [Fri, 22 Apr 2011 20:25:21 +0000 (20:25 +0000)]
Implemented param tracking for hook users, feels a bit hackish

13 years agoFollowup to r86312
Sam Reed [Fri, 22 Apr 2011 20:17:21 +0000 (20:17 +0000)]
Followup to r86312

<ialex> Reedy: that rev is breaking usage of {{PAGENAME}} in messages, such as in MediaWiki:Noarticles

Allowing optional passing in of a Title object (like it may be set in Message), but if it's not set, or not a title object, fall back and use $wgTitle (I'm sorry!)

13 years agoCleanup next/prev links on special:search. Removed unused mPrefix.
Niklas Laxström [Fri, 22 Apr 2011 20:12:29 +0000 (20:12 +0000)]
Cleanup next/prev links on special:search. Removed unused mPrefix.

13 years agoFollow-up r86732: really mark it as deprecated ;)
Alexandre Emsenhuber [Fri, 22 Apr 2011 19:54:01 +0000 (19:54 +0000)]
Follow-up r86732: really mark it as deprecated ;)

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Fri, 22 Apr 2011 19:41:16 +0000 (19:41 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-22 19:12:00 UTC)

13 years agoDoc comment updates for CoreTagHooks callback functions + Parser::setHook() & Parser...
Brion Vibber [Fri, 22 Apr 2011 19:06:52 +0000 (19:06 +0000)]
Doc comment updates for CoreTagHooks callback functions + Parser::setHook() & Parser::setTransparentTagHook().

Added notes about the 'extended' return values from some of the hooks, which seems to be undocumented but is vaguely similar to what is documented for parser function callbacks. It doesn't look like a very safe interface, and could stomp on internal variables if one isn't careful. Needs to be better defined and doc'd.

setTransparentTagHook() seems to have been largely undocumented and is only used by the 'geoserver' extension currently. Is this considered obsolete? Should it be simply replaced by use of the frame & recursiveTagParse goodies, or is it still needed for something?

13 years agoAdded DBError::getContentMessage() to factorise common code; DBUnexpectedError now...
Alexandre Emsenhuber [Fri, 22 Apr 2011 18:57:01 +0000 (18:57 +0000)]
Added DBError::getContentMessage() to factorise common code; DBUnexpectedError now displays shows like a DB error for consistency with CLI mode

13 years agoApply patch from Karsten Düsterloh in Bug #28103.
Mark A. Hershberger [Fri, 22 Apr 2011 18:47:17 +0000 (18:47 +0000)]
Apply patch from Karsten Düsterloh in Bug #28103.

Karsten writes:

    If the $table_prefix is not empty, several table renamings will happen,
    including for 'pagecontent' and 'mwuser'. This breaks the import into postgres,
    because
    - 'pagecontent' doesn't exist (temporarily renamed to 'text')
    - 'mwuser' won't exist later (temporarily renamed to 'mw_mwuser')
    Also, some sequence names are wrong.
    Furthermore, some of the generated ALTER statements lack the final semicolon

    The attached patch contains the changes I had to do to make this run.

13 years agoAllow extensions to customize the search forms. This required some cleanup and refact...
Niklas Laxström [Fri, 22 Apr 2011 16:13:58 +0000 (16:13 +0000)]
Allow extensions to customize the search forms. This required some cleanup and refactoring to special:search and search engine.
Should be fully backwards compatible. Lightly tested, but only with MySQL search backend.
Introduces concept of search profiles, which replace long list of namespaces in the url.

13 years agoFollowup r86705 fix typo in comment
Niklas Laxström [Fri, 22 Apr 2011 15:16:37 +0000 (15:16 +0000)]
Followup r86705 fix typo in comment

13 years agoUpdate StartProfiler.sample after r86175
Sam Reed [Fri, 22 Apr 2011 15:02:39 +0000 (15:02 +0000)]
Update StartProfiler.sample after r86175

13 years agoUpdated patch from Bergi re: r86676 with tested code to fix bug #28642
Mark A. Hershberger [Fri, 22 Apr 2011 14:25:17 +0000 (14:25 +0000)]
Updated patch from Bergi re: r86676 with tested code to fix bug #28642

13 years ago* insert page 0 (for FK) if updating
Jure Kajzer [Fri, 22 Apr 2011 14:23:10 +0000 (14:23 +0000)]
* insert page 0 (for FK) if updating

13 years ago* Remove manual query building in search mysql
Niklas Laxström [Fri, 22 Apr 2011 13:28:03 +0000 (13:28 +0000)]
* Remove manual query building in search mysql
* Remove reference to mysql3, no longer supported
* Changed method signatures, I found no class extending this class in extensions
* Tested lightly and returns same results

13 years ago* begin, commit, rollback functions updated
Jure Kajzer [Fri, 22 Apr 2011 11:31:18 +0000 (11:31 +0000)]
* begin, commit, rollback functions updated
* using ->execFlags instead of hardcoded OCI_DEFAULT
* added dummy page (id=0) to satisfy FK checks

13 years agoAdd docs
Niklas Laxström [Fri, 22 Apr 2011 11:20:28 +0000 (11:20 +0000)]
Add docs

13 years ago(bug 28650) Refactor dynamic byte-based maxlength of edit summary into a jQuery plugi...
Roan Kattouw [Fri, 22 Apr 2011 10:58:58 +0000 (10:58 +0000)]
(bug 28650) Refactor dynamic byte-based maxlength of edit summary into a jQuery plugin. Patch by Jan Paul Posma

13 years ago(bug 26603) Followup r82232: fix double-escaping of returnto and returntoquery. Was...
Roan Kattouw [Fri, 22 Apr 2011 10:47:13 +0000 (10:47 +0000)]
(bug 26603) Followup r82232: fix double-escaping of returnto and returntoquery. Was caused by using two sources ($this->thisurl and $wgRequest) where one was already escaped and the other wasn't, then unconditionally escaping the result.

13 years agoFix bug #28642 - wrong part->commentEnd set to abbutting comments
Mark A. Hershberger [Thu, 21 Apr 2011 22:20:48 +0000 (22:20 +0000)]
Fix bug #28642 - wrong part->commentEnd set to abbutting comments

    To be able to search for headline-closing equal sign even when
    there are comments between the last = and the linebreak, there are
    some position values appended to the recent domParts. This works
    well with the first comment, but as soon as a second one comes,
    the commentEnd value is set to $wsEnd instead of $endPos.

Patch from Bergi

13 years agoConversion script between Syllabics and Latin for the Inuktitut language
Robin Pepermans [Thu, 21 Apr 2011 21:21:32 +0000 (21:21 +0000)]
Conversion script between Syllabics and Latin for the Inuktitut language

13 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 21 Apr 2011 19:43:03 +0000 (19:43 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-04-21 19:30:00 UTC)

13 years agoAdded jquery.json library to core.
Trevor Parscal [Thu, 21 Apr 2011 19:33:53 +0000 (19:33 +0000)]
Added jquery.json library to core.

13 years agoRemoved false comment introduced in r86633
Alexandre Emsenhuber [Thu, 21 Apr 2011 16:33:10 +0000 (16:33 +0000)]
Removed false comment introduced in r86633

13 years ago* Added Profiler::isStub() to check if we are using a stub profiler, instead of check...
Alexandre Emsenhuber [Thu, 21 Apr 2011 16:31:02 +0000 (16:31 +0000)]
* Added Profiler::isStub() to check if we are using a stub profiler, instead of checking whether $wgProfiler is set
* Replaced wfProfileClose() and wfGetProfilingOutput() by direct calls to the Profiler instance and removed them, no uses in extensions
* Also removed useless params from Profiler::getOutput() call in wfLogProfilingData()
* Only generate profiling output if it'll be used; introduced Profiler::logData() that saves profiling data (database, udp, ...) to separate it from output generation
* Removed unused Profiler::getCaller(), not used at all, and we have wfGetCaller() that does the same thing

13 years agoUse Profiler::instance() instead of $wgProfiler
Alexandre Emsenhuber [Thu, 21 Apr 2011 15:53:25 +0000 (15:53 +0000)]
Use Profiler::instance() instead of $wgProfiler

13 years ago(bug 27833) CollapsibleTabs doesn't collapse tabs due to JS errors
Roan Kattouw [Thu, 21 Apr 2011 14:39:45 +0000 (14:39 +0000)]
(bug 27833) CollapsibleTabs doesn't collapse tabs due to JS errors
* Change remove() to detach() so .data() isn't lost
* Be more careful using the parent's .data() in addData()
* Change ele (which mysteriously isn't available in the closure) to this, they're the same anyway

13 years ago(bug 28643) Merge Serbian language variant conversion improvements to trunk (r85224...
Chad Horohoe [Thu, 21 Apr 2011 14:02:38 +0000 (14:02 +0000)]
(bug 28643) Merge Serbian language variant conversion improvements to trunk (r85224, r85239, r85308) from Nikola's branch

13 years ago(bug 22209, bug 22574) Make indent, bullet list and numbered list buttons in the...
Roan Kattouw [Thu, 21 Apr 2011 13:42:39 +0000 (13:42 +0000)]
(bug 22209, bug 22574) Make indent, bullet list and numbered list buttons in the WikiEditor toolbar act on each line individually

* Reintroduce support for the splitlines argument in encapsulateSelection(). Was implemented by Adam Miller in r61493 but got lost somehow
* Add 'splitlines': true for the bullet list and numbered list buttons. The indent button already had it, so that part of r61493 did survive
* Copy options.pre and options.post to local pre and post variables instead of using (and modifying!) them directly all over the place

13 years agoFollowup to 86603 per CR: Fix var declaration of i
Leo Koppelkamm [Thu, 21 Apr 2011 09:03:04 +0000 (09:03 +0000)]
Followup to 86603 per CR: Fix var declaration of i

13 years agoMove edit.js stuff to mediawiki.action.edit.js, and remove wikibits dependency. Wrap...
Leo Koppelkamm [Thu, 21 Apr 2011 08:19:24 +0000 (08:19 +0000)]
Move edit.js stuff to mediawiki.action.edit.js, and remove wikibits dependency. Wrap publicly accessible functions inside mw.toolbar & provide legacy shortcuts to those. Make the traditional toolbar use $.fn.textSelection, to reduce code duplication. This fixes Bug 27116, Bug 15705, Bug 11011

13 years agoFix Bug 25794: Disallow multiple table captions & only keep the first
Leo Koppelkamm [Thu, 21 Apr 2011 07:27:05 +0000 (07:27 +0000)]
Fix Bug 25794: Disallow multiple table captions & only keep the first

13 years agoFollowup to r86202: Pass jQuery as argument in .ready(). Thanks Krinkle\!
Leo Koppelkamm [Thu, 21 Apr 2011 07:03:40 +0000 (07:03 +0000)]
Followup to r86202: Pass jQuery as argument in .ready(). Thanks Krinkle\!