X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fapi%2FApiFormatXml.php;h=cc1bd820f0e21b2e1881ca211e1ff7ee0a507650;hp=a45dbebfb51fa6aef22d65fbc7701068e19a3e41;hb=6b3e5511fb848890f174690885e748b90389c0b8;hpb=8e5ec3f6cf9cb5f3ecf5ff30430ff37b5a7857a7 diff --git a/includes/api/ApiFormatXml.php b/includes/api/ApiFormatXml.php index a45dbebfb5..cc1bd820f0 100644 --- a/includes/api/ApiFormatXml.php +++ b/includes/api/ApiFormatXml.php @@ -1,9 +1,5 @@ @gmail.com" * * This program is free software; you can redistribute it and/or modify @@ -269,17 +265,17 @@ class ApiFormatXml extends ApiFormatBase { protected function addXslt() { $nt = Title::newFromText( $this->mXslt ); if ( is_null( $nt ) || !$nt->exists() ) { - $this->setWarning( 'Invalid or non-existent stylesheet specified' ); + $this->addWarning( 'apiwarn-invalidxmlstylesheet' ); return; } if ( $nt->getNamespace() != NS_MEDIAWIKI ) { - $this->setWarning( 'Stylesheet should be in the MediaWiki namespace.' ); + $this->addWarning( 'apiwarn-invalidxmlstylesheetns' ); return; } if ( substr( $nt->getText(), -4 ) !== '.xsl' ) { - $this->setWarning( 'Stylesheet should have .xsl extension.' ); + $this->addWarning( 'apiwarn-invalidxmlstylesheetext' ); return; }