Use preview content when it transcludes itself
authorJackmcbarn <jackmcbarn@gmail.com>
Tue, 3 Jun 2014 20:10:02 +0000 (16:10 -0400)
committerJackmcbarn <jackmcbarn@gmail.com>
Tue, 30 Dec 2014 17:59:16 +0000 (12:59 -0500)
commit779f1024c102bc0833acc1d258693125e1673419
treeb86187e52807c6e474f5bf391bdc628bef2de496
parentd8ab903223ceb1f259ac2d598d667695d8c4a98f
Use preview content when it transcludes itself

When a page transcludes itself, such as <noinclude>foo
{{:{{FULLPAGENAME}}}}</noinclude><includeonly>bar</includeonly>, use the
preview content in its own transclusions. This code was basically ripped
straight from Extension:TemplateSandbox.

Bug: T85408
Bug: T7278
Change-Id: I1aa091a395a4f7b7b744e09e0bed59bc2e1176d0
includes/EditPage.php
includes/parser/ParserOptions.php