(bug 24781) Define XML namespace for API output. Also created the referenced URL on the cluster.
This commit is contained in:
parent
e7c48351b1
commit
abaa9ae3f3
1 changed files with 2 additions and 1 deletions
|
|
@ -36,6 +36,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
|
|||
class ApiFormatXml extends ApiFormatBase {
|
||||
|
||||
private $mRootElemName = 'api';
|
||||
public static $namespace = 'http://www.mediawiki.org/xml/api/';
|
||||
private $mDoubleQuote = false;
|
||||
private $mXslt = null;
|
||||
|
||||
|
|
@ -66,7 +67,7 @@ class ApiFormatXml extends ApiFormatBase {
|
|||
}
|
||||
$this->printText(
|
||||
self::recXmlPrint( $this->mRootElemName,
|
||||
$this->getResultData(),
|
||||
array( 'xmlns' => self::$namespace ) + $this->getResultData(),
|
||||
$this->getIsHtml() ? - 2 : null,
|
||||
$this->mDoubleQuote
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue