* adjust for replace full webpath image to mail module.

This commit is contained in:
wyd621
2014-03-24 01:59:50 +00:00
parent 37d7253961
commit b66c834b43
8 changed files with 12 additions and 46 deletions
+1 -9
View File
@@ -24,15 +24,7 @@ if($onlybody) $_GET['onlybody'] = 'no';
<td>
<fieldset>
<legend><?php echo $lang->testtask->desc;?></legend>
<div class='content'>
<?php
if(strpos($testtask->desc, 'src="data/upload'))
{
$testtask->desc = preg_replace('/<img (.*)src="/', '<img $1 src="http://' . $this->server->http_host . $this->config->webRoot, $testtask->desc);
}
echo $testtask->desc;
?>
</div>
<div class='content'><?php echo $testtask->desc;?></div>
</fieldset>
</td>
</tr>