Closed (fixed)
Project:
Ubercart
Version:
6.x-2.0-beta5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 Mar 2009 at 16:49 UTC
Updated:
2 Apr 2009 at 15:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
tr commentedHi,
1. Could you explain more about what url() does to fix things here? Would l() work too? Are there other places in Ubercart that could benefit from this change?
2. t() is only supposed to wrap string literals, so what your patch does (t($order->title)) is the wrong way to go about accomplishing what you want. Read http://www.ubercart.org/faq/8123 and http://drupal.org/node/191810 for a very brief explanation of how to translate these things in a manner compliant with Drupal standards.
Comment #2
account-deletion-needed commented1. url() allows other modules to rewrite the URL to take into account things such as language prefixes. l() does the same thing as url(), except that it returns a fully themed HTML link, whereas url() returns the raw URL. As for other places in Ubercart, I'm not sure, only found this place so far.
2. OK thanks I'll have a look.
Comment #3
cha0s commentedI rolled another patch with only the URL change.
Comment #4
Island Usurper commentedLooks good to me. Thanks, and committed.