* Finish task #1201.

This commit is contained in:
pengjiangxiu
2017-08-18 15:10:07 +08:00
parent 594310a61a
commit 7f6274c07d
4 changed files with 16 additions and 14 deletions
+4 -4
View File
@@ -1156,8 +1156,8 @@ class bug extends control
/**
* Confirm story change.
*
* @param int $bugID
*
* @param int $bugID
* @access public
* @return void
*/
@@ -1171,8 +1171,8 @@ class bug extends control
/**
* Delete a bug.
*
* @param int $bugID
*
* @param int $bugID
* @param string $confirm yes|no
* @access public
* @return void
+3 -3
View File
@@ -588,14 +588,14 @@ class commonModel extends model
* Print link to an modules' methd.
*
* Before printing, check the privilege first. If no privilege, return fasle. Else, print the link, return true.
*
*
* @param string $module the module name
* @param string $method the method
* @param string $vars vars to be passed
* @param string $label the label of the link
* @param string $target the target of the link
* @param string $misc others
* @param bool $newline
* @param bool $newline
* @static
* @access public
* @return bool
@@ -1129,7 +1129,7 @@ class commonModel extends model
global $app, $lang;
/* Check is the super admin or not. */
if($app->user->admin) return true;
if($app->user->admin) return true;
/* If not super admin, check the rights. */
$rights = $app->user->rights['rights'];
+6 -4
View File
@@ -108,10 +108,10 @@
$imageWidth = $imageSize ? $imageSize[0] : 0;
}
$sessionString = $config->requestType == 'PATH_INFO' ? '?' : '&';
$sessionString .= session_name() . '=' . session_id();
$fileID = $file->id;
$url = helper::createLink('file', 'download', 'fileID=' . $fileID) . $sessionString ;
$sessionString = $config->requestType == 'PATH_INFO' ? '?' : '&';
$sessionString .= session_name() . '=' . session_id();
$fileID = $file->id;
$url = helper::createLink('file', 'download', 'fileID=' . $fileID) . $sessionString ;
?>
<a class='media-wrapper' href='<?php echo $url;?>' title='<?php echo $file->title . '.' . $file->extension?>' target='_blank' onclick="return downloadFile(<?php echo $file->id?>, '<?php echo $file->extension?>', <?php echo $imageWidth?>)">
<?php
@@ -139,7 +139,9 @@
</a>
<div class='card-heading'>
<a href='<?php echo $this->createLink($file->objectType, 'view', "objectID=$file->objectID");?>'><?php echo $file->title . '.' . $file->extension . ' [' . strtoupper($file->objectType) . ' #' . $file->objectID . ']';?></a>
<?php if(common::hasPriv('file', 'delete')): ?>
<a href='<?php echo $this->createLink('file', 'delete', "fileID=$file->id"); ?>' target='hiddenwin' title='<?php echo $lang->delete?>' class='delete pull-right'><i class='icon icon-remove'></i></a>
<?php endif?>
</div>
</div>
</div>
+3 -3
View File
@@ -746,9 +746,9 @@ class userModel extends model
/**
* Keep the user in login state.
*
* @param string $account
* @param string $password
*
* @param string $account
* @param string $password
* @access public
* @return void
*/