* Fix bug #13828.
This commit is contained in:
@@ -223,16 +223,18 @@ class doc extends control
|
||||
* Delete a library.
|
||||
*
|
||||
* @param int $libID
|
||||
* @param string $confirm yes|no
|
||||
* @param string $confirm yes|no
|
||||
* @param string $from lib|book
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function deleteLib($libID, $confirm = 'no')
|
||||
public function deleteLib($libID, $confirm = 'no', $from = 'lib')
|
||||
{
|
||||
if($libID == 'product' or $libID == 'execution') die();
|
||||
if($confirm == 'no')
|
||||
{
|
||||
die(js::confirm($this->lang->doc->confirmDeleteLib, $this->createLink('doc', 'deleteLib', "libID=$libID&confirm=yes")));
|
||||
$deleteTip = $from == 'book' ? $this->lang->doc->confirmDeleteBook : $this->lang->doc->confirmDeleteLib;
|
||||
die(js::confirm($deleteTip, $this->createLink('doc', 'deleteLib', "libID=$libID&confirm=yes")));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -175,6 +175,7 @@ $lang->doc->mail->edit->title = "%s edited document #%s:%s";
|
||||
|
||||
$lang->doc->confirmDelete = "Möchten Sie dieses Dokument löschen?";
|
||||
$lang->doc->confirmDeleteLib = "Möchten Sie diese Bibliothek löschen?";
|
||||
$lang->doc->confirmDeleteBook = "Do you want to delete this book?";
|
||||
$lang->doc->confirmDeleteChapter = "Do you want to delete this chapter?";
|
||||
$lang->doc->errorEditSystemDoc = "System Dokumentenbibliothek darf nicht geändert werden.";
|
||||
$lang->doc->errorEmptyProduct = "Kein {$lang->productCommon}. Kann nicht erstellt werden.";
|
||||
|
||||
@@ -180,6 +180,7 @@ $lang->doc->mail->edit->title = "%s edited document #%s:%s";
|
||||
|
||||
$lang->doc->confirmDelete = "Do you want to delete this document?";
|
||||
$lang->doc->confirmDeleteLib = "Do you want to delete this document library?";
|
||||
$lang->doc->confirmDeleteBook = "Do you want to delete this book?";
|
||||
$lang->doc->confirmDeleteChapter = "Do you want to delete this chapter?";
|
||||
$lang->doc->errorEditSystemDoc = "You don't have to change system document library.";
|
||||
$lang->doc->errorEmptyProduct = "No {$lang->productCommon}. It cannot be created.";
|
||||
|
||||
@@ -175,6 +175,7 @@ $lang->doc->mail->edit->title = "%s edited document #%s:%s";
|
||||
|
||||
$lang->doc->confirmDelete = "Voulez-vous supprimer ce document ?";
|
||||
$lang->doc->confirmDeleteLib = "Voulez-vous supprimer cette Bibliothèque ?";
|
||||
$lang->doc->confirmDeleteBook = "Do you want to delete this book?";
|
||||
$lang->doc->confirmDeleteChapter = "Do you want to delete this chapter?";
|
||||
$lang->doc->errorEditSystemDoc = "Vous n'avez pas besoin de changer de système de Bibliothèque.";
|
||||
$lang->doc->errorEmptyProduct = "Aucun {$lang->productCommon}. Il ne peut pas être créé.";
|
||||
|
||||
@@ -176,6 +176,7 @@ $lang->doc->mail->edit->title = "%s edited document #%s:%s";
|
||||
$lang->doc->confirmDelete = "Bạn có muốn xóa this document?";
|
||||
$lang->doc->confirmDeleteLib = "Bạn có muốn xóa this document library?";
|
||||
$lang->doc->confirmDeleteChapter = "Do you want to delete this chapter?";
|
||||
$lang->doc->confirmDeleteBook = "Do you want to delete this book?";
|
||||
$lang->doc->errorEditSystemDoc = "You don't have to change system document library.";
|
||||
$lang->doc->errorEmptyProduct = "Không có {$lang->productCommon}. It cannot be created.";
|
||||
$lang->doc->errorEmptyProject = "Không có {$lang->executionCommon}. It cannot be created.";
|
||||
|
||||
@@ -180,6 +180,7 @@ $lang->doc->mail->edit->title = "%s编辑了文档 #%s:%s";
|
||||
|
||||
$lang->doc->confirmDelete = "您确定删除该文档吗?";
|
||||
$lang->doc->confirmDeleteLib = "您确定删除该文档库吗?";
|
||||
$lang->doc->confirmDeleteBook = "您确定删除该手册吗?";
|
||||
$lang->doc->confirmDeleteChapter = "您确定删除该章节吗?";
|
||||
$lang->doc->errorEditSystemDoc = "系统文档库无需修改。";
|
||||
$lang->doc->errorEmptyProduct = "没有{$lang->productCommon},无法创建文档";
|
||||
|
||||
Reference in New Issue
Block a user