From: Siebrand Mazeland Date: Tue, 8 Mar 2016 07:32:10 +0000 (+0100) Subject: Explicitly declare ApiFormatXml::addXslt() protected X-Git-Tag: 1.31.0-rc.0~7713^2 X-Git-Url: https://git.heureux-cyclage.org/?a=commitdiff_plain;h=7489b1e8dfbe638bb9b16da787d89c669140c85b;p=lhc%2Fweb%2Fwiklou.git Explicitly declare ApiFormatXml::addXslt() protected Only used in private/protected context. Change-Id: Ic44d6e70e89c3d229d79aa08d2a0092609e7d62e --- diff --git a/includes/api/ApiFormatXml.php b/includes/api/ApiFormatXml.php index be9b6d0b4b..a45dbebfb5 100644 --- a/includes/api/ApiFormatXml.php +++ b/includes/api/ApiFormatXml.php @@ -266,7 +266,7 @@ class ApiFormatXml extends ApiFormatBase { ); } - function addXslt() { + protected function addXslt() { $nt = Title::newFromText( $this->mXslt ); if ( is_null( $nt ) || !$nt->exists() ) { $this->setWarning( 'Invalid or non-existent stylesheet specified' );