*Optimize the code.
This commit is contained in:
@@ -11,6 +11,7 @@ $config->file->charset = array('UTF-8' => 'UTF-8', 'GBK' => 'GBK', 'BIG5' => '
|
||||
$config->file->maxImport = 100;
|
||||
|
||||
$config->file->objectType['stepResult'] = 'testcase';
|
||||
$config->file->objectType['requirement'] = 'story';
|
||||
|
||||
$config->file->convertURL['common']['view'] = '1';
|
||||
$config->file->convertURL['story']['edit'] = '1';
|
||||
|
||||
@@ -81,7 +81,6 @@ $sessionString .= session_name() . '=' . session_id();
|
||||
echo "<li title='{$uploadDate}'>" . html::a($this->createLink('file', 'download', "fileID=$file->id") . $sessionString, $fileTitle . " <span class='text-muted'>({$fileSize})</span>", '_blank', "onclick=\"return downloadFile($file->id, '$file->extension', $imageWidth, '$file->title')\"");
|
||||
|
||||
$objectType = zget($this->config->file->objectType, $file->objectType);
|
||||
if($objectType = 'requirement') $objectType = 'story';
|
||||
if(common::hasPriv($objectType, 'edit', $object))
|
||||
{
|
||||
echo "<span class='right-icon'> ";
|
||||
|
||||
Reference in New Issue
Block a user