ApiExpandTemplates: Start parse before creating frame
authorBrad Jorsch <bjorsch@wikimedia.org>
Wed, 18 Jun 2014 18:12:08 +0000 (14:12 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 18 Jun 2014 18:20:46 +0000 (14:20 -0400)
commit682c7da095132703606c29375c00b70e6ebc297f
tree3052a2283db84e722047b4962b137b2013e48672
parentef1360a880b9b737d80f45030363cd29ab29b468
ApiExpandTemplates: Start parse before creating frame

The code added in Id12cbe4a is creating a frame from the parser object
before actually starting a parse, meaning the frame ends up with no
title, which causes problems for other stuff that assumes the frame
*does* have a title.

While we could possibly change from calling ->preprocess() to
->recursivePreprocess() to avoid re-starting the parse, there are some
hooks called from ->preprocess() that it's probably best to continue
calling to not break BC.

Bug: 66798
Change-Id: If2ca8ab94ab81ee10f33ce1f4ee75655b7c1e680
includes/api/ApiExpandTemplates.php