New panel-pane.tpl.php breaks $content->links backwards compatibility.
jonskulski - October 22, 2009 - 21:11
| Project: | Panels |
| Version: | 6.x-3.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
I'm actually not sure if this is a bug or not, but I would assume it's an oversight.
In the new panel-pane.tpl.php preprocess (line 1035) function it is defined
<?php
$vars['links'] = !empty($content->links) ? implode(' ', $content->links) : '';
?>WHERE AS, in display-render.inc in theme function (panels 3.0)
<?php
$output .= "<div class=\"links\">" . theme('links', $content->links) . "</div>\n";
?>
#1
Here is a patch that runs $content->links through theme('links')