summaryrefslogtreecommitdiff
path: root/modules/dblog/dblog.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/dblog/dblog.module')
-rw-r--r--modules/dblog/dblog.module7
1 files changed, 2 insertions, 5 deletions
diff --git a/modules/dblog/dblog.module b/modules/dblog/dblog.module
index 496a043a7..9420c538d 100644
--- a/modules/dblog/dblog.module
+++ b/modules/dblog/dblog.module
@@ -19,7 +19,7 @@ function dblog_help($path, $arg) {
case 'admin/help#dblog':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
- $output .= '<p>' . t('The Database logging module logs system events in the Drupal database. For more information, see the online handbook entry for the <a href="@dblog">Database logging module</a>.', array('@dblog' => 'http://drupal.org/handbook/modules/dblog')) . '</p>';
+ $output .= '<p>' . t('The Database logging module logs system events in the Drupal database. For more information, see the online handbook entry for the <a href="@dblog">Database logging module</a>.', array('@dblog' => 'http://drupal.org/documentation/modules/dblog')) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Monitoring your site') . '</dt>';
@@ -138,12 +138,9 @@ function _dblog_get_message_types() {
* Note some values may be truncated for database column size restrictions.
*/
function dblog_watchdog(array $log_entry) {
- // The user object may not exist in all conditions, so 0 is substituted if needed.
- $user_uid = isset($log_entry['user']->uid) ? $log_entry['user']->uid : 0;
-
Database::getConnection('default', 'default')->insert('watchdog')
->fields(array(
- 'uid' => $user_uid,
+ 'uid' => $log_entry['uid'],
'type' => substr($log_entry['type'], 0, 64),
'message' => $log_entry['message'],
'variables' => serialize($log_entry['variables']),