Use WikiPage::makeParserOptions() where possible.
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Sat, 11 Aug 2012 19:44:12 +0000 (21:44 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Fri, 31 Aug 2012 21:16:03 +0000 (23:16 +0200)
commitbe0878fd3ad2fcbfe7c070263caf22df1a449b14
tree20d4f2799a8893e3f1038442c494811e4ed358ed
parent8fdd009ac4d55389851a82190b1c7ed44f0afb68
Use WikiPage::makeParserOptions() where possible.

- This is needed to for I90965346 ((bug 37453) Move
  $wgDisable(Lang|Title)Conversion to ParserOptions)
  because that change sets an option based on the Title,
  and I don't want to duplicate that to all ParserOptions
  that need it.
- Refactored ApiParse to have a WikiPage object available
  and changed some part to take advantage of having this
  object available. Also used ApiBase::getTitleOrPageId()
  to reduce code duplication.

Change-Id: Iec98e472af9c43d940f77261367a796b0d7b4b54
includes/Article.php
includes/EditPage.php
includes/WikiPage.php
includes/api/ApiParse.php
includes/diff/DifferenceEngine.php