Currently, UC requires that all installs on a multisite share a single templates directory (but that's a separate issue).

In order to avoid keeping all my customers' templates in the same SVN repo, it's useful to symlink from the uc_order/templates directory to the real file.

This patch makes that possible.

Comments

cha0s’s picture

StatusFileSize
new1.02 KB

Should we maybe use Drupal's functions for this? I created a patch using file_scan_directory(). Would appreciate testing regarding symbolic links.

Island Usurper’s picture

StatusFileSize
new1.08 KB

uc_order_load_invoice() doesn't support template files in subdirectories, because the original code didn't look for them. file_scan_directory() shouldn't be allowed to recurse down past uc_order/templates.

rszrama’s picture

Version: 5.x-1.7 » 6.x-2.0-beta5
Assigned: Unassigned » rszrama
Status: Needs review » Patch (to be ported)
StatusFileSize
new1.79 KB

Fixed a couple of things and ended up with the attached patch. Committed to the 2.x branch. I suppose it will need to be backported.

cha0s’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new1.36 KB

Zee backport.

rszrama’s picture

Version: 6.x-2.0-beta5 » 5.x-1.7
Assigned: rszrama » Unassigned
tr’s picture

Status: Needs review » Fixed

I tested the backport posted in #4 and it worked. As this fix has been in 6.x for a long time without a problem, I think we can consider it RTBC. Committed.

Status: Fixed » Closed (fixed)

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