Closed (fixed)
Project:
ImageCache Actions
Version:
6.x-1.1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Feb 2009 at 15:43 UTC
Updated:
21 Feb 2009 at 12:50 UTC
The inclusion of utility.inc in some of the modules seems to be problematic, as they are just included via
require_once('utility.inc');
but should be included like
require_once drupal_get_path('module', 'imagecache_actions') .'utility.inc';
otherwise there might occur an error.
Patches attached
| Comment | File | Size | Author |
|---|---|---|---|
| imagecache_textactions-includeFix.patch | 512 bytes | suit4 | |
| imagecache_coloractions-includeFix.patch | 402 bytes | suit4 | |
| imagecache_canvasactions-includeFix.patch | 416 bytes | suit4 |
Comments
Comment #1
dman commentedThanks. True enough, we are supposed to be more careful with our includes, although I've not found problems with this one so far.
I get the idea with the patches - although
- there is no actual 'imagecache_actions' module to lookup, so that would have failed.
- if successful, that require would have needed an extra '/' in the pathname.
Anyway, I'm pathing the affected files with the simple:
and all is cool.
Rolling soon when I add another feature (imagefield)
Thanks!