From 7489b1e8dfbe638bb9b16da787d89c669140c85b Mon Sep 17 00:00:00 2001 From: Siebrand Mazeland Date: Tue, 8 Mar 2016 08:32:10 +0100 Subject: [PATCH] Explicitly declare ApiFormatXml::addXslt() protected Only used in private/protected context. Change-Id: Ic44d6e70e89c3d229d79aa08d2a0092609e7d62e --- includes/api/ApiFormatXml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ); -- 2.20.1