diff --git a/src/messenger/webim/design/default/chat.tpl b/src/messenger/webim/design/default/chat.tpl index 01d99a8b..39bb2cd9 100644 --- a/src/messenger/webim/design/default/chat.tpl +++ b/src/messenger/webim/design/default/chat.tpl @@ -177,7 +177,7 @@ ${endif:agent} <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"> <tr> - <td width="20" valign="top"><img src='${webimroot}${msg:image.chat.history}' width="20" height="80" border="0" alt="" /></td> + <td width="20" valign="top"><img src='${webimroot}${url:image.chat.history}' width="20" height="80" border="0" alt="" /></td> <td colspan="2" width="100%" height="100%" valign="top" id="chatwndtd"> <table width="100%" height="100%" cellspacing="0" cellpadding="0" border="0"> <tr> @@ -204,7 +204,7 @@ ${if:canpost} </tr> <tr> - <td width="20" valign="top"><img src='${webimroot}${msg:image.chat.message}' width="20" height="85" border="0" alt="" /></td> + <td width="20" valign="top"><img src='${webimroot}${url:image.chat.message}' width="20" height="85" border="0" alt="" /></td> ${if:isOpera95} <td width="100%" height="60%" valign="top" id="msgwndtd"> ${else:isOpera95} diff --git a/src/messenger/webim/libs/expand.php b/src/messenger/webim/libs/expand.php index 18fe84af..aef55a9f 100644 --- a/src/messenger/webim/libs/expand.php +++ b/src/messenger/webim/libs/expand.php @@ -53,7 +53,7 @@ function expand_var($matches) { } } - } else if($prefix == 'msg:') { + } else if($prefix == 'msg:' || $prefix == 'url:') { if(strpos($var,",")!==false) { $pos = strpos($var,","); $param = substr($var, $pos+1);