| 1 |
<?php |
<?php |
| 2 |
// $Id: live_translation.update.inc,v 1.3 2009/04/20 02:48:32 brmassa Exp $ |
// $Id: live_translation.update.inc,v 1.4 2009/04/24 06:25:26 brmassa Exp $ |
| 3 |
/** |
/** |
| 4 |
* @author Bruno Massa |
* @author Bruno Massa |
| 5 |
* @file |
* @file |
| 98 |
// Display any error message |
// Display any error message |
| 99 |
if (isset($message)) { |
if (isset($message)) { |
| 100 |
drupal_set_message($message, isset($ok) ? 'ok' : 'error'); |
drupal_set_message($message, isset($ok) ? 'ok' : 'error'); |
| 101 |
watchdog('live_translation', $message, isset($ok) ? WATCHDOG_NOTICE : WATCHDOG_ERROR); |
watchdog('live_translation', $message, NULL, isset($ok) ? WATCHDOG_NOTICE : WATCHDOG_ERROR); |
| 102 |
} |
} |
| 103 |
|
|
| 104 |
// Delete the file |
// Delete the file |
| 143 |
// Save the tokens on DB for further use. But in case |
// Save the tokens on DB for further use. But in case |
| 144 |
// of error, show a message |
// of error, show a message |
| 145 |
if (xmlrpc_error()) { |
if (xmlrpc_error()) { |
| 146 |
watchdog('live_translation_update', xmlrpc_error_msg(), array(), WATCHDOG_ERROR); |
watchdog('live_translation', xmlrpc_error_msg(), NULL, WATCHDOG_ERROR); |
| 147 |
drupal_set_message(xmlrpc_error_msg(), 'error'); |
drupal_set_message(xmlrpc_error_msg(), 'error'); |
| 148 |
} |
} |
| 149 |
else { |
else { |