diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-08-04 20:36:24 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-08-04 20:36:24 +0000 |
commit | a52cf8297aa8c012065a4cb4e3f6a6ee3e258fc1 (patch) | |
tree | 16302365a954821f1e7c5d8a4c227f6bf629d0a2 /modules/drupal.module | |
parent | b382692acb61087e1f06167da280dcf98bde10d9 (diff) | |
download | brdo-a52cf8297aa8c012065a4cb4e3f6a6ee3e258fc1.tar.gz brdo-a52cf8297aa8c012065a4cb4e3f6a6ee3e258fc1.tar.bz2 |
- Patch #7458 by killes: conditionally include xmlrpc.inc.
Diffstat (limited to 'modules/drupal.module')
-rw-r--r-- | modules/drupal.module | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/drupal.module b/modules/drupal.module index 381192a86..10044a2ed 100644 --- a/modules/drupal.module +++ b/modules/drupal.module @@ -127,6 +127,8 @@ function drupal_xmlrpc() { * Sends a ping to the Drupal directory server. */ function drupal_notify($server) { + include_once 'includes/xmlrpc.inc'; + global $base_url; $url = parse_url($server); @@ -162,6 +164,7 @@ function drupal_info($field = 0) { * Implementation of hook_auth(). */ function drupal_auth($username, $password, $server) { + include_once 'includes/xmlrpc.inc'; $message = new xmlrpcmsg('drupal.login', array(new xmlrpcval($username, 'string'), new xmlrpcval($password, 'string'))); @@ -201,6 +204,8 @@ function drupal_page_help() { * Remote clients are usually other Drupal instances. */ function drupal_login($arguments) { + include_once 'includes/xmlrpc.inc'; + $argument = $arguments->getparam(0); $username = $argument->scalarval(); $argument = $arguments->getparam(1); |