Page MenuHomePhabricator

action=raw&templates=expand broken
Closed, ResolvedPublic

Description

Author: dto

Description:
templates=expand is broken on 1.8-svn and 1.7.1 (apparently I can only mark one
version though).

Wikipedia just gives me an empty page, but I'm assuming that's because error
reporting is turned off.

The problem, I think, is that Parser::mArgStack is not initialized when
Parser::replaceVariables is called on a new Parser instance.

Patch coming up.


Version: 1.8.x
Severity: normal
URL: http://en.wikipedia.org/w/index.php?title=Beep_%28sound%29&action=raw&ctype=text/css&templates=expand

Details

Reference
bz7026

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:22 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz7026.
bzimport added a subscriber: Unknown Object (MLST).

dto wrote:

patch for r16082 fixing templates=expand

The patch fixes templates=expand, I think (using code from Tim Starling's
ExpandTemplates extension).

However, I haven't been able to test it as I haven't upgraded to 1.8-svn yet.

Attached:

dto wrote:

Do people actually search the bug database for "patch" and/or "need-review"?

robchur wrote:

*** Bug 7028 has been marked as a duplicate of this bug. ***