Posted by boombatower on May 8, 2009 at 1:09am
| Project: | Project issue file test |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | boombatower |
| Status: | closed (fixed) |
Issue Summary
The file_url:
<?php
'file_url' => url($file['filepath']),
?>Seems to get the absolute file reference: http://d6.drupal.org/var/www/d6.drupal.org/htdocs/scripts/files/issues/pass_2.patch
Comments
#1
Interestingly the following generates a proper link on d6.d.o right now.
<?phpl($file['filename'], $file['filepath']);
?>
#2
Use file_create_url() (if in files directory) or $GLOBALS['base_url'] instead of url(). Using url() on a file will break when clean URL's is not enabled.
#3
#4
Committed.
#5
Automatically closed -- issue fixed for 2 weeks with no activity.
#6
Seems to still occur.
#7
Nevermind issue on PIFR display side. YES!