Previous code for theme_links() gave only 'first' OR 'last' to each list element. But if there is only one item in the list, then it is both the first AND the last item and should have *both* classes. This patch fixes this problem.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jjeff’s picture

edmund.kwok’s picture

Status: Active » Needs review
coreb’s picture

Version: x.y.z » 5.x-dev

Moving out of the "x.y.z" queue to a real queue.

ChrisKennedy’s picture

Status: Needs review » Reviewed & tested by the community
FileSize
900 bytes

Works fine.

Minor tweaks in the updated patch: synced with HEAD, re-rolled from root, added period to the comment, and fixed potential E_ALL warning.

drumm’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)