This line in tinytax:
'Only local images are allowed.',

on a site that does NOT use clean urls, results in a url like this:
mydomain.com/?q=modules/images/plus.png

(the "?q=" part should not be there), which gives a "page not found" error, and the plus sign does not appear by the terms, so nowhere to click to go to the terms page (other than right-clicking on the term and choosing open in new tab).

When specifying the path from the root manually without using drupal_get_path, like this [ 'Only local images are allowed.', ], it works fine without errors. (when drupal is not in a subdirectory, that is)

What is the correct way to get the path without the ?q= in it?

Comments

Leeteq’s picture

oops, forgot the code tags, ref. "This line in tinytax:"
'<img src="'.url(drupal_get_path('module','tinytax')).'/images/plus.png'.'"/>',

Temp. fix: "like this":
'<img src="/module/images/plus.png'.'"/>',

Leeteq’s picture

Title: Plus sign image not found if not using clean URLs » Plus sign image not found resulting in missing links if not using clean URLs
sdrycroft’s picture

Status: Active » Fixed

It actually wants to be:

'<img src="'.base_path().drupal_get_path('module','tinytax').'/images/plus.png'.'"/>',

Thanks for pointing that out, I'll get a new release out with this fix in ASAP.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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