CataBlogItem change request
-
Hi there,
I’m adding catablog items programmatically (command line and cron jobs) and the CataBlogItem class almost lets me do it flawlessly. However, there are a few things about it that get in the way. Right now CataBlogItem requires that images be submitted via a form post in order to be saved. If this dependency could be stripped out, the class would be considerably more versatile. Would you consider making these changes?
1. Change setImage($image, $update=true) to setImage($image, $imageName, $update=true). By passing in the desired image name here, the save() method won’t need to look for $_FILES[‘new_image’][‘name’] in order to have the desired image name.
2. Change save() so that it doesn’t use $_FILES or move_uploaded_file() anymore.I’m not using sub images yet, but after a quick code scan it looks like sub images would also need equivalent changes.
I’m to update the CataBlogItem class locally to get the changes I need; if you would like a patch, I’d be happy to provide one.
- The topic ‘CataBlogItem change request’ is closed to new replies.