MediaWikiのPHP 7.0以降対応用のtemporary patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- EditPage.php.ORG 2017-07-26 23:37:33.446933850 +0900 | |
+++ EditPage.php 2017-07-27 07:15:49.483444502 +0900 | |
@@ -2594,7 +2594,9 @@ | |
$previewOutput = $this->getPreviewText(); | |
} | |
- Hooks::run( 'EditPage::showEditForm:initial', [ &$this, &$wgOut ] ); | |
+ // Avoid PHP 7.1 warning of passing $this by reference | |
+ $editPage = $this; | |
+ Hooks::run( 'EditPage::showEditForm:initial', [ &$editPage, &$wgOut ] ); | |
$this->setHeaders(); | |
@@ -2660,7 +2662,8 @@ | |
. Xml::closeElement( 'div' ) | |
); | |
- Hooks::run( 'EditPage::showEditForm:fields', [ &$this, &$wgOut ] ); | |
+ $editPage = $this; | |
+ Hooks::run( 'EditPage::showEditForm:fields', [ &$editPage, &$wgOut ] ); | |
// Put these up at the top to ensure they aren't lost on early form submission | |
$this->showFormBeforeText(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment