getDesc() not working?

My client needs to put html (just links really) into image descriptions, so I've changed

printImageDesc(true);

to

echo htmlspecialchars_decode(getDesc());

However it isn't recognising the getDesc() function? There's something obvious that I'm missing here, but not sure what it is!

Comments

  • `getImageDesc( )` perhaps?
  • Holy crap that works! Thanks heaps :)
  • acrylian Administrator, Developer
    Just to note: `getDesc()` is a class method and needs to be used with the global object of the current image like `$_zp_current_image->getDesc()`. That is indeed the same as `getImageDesc()`.
Sign In or Register to comment.