bugfix
This commit is contained in:
parent
85e35a4ccc
commit
3137f66cee
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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) + "\"");
|
||||
|
|
Loading…
Add table
Reference in a new issue