* Fix bug #11867.
This commit is contained in:
@@ -491,8 +491,22 @@ class doc extends control
|
||||
else
|
||||
{
|
||||
$this->app->rawMethod = $objectType;
|
||||
|
||||
/* High light menu. */
|
||||
if($objectType)
|
||||
{
|
||||
$menu = $this->lang->doc->menu->$objectType;
|
||||
$menu['alias'] .= ',edit';
|
||||
$menu['subModule'] = 'doc';
|
||||
$this->lang->doc->menu->$objectType = $menu;
|
||||
}
|
||||
}
|
||||
|
||||
$objects = $this->doc->getOrderedObjects($objectType);
|
||||
$libs = $this->doc->getLibsByObject($objectType, $objectID);
|
||||
$this->lang->modulePageNav = $this->doc->select($objectType, $objects, $objectID, $libs, $libID);
|
||||
$this->lang->TRActions = common::hasPriv('doc', 'create') ? $this->doc->buildCreateButton4Doc($objectType, $objectID, $libID) : '';
|
||||
|
||||
$this->view->title = $lib->name . $this->lang->colon . $this->lang->doc->edit;
|
||||
$this->view->position[] = html::a($this->createLink('doc', 'browse', "libID=$libID"), $lib->name);
|
||||
$this->view->position[] = $this->lang->doc->edit;
|
||||
|
||||
@@ -10,7 +10,6 @@
|
||||
* @link http://www.zentao.net
|
||||
*/
|
||||
?>
|
||||
<?php $pageCSS .= $this->doc->appendNavCSS();?>
|
||||
<?php include '../../common/view/header.html.php';?>
|
||||
<?php if($doc->contentType == 'html') include '../../common/view/kindeditor.html.php';?>
|
||||
<?php if($doc->contentType == 'markdown') include '../../common/view/markdown.html.php';?>
|
||||
|
||||
@@ -33,7 +33,7 @@ $sideWidth = common::checkNotCN() ? '270' : '238';
|
||||
if($type == 'book')
|
||||
{
|
||||
common::printLink('doc', 'editLib', "rootID=$libID", $lang->doc->editBook, '', "class='btn btn-info btn-wide iframe'", '', true);
|
||||
common::printLink('doc', 'manageBook', "bookID=$libID", $lang->doc->manageBook, '', "class='btn btn-info btn-wide iframe'", '', true);
|
||||
common::printLink('doc', 'manageBook', "bookID=$libID", $lang->doc->manageBook, '', "class='btn btn-info btn-wide'");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user