separate prefix for URL messages

git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@175 c66351dc-e62f-0410-b875-e3a5c0b9693f
This commit is contained in:
Evgeny Gryaznov 2008-10-12 00:43:14 +00:00
parent 4f06e5a3db
commit ded5ac9888
2 changed files with 3 additions and 3 deletions

View File

@ -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}

View File

@ -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);