Fixed Story.editlink_macro() with image parameter

This commit is contained in:
Tobi Schäfer 2008-05-09 18:55:45 +00:00
parent f73973fabb
commit f554f43d77

View file

@ -298,7 +298,9 @@ Story.prototype.editableby_macro = function(param) {
Story.prototype.editlink_macro = function(param) {
res.push();
if (param.image && this.site.images.get(param.image)) {
renderImage(this.site.images.get(param.image), param);
var image = this.site.images.get(param.image);
delete param.image;
image && image.render_macro(param);
} else {
res.write(param.text || gettext("Edit"));
}