lhc/web/wiklou.git
12 years agoAdded filearchive check to isInactiveAccount()
Aaron Schulz [Thu, 4 Aug 2011 17:43:06 +0000 (17:43 +0000)]
Added filearchive check to isInactiveAccount()

12 years ago* Use local context instead of global variables
Alexandre Emsenhuber [Thu, 4 Aug 2011 15:48:36 +0000 (15:48 +0000)]
* Use local context instead of global variables
* Call Linker methods statically

12 years agoExpand all URLs in e-mail notifications to be full HTTP URLs. This prevents protocol...
Roan Kattouw [Thu, 4 Aug 2011 15:13:17 +0000 (15:13 +0000)]
Expand all URLs in e-mail notifications to be full HTTP URLs. This prevents protocol-relative URLs from appearing in e-mail notifications if $wgServer is protocol-relative

12 years agore r93871 — add release notes
Mark A. Hershberger [Thu, 4 Aug 2011 14:25:53 +0000 (14:25 +0000)]
re r93871 — add release notes

12 years agoLocalisation update for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Thu, 4 Aug 2011 13:28:09 +0000 (13:28 +0000)]
Localisation update for core and extension messages from translatewiki.net (2011-08-04 12:30:00)

12 years agoFix embarassing debugging code left in in r93744
Roan Kattouw [Thu, 4 Aug 2011 12:13:01 +0000 (12:13 +0000)]
Fix embarassing debugging code left in in r93744

12 years agoRemoving left-over comment from r67733.
Krinkle [Thu, 4 Aug 2011 05:44:52 +0000 (05:44 +0000)]
Removing left-over comment from r67733.

12 years agoFix bug #27132: Uncomment movefile right in default settings
Mark A. Hershberger [Thu, 4 Aug 2011 00:57:43 +0000 (00:57 +0000)]
Fix bug #27132: Uncomment movefile right in default settings

12 years ago* Refactored SpecialUndelete::revDeleteLink into a Linker::getRevDeleteLink function
Aaron Schulz [Wed, 3 Aug 2011 22:37:20 +0000 (22:37 +0000)]
* Refactored SpecialUndelete::revDeleteLink into a Linker::getRevDeleteLink function
* (bug 21279) Updated DeletedContributions to use type=revision when possible (ar_rev_id exists)

12 years agoReverted r91942,r91943,r91949,r92156 per CR
Aaron Schulz [Wed, 3 Aug 2011 22:08:24 +0000 (22:08 +0000)]
Reverted r91942,r91943,r91949,r92156 per CR

12 years agor93683 missed return in line 1890
Platonides [Wed, 3 Aug 2011 20:23:10 +0000 (20:23 +0000)]
r93683 missed return in line 1890

12 years agoJust call $wgOut->parse() instead of doing a lot of things to call $wgParser->parse()
Alexandre Emsenhuber [Wed, 3 Aug 2011 19:59:33 +0000 (19:59 +0000)]
Just call $wgOut->parse() instead of doing a lot of things to call $wgParser->parse()

12 years ago* Use local context instead of global variables
Alexandre Emsenhuber [Wed, 3 Aug 2011 19:42:34 +0000 (19:42 +0000)]
* Use local context instead of global variables
* Call Linker methods statically

12 years agoFollow-up r93258, r93266, r93266: Move the defines to Defines.php
Platonides [Wed, 3 Aug 2011 18:25:04 +0000 (18:25 +0000)]
Follow-up r93258, r93266, r93266: Move the defines to Defines.php

12 years agoCall Linker methods statically
Alexandre Emsenhuber [Wed, 3 Aug 2011 17:19:32 +0000 (17:19 +0000)]
Call Linker methods statically

12 years ago* Make envCheckPath() specific to each installer, web vs cli
Mark A. Hershberger [Wed, 3 Aug 2011 15:46:06 +0000 (15:46 +0000)]
* Make envCheckPath() specific to each installer, web vs cli
* Add warning during the CLI install that the uploads directory isn't
  being checked for arbitrary script execution

12 years agore: r93635
Mark A. Hershberger [Wed, 3 Aug 2011 14:25:20 +0000 (14:25 +0000)]
re: r93635

* Restore false from envCheckPath() if wgScriptPath isn't found.
* Add message showing complete URL for wiki.

12 years agoCorrect typo in function documentation.
Krinkle [Wed, 3 Aug 2011 13:46:41 +0000 (13:46 +0000)]
Correct typo in function documentation.
* Follows-up r93702 CR

12 years agoFix syntax error in r93820
Roan Kattouw [Wed, 3 Aug 2011 13:12:55 +0000 (13:12 +0000)]
Fix syntax error in r93820

12 years agoFix r93820: PROT_ -> PROTO_
Roan Kattouw [Wed, 3 Aug 2011 13:11:42 +0000 (13:11 +0000)]
Fix r93820: PROT_ -> PROTO_

12 years agoSome random URL protocol forcing for protocol-relative URLs
Roan Kattouw [Wed, 3 Aug 2011 12:58:21 +0000 (12:58 +0000)]
Some random URL protocol forcing for protocol-relative URLs

12 years agoFollowup r93266: also rename PROT_* to PROTO_* in the comments
Roan Kattouw [Wed, 3 Aug 2011 12:52:17 +0000 (12:52 +0000)]
Followup r93266: also rename PROT_* to PROTO_* in the comments

12 years agoIntroduce $wgVaryOnXFPToAPI which sends Vary: X-Forwarded-Proto (and the appropriate...
Roan Kattouw [Wed, 3 Aug 2011 12:00:47 +0000 (12:00 +0000)]
Introduce $wgVaryOnXFPToAPI which sends Vary: X-Forwarded-Proto (and the appropriate XVO, if needed) on cached API requests. This effectively splits the API cache between HTTP and HTTPS for people with an HTTPS termination setup in front of a caching proxy (like, say, WMF)

12 years agoFix noglobals exceptions from QUnit
Krinkle [Wed, 3 Aug 2011 11:59:11 +0000 (11:59 +0000)]
Fix noglobals exceptions from QUnit
* Test results prior to this commit: http://i.imgur.com/m8rbk.png
* http://localhost/trunkw/tests/qunit/?noglobals=1

- Missing var-statement, causes global scope implication
- Missing semi colon, causing next to be global

12 years agoremoving a comment that doesn't make any sense after r91441 refactoring :-)
Domas Mituzas [Wed, 3 Aug 2011 08:00:23 +0000 (08:00 +0000)]
removing a comment that doesn't make any sense after r91441 refactoring :-)

12 years agoRevert r93802 per CR. Will avoid cache pollution by splitting the cache instead
Roan Kattouw [Wed, 3 Aug 2011 07:54:23 +0000 (07:54 +0000)]
Revert r93802 per CR. Will avoid cache pollution by splitting the cache instead

12 years agoFollows-up r89848 CR: Cleaner solution
Krinkle [Wed, 3 Aug 2011 07:45:54 +0000 (07:45 +0000)]
Follows-up r89848 CR: Cleaner solution

12 years agoIn the protection form, show the current protection expiry time in the local time...
Rotem Liss [Wed, 3 Aug 2011 07:33:00 +0000 (07:33 +0000)]
In the protection form, show the current protection expiry time in the local time and not in UTC.

12 years agoFollowup r92044: force HTTP on URLs output by the API, now that wfExpandUrl() has...
Roan Kattouw [Wed, 3 Aug 2011 07:05:21 +0000 (07:05 +0000)]
Followup r92044: force HTTP on URLs output by the API, now that wfExpandUrl() has a flag for this

12 years agoTweak/add to documentation
Sam Reed [Wed, 3 Aug 2011 00:19:27 +0000 (00:19 +0000)]
Tweak/add to documentation

Remove old compat constants for "1.6 compatibility"

12 years agow/s fix for r92882
Chad Horohoe [Tue, 2 Aug 2011 23:16:44 +0000 (23:16 +0000)]
w/s fix for r92882

12 years ago(bug 30172) posix_isatty() fallback does not work when the function has been disabled...
Chad Horohoe [Tue, 2 Aug 2011 22:01:58 +0000 (22:01 +0000)]
(bug 30172) posix_isatty() fallback does not work when the function has been disabled (but exists). While we're at it, make things work for HipHop too.

12 years agoeliminates warning if no startUp defined, which can happen in testing. (with proper...
Neil Kandalgaonkar [Tue, 2 Aug 2011 21:00:00 +0000 (21:00 +0000)]
eliminates warning if no startUp defined, which can happen in testing. (with proper case, capital U, this time)

12 years agoreverting r93783 - got the case of the variable name wrong
Neil Kandalgaonkar [Tue, 2 Aug 2011 20:57:51 +0000 (20:57 +0000)]
reverting r93783 - got the case of the variable name wrong

12 years agoeliminates warning if no startUp defined, which can happen in testing.
Neil Kandalgaonkar [Tue, 2 Aug 2011 20:54:30 +0000 (20:54 +0000)]
eliminates warning if no startUp defined, which can happen in testing.

12 years agobreak dependency on utility functions isEmpty & isDefined
Neil Kandalgaonkar [Tue, 2 Aug 2011 20:51:20 +0000 (20:51 +0000)]
break dependency on utility functions isEmpty & isDefined

12 years agomoving URI library to main resources
Neil Kandalgaonkar [Tue, 2 Aug 2011 20:33:27 +0000 (20:33 +0000)]
moving URI library to main resources

12 years agoadded a few comments about noAuth
Neil Kandalgaonkar [Tue, 2 Aug 2011 20:17:13 +0000 (20:17 +0000)]
added a few comments about noAuth

12 years agore: r93415
Mark A. Hershberger [Tue, 2 Aug 2011 19:35:01 +0000 (19:35 +0000)]
re: r93415
* Document what happens as the result of each value returned
* Require boolean true to continue, not just a true value or strings
  would succeed
* Trim the arguments since the header array already contains them.

12 years agoPer Platonides, follow-up r93758: rename ParserOutput::addOutputPage() to ParserOutpu...
Alexandre Emsenhuber [Tue, 2 Aug 2011 16:31:22 +0000 (16:31 +0000)]
Per Platonides, follow-up r93758: rename ParserOutput::addOutputPage() to ParserOutput::addOutputPageMetadata() to match its behaviour

12 years agoFix minor naming issue from r93314, add a bit to parameter documentation also
Sam Reed [Tue, 2 Aug 2011 16:26:15 +0000 (16:26 +0000)]
Fix minor naming issue from r93314, add a bit to parameter documentation also

12 years agoFollow up r93633. Allow only classic spaces.
Platonides [Tue, 2 Aug 2011 16:23:46 +0000 (16:23 +0000)]
Follow up r93633. Allow only classic spaces.

12 years agoRevert r93688 per Platonides
Sam Reed [Tue, 2 Aug 2011 16:18:10 +0000 (16:18 +0000)]
Revert r93688 per Platonides

12 years agoIn ResourceLoaderWikiModule, use isCssOrJsPage() as well as isCssJsSubpage() to check...
Roan Kattouw [Tue, 2 Aug 2011 16:00:42 +0000 (16:00 +0000)]
In ResourceLoaderWikiModule, use isCssOrJsPage() as well as isCssJsSubpage() to check whether a wiki page is a CSS or JS page. This is required to make ResourceLoaderWikiModule work for pages that are CSS/JS pages, but don't live in the MediaWiki namespace and aren't user subpages. This wasn't possible before r93759, which introduced a hook that allows extensions to override which pages are considered to be CSS/JS pages.

12 years agoFactor out obtaining the database object in ResourceLoaderWikiModule into a getDB...
Roan Kattouw [Tue, 2 Aug 2011 15:47:30 +0000 (15:47 +0000)]
Factor out obtaining the database object in ResourceLoaderWikiModule into a getDB() method that can be overridden by subclasses. This is needed for the Gadgets extension in the RL2 branch, which subclasses ResourceLoaderWikiModule to create modules for foreign wiki pages.

12 years agoIntroduce a hook so extensions can customize what's considered to be a CSS/JS page...
Roan Kattouw [Tue, 2 Aug 2011 15:40:27 +0000 (15:40 +0000)]
Introduce a hook so extensions can customize what's considered to be a CSS/JS page. This is needed for the Gadgets extension in the RL2 branch

12 years ago* (bug 15558) Allow includable special pages to be parameterized using wiki syntax
Alexandre Emsenhuber [Tue, 2 Aug 2011 15:40:03 +0000 (15:40 +0000)]
* (bug 15558) Allow includable special pages to be parameterized using wiki syntax
* Changed SpecialPageFactory::capturePath() to take the same parameters as SpecialPageFactory::executePath() (except the last one) and made it always return a bool instead of bool-or-string. The result HTML can be fetched from the OutputPage object of the context.
* Added module styles, scritps and messages members to ParserOutput in addition to modules. The first one is needed to display Special:RecentChanges correctly when transcluded since EnhancedChangesList::beginRecentChangesList() calls addModuleStyles( 'mediawiki.special.changeslist' )

Yes, this means that you can use {{Special:Recentchanges|enhanced=0}} to use the old changes list. For the ones that wonder, {{Special:Recentchanges|uselang=something}} will not work since the Language object is forced to the one used by the parser.

12 years agoFixes Bug #29311 - [OutputPage] Create a method to remove items from mModules
Mark A. Hershberger [Tue, 2 Aug 2011 14:27:48 +0000 (14:27 +0000)]
Fixes Bug #29311 - [OutputPage] Create a method to remove items from mModules

Patch from John Du Hart, reviewed by Roan, Applying at Roan's request.

12 years ago* $wgSVGMaxSize is now applied to the smaller of width or height, making very wide...
Brion Vibber [Tue, 2 Aug 2011 14:13:51 +0000 (14:13 +0000)]
* $wgSVGMaxSize is now applied to the smaller of width or height, making very wide pano/timeline/diagram SVGs renderable at saner sizes

12 years agoAdd --no-updates flag to importDump.php that allows the user to skip updating the...
Roan Kattouw [Tue, 2 Aug 2011 14:05:01 +0000 (14:05 +0000)]
Add --no-updates flag to importDump.php that allows the user to skip updating the links table. On my test dataset (an old (~2 years) MediaWiki namespace dump of enwiki) this speeds up the import from 9m35s to 10s.

12 years agoUpdate whitespace, braces.
Siebrand Mazeland [Tue, 2 Aug 2011 13:56:07 +0000 (13:56 +0000)]
Update whitespace, braces.

12 years agoresult of finished Chunk Upload has to be Success
Jan Gerber [Tue, 2 Aug 2011 12:44:26 +0000 (12:44 +0000)]
result of finished Chunk Upload has to be Success

12 years agoIn Special:Protectedpages and Special:Protectedtitles, show protection expiry times...
Rotem Liss [Tue, 2 Aug 2011 11:55:05 +0000 (11:55 +0000)]
In Special:Protectedpages and Special:Protectedtitles, show protection expiry times as local times instead of UTC.

12 years agoFixing comment (no Language::decodeExpiry).
Rotem Liss [Tue, 2 Aug 2011 11:47:36 +0000 (11:47 +0000)]
Fixing comment (no Language::decodeExpiry).

12 years agoFixing Special:Protectedtitles to match Special:Protectedpages. This prevents an...
Rotem Liss [Tue, 2 Aug 2011 11:43:26 +0000 (11:43 +0000)]
Fixing Special:Protectedtitles to match Special:Protectedpages. This prevents an internal error (caused by timestamp translation), probably since r84258, and possibly some incompatibility to different databases.

12 years agouse tabs. for consistant whitespaces
Jan Gerber [Tue, 2 Aug 2011 11:01:01 +0000 (11:01 +0000)]
use tabs. for consistant whitespaces

12 years agoExtend upload api adding an option to upload files in chunks,
Jan Gerber [Tue, 2 Aug 2011 10:13:56 +0000 (10:13 +0000)]
Extend upload api adding an option to upload files in chunks,
using UploadStash to track the unfinished upload.

12 years agoAdd direction mark in recent changes and in protection log summary.
Rotem Liss [Tue, 2 Aug 2011 09:09:23 +0000 (09:09 +0000)]
Add direction mark in recent changes and in protection log summary.

12 years agoUpdate punctuation for error messages.
Siebrand Mazeland [Tue, 2 Aug 2011 08:10:47 +0000 (08:10 +0000)]
Update punctuation for error messages.

12 years ago* ApiTest: mark testApiGotCookie() broken, since it is
Chad Horohoe [Tue, 2 Aug 2011 04:04:03 +0000 (04:04 +0000)]
* ApiTest: mark testApiGotCookie() broken, since it is
* ApiTest: partially cleanup testApiListPages() to make it not depend on broken testApiGotCookie(). Not sure what we're testing here, so still marking incomplete.
* ApiWatchTest: mark testWatchClear() as broken rather than skipped due to failing testWatchEdit(). This class needs some love <3

12 years agomediawiki.Title: Removing public setter functions. Title object should be immutable.
Krinkle [Tue, 2 Aug 2011 03:11:08 +0000 (03:11 +0000)]
mediawiki.Title: Removing public setter functions. Title object should be immutable.
- To avoid repetition, instead of substituting, changed them to private helper functions
- Updated test suite to create new objects for different titles, rather than modifying the existing one.
- Adding missing unit tests, now 100% complete according to QUnit CompletnessTest
  + Test for Title.prototype.getNamespaceId
  + Test forTitle.prototype.getPrefixedText
  + Test forTitle.prototype.getExtension

Follows-up r90331 CR

12 years agobreaks in this file cause odd things to happen with RTL, removing line breaks
Neil Kandalgaonkar [Tue, 2 Aug 2011 00:38:36 +0000 (00:38 +0000)]
breaks in this file cause odd things to happen with RTL, removing line breaks

12 years agoadd maxWidth param
Neil Kandalgaonkar [Tue, 2 Aug 2011 00:36:38 +0000 (00:36 +0000)]
add maxWidth param

12 years agoCommit Preprocessor_DOM live hacks
Sam Reed [Mon, 1 Aug 2011 23:39:34 +0000 (23:39 +0000)]
Commit Preprocessor_DOM live hacks

12 years agoCommit live hack
Sam Reed [Mon, 1 Aug 2011 23:35:39 +0000 (23:35 +0000)]
Commit live hack

Commit to trunk also

12 years agoAdd Profiling to trunk from r93681
Sam Reed [Mon, 1 Aug 2011 23:28:16 +0000 (23:28 +0000)]
Add Profiling to trunk from r93681

12 years agoMerge live hack - Extra debugging on connection failures
Chad Horohoe [Mon, 1 Aug 2011 23:28:06 +0000 (23:28 +0000)]
Merge live hack - Extra debugging on connection failures

12 years agoMerge live hack - bumping version of minified stuff
Chad Horohoe [Mon, 1 Aug 2011 23:20:58 +0000 (23:20 +0000)]
Merge live hack - bumping version of minified stuff

12 years agoSqlite fails to open a connection when $user is given.
Chad Horohoe [Mon, 1 Aug 2011 22:57:34 +0000 (22:57 +0000)]
Sqlite fails to open a connection when $user is given.
Reported by lokkju in #wikimedia-tech

12 years agoPort 'editondblclick' js to ResourceLoader.
Krinkle [Mon, 1 Aug 2011 22:13:32 +0000 (22:13 +0000)]
Port 'editondblclick' js to ResourceLoader.
- Fixes (bug 27894) Move 'editondblclick' event listener down from body to
  div#bodyContent
- Patch by Nik <niknyby@gmail.com>
- Changes since patch:
  * Moved from OutputPage->headElement (where the bodyAttr-hack used to be) to addDefaultModules where other additions live
  * Added dependency on 'mediawiki.util', it must be initialized before mw.util.$content can be used
  * Whitespace conventions

12 years agoReorder some modules in Resources.php to match directory tree and alphabetical sorting.
Krinkle [Mon, 1 Aug 2011 21:46:54 +0000 (21:46 +0000)]
Reorder some modules in Resources.php to match directory tree and alphabetical sorting.

12 years agoFollows-up r93515 CR: Whitespace
Krinkle [Mon, 1 Aug 2011 21:03:57 +0000 (21:03 +0000)]
Follows-up r93515 CR: Whitespace

12 years ago[ResourceLoader2] Create getModuleNames() function
Krinkle [Mon, 1 Aug 2011 21:01:32 +0000 (21:01 +0000)]
[ResourceLoader2] Create getModuleNames() function
- Returns all keys from the (private) registry object as an array
- Needed for ResourceLoader 2 in order to do autosuggestions for dependancies and cheap non-http-request lookups to avoid duplicate keys when creating new modules/gadgets.

(bug 30160 ) Add public method to mw.loader to get module names from registry

12 years agoFixes Bug #30061 - Command line installer $wgScriptPath
Mark A. Hershberger [Mon, 1 Aug 2011 18:03:06 +0000 (18:03 +0000)]
Fixes Bug #30061 - Command line installer $wgScriptPath

Patch from Edward Z. Yang

12 years agoFixes Bug #30149 - Handling of parentheses for Korean, Chinese and Japanese
Mark A. Hershberger [Mon, 1 Aug 2011 17:37:25 +0000 (17:37 +0000)]
Fixes Bug #30149 - Handling of parentheses for Korean, Chinese and Japanese

Adapts the pipe trick with parens for fullwidth parentheses.  Adds parsertests.

Patch from Dan Collins.

12 years agoFix 'exif-gpsdestdistance-k' to use american spelling
Sam Reed [Mon, 1 Aug 2011 16:39:07 +0000 (16:39 +0000)]
Fix 'exif-gpsdestdistance-k' to use american spelling

12 years agow/s changes: “svn diff -x-w” is clean
Mark A. Hershberger [Mon, 1 Aug 2011 16:01:13 +0000 (16:01 +0000)]
w/s changes: “svn diff -x-w” is clean

12 years agofollow up r93626 - Forgot to credit Gero Scholz
Mark A. Hershberger [Mon, 1 Aug 2011 15:54:36 +0000 (15:54 +0000)]
follow up r93626 - Forgot to credit Gero Scholz

12 years agofixes Bug #27543 - “Warning: in_array() [function.in-array]: Wrong datatype for secon...
Mark A. Hershberger [Mon, 1 Aug 2011 15:50:49 +0000 (15:50 +0000)]
fixes Bug #27543 - “Warning: in_array() [function.in-array]: Wrong datatype for second argument in ParserOptions.php”

AFAICT, result of ParserOutput::getUsedOptions() is only used by ParserOptions::optionsHash() but that method doesn't account for a non-array value.

Patch supplied on bug.

12 years agow/s changes: “svn diff -x-w” is clean
Mark A. Hershberger [Mon, 1 Aug 2011 15:40:02 +0000 (15:40 +0000)]
w/s changes: “svn diff -x-w” is clean

12 years agoUpdate punctuation for a few fatal error messages.
Siebrand Mazeland [Mon, 1 Aug 2011 14:22:38 +0000 (14:22 +0000)]
Update punctuation for a few fatal error messages.

12 years agoLocalization update for he.
Rotem Liss [Sun, 31 Jul 2011 12:45:20 +0000 (12:45 +0000)]
Localization update for he.

12 years agoFixing Bug 27540 : width of <gallery> always 100%, by setting display to inline...
Leo Koppelkamm [Sun, 31 Jul 2011 09:25:02 +0000 (09:25 +0000)]
Fixing Bug 27540 :  width of <gallery> always 100%, by setting display to inline-block.

12 years agoFU r93017 : Reorder gallery css, to avoid unwanted indent.
Leo Koppelkamm [Sun, 31 Jul 2011 08:46:07 +0000 (08:46 +0000)]
FU r93017 : Reorder gallery css, to avoid unwanted indent.

12 years ago* (bug 30131) XCache with variable caching disabled no longer used for variable cachi...
Brion Vibber [Sun, 31 Jul 2011 01:52:38 +0000 (01:52 +0000)]
* (bug 30131) XCache with variable caching disabled no longer used for variable caching (CACHE_ACCEL)

Patch from John Du Hart: https://bugzilla.wikimedia.org/attachment.cgi?id=8849&action=diff

If XCache is present, but the xcache.var_size setting is off, we'll now consider it as xcache being disabled for CACHE_ACCEL purposes. It won't trigger view of the accelerator option in the installer, and at runtime if using CACHE_ACCEL and no other modules are available, it'll throw an error so you know that it doesn't work!

12 years agoClarify dual-licensing (GPL&Apache) of CSSJanus. Has no significant contributions...
Roan Kattouw [Sun, 31 Jul 2011 01:32:19 +0000 (01:32 +0000)]
Clarify dual-licensing (GPL&Apache) of CSSJanus. Has no significant contributions (i.e. changes other than very minor whitespace and Doxygen changes) by anyone other than me.

12 years agoFollow-up r93527: $value can also be null when not set
Alexandre Emsenhuber [Sat, 30 Jul 2011 20:27:32 +0000 (20:27 +0000)]
Follow-up r93527: $value can also be null when not set

12 years ago* Made OutputPage extend ContextSource instead of duplicating its code; this also...
Alexandre Emsenhuber [Sat, 30 Jul 2011 19:37:19 +0000 (19:37 +0000)]
* Made OutputPage extend ContextSource instead of duplicating its code; this also adds getLang() that was missing
* Use getLang() instead of $wgLang

12 years ago* Call Linker methods statically
Alexandre Emsenhuber [Sat, 30 Jul 2011 19:06:43 +0000 (19:06 +0000)]
* Call Linker methods statically
* Factorised calls to Skin::getTitle() in StandardTemplate::quickBar()

12 years agoLocalisation updates for core and extension messages from translatewiki.net (2011...
Raimond Spekking [Sat, 30 Jul 2011 19:06:20 +0000 (19:06 +0000)]
Localisation updates for core and extension messages from translatewiki.net (2011-07-30 18:43:00 UTC)

12 years agoBack out r93533, r93531, r93530
Sam Reed [Sat, 30 Jul 2011 15:56:54 +0000 (15:56 +0000)]
Back out r93533, r93531, r93530

Breaks unit tests as below, not going to be able to fix them before I disappear for the evening, so might aswell leave trunk clean

ArticleTablesTest testbug14404

Error:
ArticleTablesTest::testbug14404
Undefined offset: 0

/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/includes/ArticleTablesTest.php:31
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiTestCase.php:60
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiPHPUnitCommand.php:20
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/phpunit.php:60

ParserTests testParserTest #552 - testParserTest with data set #551

Failure:
ParserTests::testParserTest with data set #551 ('RAW magic word', '{{RAW:QUERTY}}', '<p><a href="/index.php?title=Template:QUERTY&amp;action=edit&amp;redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
</p>', '', '')
RAW magic word
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-<p><a href="/index.php?title=Template:QUERTY&amp;action=edit&amp;redlink=1" class="new" title="Template:QUERTY (page does not exist)">Template:QUERTY</a>
+<p><a href="/index.php?title=Template:RAW:QUERTY&amp;action=edit&amp;redlink=1" class="new" title="Template:RAW:QUERTY (page does not exist)">Template:RAW:QUERTY</a>
 </p>

/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/includes/parser/NewParserTest.php:545
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiTestCase.php:60
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/MediaWikiPHPUnitCommand.php:20
/home/ci/cruisecontrol-bin-2.8.3/projects/mw/source/tests/phpunit/phpunit.php:60

12 years agoAdd FIXME on undefined variable
Sam Reed [Sat, 30 Jul 2011 15:51:58 +0000 (15:51 +0000)]
Add FIXME on undefined variable

12 years agoFollowup r93530
Sam Reed [Sat, 30 Jul 2011 15:41:39 +0000 (15:41 +0000)]
Followup r93530

Fix SqliteUpdater

Fix Undefined index: globaltemplatelinks in LinksUpdate

12 years agoMerge iwtransclusion branch into trunk
Sam Reed [Sat, 30 Jul 2011 15:30:01 +0000 (15:30 +0000)]
Merge iwtransclusion branch into trunk

12 years agoIn Special:ComparePages:
Alexandre Emsenhuber [Sat, 30 Jul 2011 15:03:21 +0000 (15:03 +0000)]
In Special:ComparePages:
* Validate title and revision when passed
* Don't display the diff if a field is not valid
* Pass the context to the HTMLForm and removed the setTitle() call

12 years ago:facepalm: Installer checked for magic_quotes_runtime instead of register_globals
Max Semenik [Sat, 30 Jul 2011 09:52:10 +0000 (09:52 +0000)]
:facepalm: Installer checked for magic_quotes_runtime instead of register_globals

12 years agoIncreasing coverage of mw.Title with unit tests.
Krinkle [Sat, 30 Jul 2011 08:08:24 +0000 (08:08 +0000)]
Increasing coverage of mw.Title with unit tests.

* QUnit Completeness Test – Before:
Title.prototype.getNamespaceId
Title.prototype.getPrefixedText
Title.prototype.getExtension
Title.prototype.setNameAndExtension
Title.prototype.getUrl
Title.prototype.exists

* QUnit Completeness Test – After:
Title.prototype.getNamespaceId
Title.prototype.getPrefixedText
Title.prototype.getExtension

12 years agoRelease-notes for r93517
Krinkle [Sat, 30 Jul 2011 07:41:57 +0000 (07:41 +0000)]
Release-notes for r93517

12 years agoAdding fix for bug 27427. Fixes unit test. Patch provided by Michael M. through BugZilla.
Krinkle [Sat, 30 Jul 2011 07:39:01 +0000 (07:39 +0000)]
Adding fix for bug 27427. Fixes unit test. Patch provided by Michael M. through BugZilla.

* (bug 27427) mw.util.getParamValue shouldn't return value from hash even if param is only present in hash.

(Follows-up r93516)

12 years agoAdding unit test for bug 27427. Currently broken. Fix (provided by Michael M. through...
Krinkle [Sat, 30 Jul 2011 07:38:01 +0000 (07:38 +0000)]
Adding unit test for bug 27427. Currently broken. Fix (provided by Michael M. through BugZilla) will be committed afterwards.

* (bug 27427) mw.util.getParamValue shouldn't return value from hash even if param is only present in hash