This commit is contained in:
Robert Gaggl 2001-11-18 22:05:08 +00:00
parent 85e35a4ccc
commit 3137f66cee
2 changed files with 4 additions and 4 deletions

View file

@ -95,8 +95,8 @@ function imageurl_macro(param) {
if (!p)
return;
res.write(getProperty("imgUrl"));
if (p.parent.alias)
res.write(p.parent.alias + "/");
if (p.obj.weblog)
res.write(p.obj.weblog.alias + "/");
res.write(p.obj.filename + "." + p.obj.fileext);
}

View file

@ -203,8 +203,8 @@ function chooser(param) {
function renderImage(img,param) {
res.write("<img src=\"" + getProperty("imgUrl"));
if (this.alias)
res.write(this.alias + "/");
if (img.weblog)
res.write(img.weblog.alias + "/");
res.write(img.filename + "." + img.fileext + "\"");
res.write(" width=\"" + (param.width ? param.width : img.width) + "\"");
res.write(" height=\"" + (param.height ? param.height: img.height) + "\"");