Great! That's what I was planning to patch in. Now I see it's already there in the latest release. That's good, as it's something a client (actually my local content manager) requested. I'll roll that out...

but but.
I've found a problem when using private file system. My icon link comes out looking like
//var/www/resourcedb/files/category_pictures/icon_smile.gif
... I think I can fix that pretty quick. Different issue I know, but I wanted to lead with a positive...

CommentFileSizeAuthor
#1 taxonomy_image-private_files-2008-03-22.patch878 bytesdman

Comments

dman’s picture

StatusFileSize
new878 bytes

How about

-            $return_url = theme('image', $current->path, $current->name, $current->title, $attributes, false);
+            $return_url = theme('image', $current->url, $current->name, $current->title, $attributes, false);
nancydru’s picture

Title: YAY! Edit taxonomy_image on edit term page. » Path problem with private file system
Status: Active » Postponed (maintainer needs more info)

Actually, Moshe had a patch out quite some time ago. It just took merging into this module.

Is this a problem only with private files, or should we always use the URL?

dman’s picture

image.module has always used the URL.
core theme_image() always uses the URL.

I don't see any reason to try and get away with an unfiltered filename. It may work OK 80% of the time, but it's not the same as doing it right.

nancydru’s picture

Actually, theme_image works either way. Actually TI uses theme_image.

This is a pretty trivial change, so I'll go ahead and do it and see if anyone screams about it.

nancydru’s picture

How about theme_imagecache? Does it also support URLs?

Doesn't look like it, so I'll leave it alone.

nancydru’s picture

Assigned: Unassigned » nancydru
Status: Postponed (maintainer needs more info) » Fixed

Committed to both branches.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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