* finish task #1575.

This commit is contained in:
wyd621
2013-07-17 11:05:28 +08:00
parent d31842a4c8
commit c920eeb60f
5 changed files with 30 additions and 10 deletions
+6 -2
View File
@@ -10,6 +10,10 @@
* @link http://www.zentao.net
*/
?>
<?php
$onlybody = isonlybody() ? true : false;
if($onlybody) $_GET['onlybody'] = 'no';
?>
<table width='98%' align='center'>
<tr class='header'>
<td>
@@ -24,8 +28,7 @@
<?php
if(strpos($bug->steps, 'src="data/upload'))
{
$bug->steps = str_replace('<img src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $bug->steps);
$bug->steps = str_replace('<img alt="" src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $bug->steps);
$bug->steps = preg_replace('/<img (.*) src="/', '<img $1 src="http://' . $this->server->http_host . $this->config->webRoot, $bug->steps);
}
echo $bug->steps;
?>
@@ -37,3 +40,4 @@
<td><?php include '../../common/view/mail.html.php';?></td>
</tr>
</table>
<?php if($onlybody) $_GET['onlybody'] = 'yes';?>
+6 -2
View File
@@ -10,6 +10,10 @@
* @link http://www.zentao.net
*/
?>
<?php
$onlybody = isonlybody() ? true : false;
if($onlybody) $_GET['onlybody'] = 'no';
?>
<table width='98%' align='center'>
<tr class='header'>
<td>
@@ -24,8 +28,7 @@
<?php
if(strpos($task->desc, 'src="data/upload'))
{
$task->desc = str_replace('<img src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $task->desc);
$task->desc = str_replace('<img alt="" src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $task->desc);
$task->desc = preg_replace('/<img (.*) src="/', '<img $1 src="http://' . $this->server->http_host . $this->config->webRoot, $task->desc);
}
echo $task->desc;
?>
@@ -37,3 +40,4 @@
<td><?php include '../../common/view/mail.html.php';?></td>
</tr>
</table>
<?php if($onlybody) $_GET['onlybody'] = 'yes';?>
+6 -2
View File
@@ -10,6 +10,10 @@
* @link http://www.zentao.net
*/
?>
<?php
$onlybody = isonlybody() ? true : false;
if($onlybody) $_GET['onlybody'] = 'no';
?>
<table width='98%' align='center'>
<tr class='header'>
<td>
@@ -24,8 +28,7 @@
<?php
if(strpos($story->spec, 'src="data/upload'))
{
$story->spec = str_replace('<img src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $story->spec);
$story->spec = str_replace('<img alt="" src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $story->spec);
$story->spec = preg_replace('/<img (.*) src="/', '<img $1 src="http://' . $this->server->http_host . $this->config->webRoot, $story->spec);
}
echo $story->spec;
?>
@@ -37,3 +40,4 @@
<td><?php include '../../common/view/mail.html.php';?></td>
</tr>
</table>
<?php if($onlybody) $_GET['onlybody'] = 'yes';?>
+6 -2
View File
@@ -10,6 +10,10 @@
* @link http://www.zentao.net
*/
?>
<?php
$onlybody = isonlybody() ? true : false;
if($onlybody) $_GET['onlybody'] = 'no';
?>
<table width='98%' align='center'>
<tr class='header'>
<td>
@@ -24,8 +28,7 @@
<?php
if(strpos($task->desc, 'src="data/upload'))
{
$task->desc = str_replace('<img src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $task->desc);
$task->desc = str_replace('<img alt="" src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $task->desc);
$task->desc = preg_replace('/<img (.*) src="/', '<img $1 src="http://' . $this->server->http_host . $this->config->webRoot, $task->desc);
}
echo $task->desc;
?>
@@ -37,3 +40,4 @@
<td><?php include '../../common/view/mail.html.php';?></td>
</tr>
</table>
<?php if($onlybody) $_GET['onlybody'] = 'yes';?>
+6 -2
View File
@@ -10,6 +10,10 @@
* @link http://www.zentao.net
*/
?>
<?php
$onlybody = isonlybody() ? true : false;
if($onlybody) $_GET['onlybody'] = 'no';
?>
<table width='98%' align='center'>
<tr class='header'>
<td>
@@ -24,8 +28,7 @@
<?php
if(strpos($testtask->desc, 'src="data/upload'))
{
$testtask->desc = str_replace('<img src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $testtask->desc);
$testtask->desc = str_replace('<img alt="" src="', '<img src="http://' . $this->server->http_host . $this->config->webRoot, $testtask->desc);
$testtask->desc = preg_replace('/<img (.*) src="/', '<img $1 src="http://' . $this->server->http_host . $this->config->webRoot, $testtask->desc);
}
echo $testtask->desc;
?>
@@ -37,3 +40,4 @@
<td><?php include '../../common/view/mail.html.php';?></td>
</tr>
</table>
<?php if($onlybody) $_GET['onlybody'] = 'yes';?>