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.
bad utilisation of 'attributes' => array('class')
Key 'class' must be an array not a string
$output .= theme('table__diff__revisions', array(
'header' => $header,
'rows' => $rows,
'sticky' => FALSE,
'attributes' => array('class' => 'diff-revisions'),
));
Must be an array
$output .= theme('table__diff__revisions', array(
'header' => $header,
'rows' => $rows,
'sticky' => FALSE,
'attributes' => array('class' => array('diff-revisions')),
));
file : diff.theme.inc
line : 63
Comment | File | Size | Author |
---|---|---|---|
#3 | diff-1894120-3-attributes-class-should-be-array.patch | 893 bytes | Alan D. |
Comments
Comment #1
michael_cristal CreditAttribution: michael_cristal commentedsame issue in diff.module file
function diff_node_form_build_preview_changes($form, &$form_state)
line 433
'attributes' => array('class' => 'diff'),
must be array
'attributes' => array('class' => array('diff')),
Comment #2
hass CreditAttribution: hass commentedLooks like you are not working on a patch
Comment #3
Alan D. CreditAttribution: Alan D. commentedThese?
Comment #4
Alan D. CreditAttribution: Alan D. commentedThanks for reporting. Pushed to dev.
16cd400
Comment #5
Alan D. CreditAttribution: Alan D. commented