diff options
author | Arno Richter <oelna@oelna.de> | 2022-12-13 23:57:50 +0100 |
---|---|---|
committer | Arno Richter <oelna@oelna.de> | 2022-12-13 23:57:50 +0100 |
commit | 3668e75232508f70e74c57f848c8a9c816330ce8 (patch) | |
tree | 2a3b67590c5bda3adf013900ca9a632c7ff57f3d /lib/xmlrpc.php | |
parent | a2efa08d3529758b67db5b8687f8df43de63f1d0 (diff) | |
download | microblog-3668e75232508f70e74c57f848c8a9c816330ce8.tar.gz microblog-3668e75232508f70e74c57f848c8a9c816330ce8.tar.bz2 microblog-3668e75232508f70e74c57f848c8a9c816330ce8.zip |
bugfix for XMLRPC caused by a bad reference to config file.
Diffstat (limited to 'lib/xmlrpc.php')
-rw-r--r-- | lib/xmlrpc.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/xmlrpc.php b/lib/xmlrpc.php index 47948eb..51e1be2 100644 --- a/lib/xmlrpc.php +++ b/lib/xmlrpc.php @@ -7,8 +7,8 @@ if(!function_exists('xmlrpc_server_create')) { exit('No XML-RPC support detected if(empty($request_xml)) { exit('XML-RPC server accepts POST requests only.'); } // load config -require_once(__DIR__.DIRECTORY_SEPARATOR.'config.php'); -$logfile = __DIR__.DS.'log.txt'; +require_once(__DIR__.DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'config.php'); +$logfile = ROOT.DS.'log.txt'; if(!function_exists('str_starts_with')) { function str_starts_with($haystack, $needle) { @@ -423,6 +423,6 @@ $response = xmlrpc_server_call_method($server, $request_xml, null, [ if($response) { header('Content-Type: text/xml; charset=utf-8'); - // error_log($request_xml."\n\n".$response."\n\n", 3, $logfile); + error_log($request_xml."\n\n".$response."\n\n", 3, $logfile); echo($response); } |