* Fix bug #19869,19876.
This commit is contained in:
@@ -365,7 +365,7 @@ class gitlab
|
||||
$commits = $this->getCommitsByPath($entry);
|
||||
|
||||
if(!empty($commits)) $file->revision = zget($commits[0], 'id', '');
|
||||
$info->kind = $file->type == 'tree' ? 'dir' : 'file';
|
||||
$info->kind = (isset($file->type) and $file->type == 'tree') ? 'dir' : 'file';
|
||||
}
|
||||
|
||||
return $info;
|
||||
|
||||
@@ -716,6 +716,8 @@ class repo extends control
|
||||
*/
|
||||
public function diff($repoID, $objectID = 0, $entry = '', $oldRevision = '', $newRevision = '', $showBug = 'false', $encoding = '', $isBranchOrTag = false)
|
||||
{
|
||||
$oldRevision = urldecode(urldecode($oldRevision)); //Fix error.
|
||||
|
||||
$this->commonAction($repoID, $objectID);
|
||||
|
||||
if($this->get->repoPath) $entry = $this->get->repoPath;
|
||||
|
||||
Reference in New Issue
Block a user