Explicitly declare ApiFormatXml::addXslt() protected
authorSiebrand Mazeland <siebrand@kitano.nl>
Tue, 8 Mar 2016 07:32:10 +0000 (08:32 +0100)
committerAnomie <bjorsch@wikimedia.org>
Tue, 8 Mar 2016 16:12:26 +0000 (16:12 +0000)
Only used in private/protected context.

Change-Id: Ic44d6e70e89c3d229d79aa08d2a0092609e7d62e

includes/api/ApiFormatXml.php

index be9b6d0..a45dbeb 100644 (file)
@@ -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' );