Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
_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);
Comment | File | Size | Author |
---|---|---|---|
prev_next.module.20170127.patch | 783 bytes | Hidehisa | |
Comments