* Modify tree style.

This commit is contained in:
caoyanyi
2023-04-04 16:58:29 +08:00
parent 081cec516e
commit 43c80f5268
3 changed files with 10 additions and 7 deletions
+5 -5
View File
@@ -41,12 +41,12 @@ class api extends control
*/
public function index($libID = 0, $moduleID = 0, $apiID = 0, $version = 0, $release = 0, $appendLib = 0, $browseType = '', $param = 0)
{
$objectType = $this->objectType;
$objectID = $this->objectID;
$objectType = $this->objectType;
$objectID = $this->objectID;
$isFirstLoad = $libID ? false : true;
/* Get all api doc libraries. */
$loadLib = false;
$libs = $this->doc->getApiLibs($appendLib, $objectType, $objectID);
$libs = $this->doc->getApiLibs($appendLib, $objectType, $objectID);
if(empty($libs) and $objectType != 'nolink')
{
$objectType = 'nolink';
@@ -78,7 +78,6 @@ class api extends control
$libID = $lib->id;
$objectType = $lib->product ? 'product' : ($lib->project ? 'project' : '');
$objectID = $lib->product ? $lib->product : $lib->project;
if($loadLib) $libs = $this->doc->getApiLibs($appendLib);
}
/* Get an api doc. */
@@ -112,6 +111,7 @@ class api extends control
$this->view->lib = $lib;
$this->view->release = $release;
$this->view->isFirstLoad = $isFirstLoad;
$this->view->title = $this->lang->api->pageTitle;
$this->view->libID = $libID;
$this->view->apiID = $apiID;