_image_get_vid has been changed to _image_gallery_get_vid in cvs -- should be renamed

ajwwong - May 10, 2006 - 22:49
Project:shazamgallery
Version:HEAD
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I was getting errors re: _image_get_vid -- Function not defined --

for cvs image_gallery and shazamgallery

Function has been renamed to _image_gallery_get_vid

Needs to be changed in 3 places. Don't think this is a clean patch, because I've already added some from merlin, but here it is anyhow.

Good luck.

Albert

AttachmentSize
shazam1.patch6.62 KB

#1

Bèr Kessels - May 11, 2006 - 10:52
Status:active» needs work

This patch is indeed far from clean.

#2

ajwwong - May 11, 2006 - 16:29

you're right. still just getting used to the patch thing. :-( probably shouldn't have submitted it.

good luck!

albert

#3

Egon Bianchet - May 31, 2006 - 22:05
Status:needs work» needs review

A clean patch

AttachmentSize
get-vid.patch.txt 1.39 KB

#4

hitka - June 8, 2006 - 15:27

In the current shazamgallery cvs version this is already fixed. It has one problem though -- the function not only got renamed, but it is now located in another module -- in image_gallery module.
It would be probably better not to be dependent on this module as shazamgallery is meant as a replacement of image_gallery. But if you need to have this dependency, you should also check for image_gallery module too as you check for image module and probably mention it in the README etc.

#5

Bèr Kessels - June 9, 2006 - 20:37
Status:needs review» needs work

we we don't want to depnd on that module, indeed.

#6

Zach Harkey - July 11, 2006 - 19:39

Should we duplicate this functionality e.g. _shazamgallery_get_vid () etc.? Or bite the bullet and depend on image_gallery? As it stands, it's been completely broken since May.

Furthermore, if we do duplicate the functionality, should _shazamgallery_get_vid() still get and set $image_gallery_nav_vocabulary or should it use a different variable like $shazamgallery_nav_vocabulary?

#7

Zach Harkey - July 11, 2006 - 20:05

Of course, now that I think about it, if you can't beat em...

#8

Bèr Kessels - July 12, 2006 - 09:36

I vote for duplicating the code. No need to depend on a module for only one function. In addition, we need to change the variable names, because otherwise it will create unnecessary conflicts with image_gallery

#9

Egon Bianchet - August 23, 2006 - 22:19

I duplicated the code. We still have to fix the form_alter because the vocabulary is showed both in categories and in the gallery fieldsets. The breadcrumb looks broken too ...

AttachmentSize
shazamgallery-vid.patch.txt 2.14 KB

#10

Egon Bianchet - August 31, 2006 - 20:22
Status:needs work» needs review

Fixed form_alter

AttachmentSize
shazamgallery-vid-2.patch.txt 2.62 KB
 
 

Drupal is a registered trademark of Dries Buytaert.