Posted by jjkiesch on April 7, 2009 at 5:52pm
5 followers
Jump to:
| Project: | DraggableViews |
| Version: | 6.x-3.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
i'm not sure if it was intentional but after upgrading draggable views a while back i started seeing ">" symbols on all of the table cells. i took them out and have a diff attached.
| Attachment | Size |
|---|---|
| draggableviews-view-draggabletable.tpl_.php_.diff | 1.38 KB |
Comments
#1
Hm, strange.
But the problem must be somewhere else because the tags would not be closed without the ">".
#2
Sevi,
The issue is that the tpl has <? and not <?php
Just replace those and it'll be fine. Might be why you might not see them.
#3
Sevi, do you need me to post a patch or did my one liner make sense?
#4
oops, i didn't see that it was the > for the closing html tag. i can confirm that adding the php fixes the issue
#5
Normally your one liner would be enough. But I still don't understand what's going on here O_o. I've never heard before that there's a difference between <? and <?php. The templates of views module use <?php too.
Yes, please write a patch for me :)
And could you please explain it to me?
Greetings,
sevi
#6
I will make a patch later. The issue was that the tpl was using <? and NOT <?php. Not all webservers are configured to trigger php processing from <? ?> tags. Actually, most servers I've been on only recognize <?php ?> as php.
- <tr class="draggable <?php print $zebra; ?><? if ($draggableviews_extended[$count]) print ' '. 'draggableviews-extended'; ?><? if ($tabledrag_type[$count]) print ' '. $tabledrag_type[$count]; ?>">You will notice that after the print $zebra you're using a <?.
#7
Oh, ok. I thought you want me to use <? instead of <?php. You're right. I haven't noticed that I use <? in my template.
I don't need you to write a patch for me :)
I'll commit this immediately.
Greetings,
sevi
#8
#9
Automatically closed -- issue fixed for 2 weeks with no activity.
#10
Marked #474762: Remove use of PHP short tag in theme and #476936: Template file has short PHP tags as duplicates.