Download & Extend

New panel-pane.tpl.php breaks $content->links backwards compatibility.

Project:Panels
Version:6.x-3.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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";

?>

Comments

#1

Status:active» needs review

Here is a patch that runs $content->links through theme('links')

AttachmentSize
panels-612116.patch 817 bytes

#2

Status:needs review» fixed

I remember wondering about that when I committed it. I should have checked more carefully.

#3

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.