Skip to content
Snippets Groups Projects
Commit 97cf50cd authored by Andreas Gohr's avatar Andreas Gohr Committed by GitHub
Browse files

Merge pull request #1704 from kynan/1704-xml-rpc-disabled-error

Return valid xml when XML-RPC interface not enabled
parents 1f0bb9cd 2a9d6d65
No related branches found
No related tags found
No related merge requests found
......@@ -68,6 +68,7 @@ function load_autoload($name){
'FeedParser' => DOKU_INC.'inc/FeedParser.php',
'IXR_Server' => DOKU_INC.'inc/IXR_Library.php',
'IXR_Client' => DOKU_INC.'inc/IXR_Library.php',
'IXR_Error' => DOKU_INC.'inc/IXR_Library.php',
'IXR_IntrospectionServer' => DOKU_INC.'inc/IXR_Library.php',
'Doku_Plugin_Controller'=> DOKU_INC.'inc/plugincontroller.class.php',
'Tar' => DOKU_INC.'inc/Tar.class.php',
......
......@@ -4,7 +4,7 @@ if(!defined('DOKU_INC')) define('DOKU_INC',dirname(__FILE__).'/../../');
require_once(DOKU_INC.'inc/init.php');
session_write_close(); //close session
if(!$conf['remote']) die('XML-RPC server not enabled.');
if(!$conf['remote']) die((new IXR_Error(-32605, "XML-RPC server not enabled."))->getXml());
/**
* Contains needed wrapper functions and registers all available
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment