_prev_next_add() calls watchdog () with wrong arguments.

Though it does not causes error when calling watchdog (), error message when viewing dblog page.

Wrong:
watchdog('prev_next', 'Node ' . $nid . ' missing taxonomy id for field_data_' . $category, WATCHDOG_ERROR);

Error:

TypeError: Argument 2 passed to t() must be of the type array, integer given, called in modules/dblog/dblog.admin.inc on line 295 t() (includes/bootstrap.inc file line 1720).

Correct:
watchdog('prev_next', 'Node @nid missing taxonomy id for field_data_@category', array('@nid'=>$nid, '@category' => $category), WATCHDOG_ERROR);

CommentFileSizeAuthor
prev_next.module.20170127.patch783 bytesHidehisa
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Hidehisa created an issue.