* Fix bug.

This commit is contained in:
tanghucheng
2022-03-09 17:27:01 +08:00
parent 07f2f81d43
commit b4726315ba
2 changed files with 20 additions and 17 deletions
+7 -10
View File
@@ -19,22 +19,19 @@
</div>
<?php if($this->config->edition != 'open'):?>
<div class='alert alert-warning strong'>
<?php
if(common::hasPriv('custom', 'libreoffice'))
{
printf($lang->doc->notSetOffice, zget($lang->doc->typeList, $docType), $this->createLink('custom', 'libreoffice', 'onlybody=yes'));
}
else
{
printf($lang->doc->notSetOffice, zget($lang->doc->typeList, $docType), '###'); echo $lang->doc->accessDenied;
}
?>
<?php printf($lang->doc->notSetOffice, zget($lang->doc->typeList, $docType), common::hasPriv('custom', 'libreoffice') ? $this->createLink('custom', 'libreoffice', '', '', true) : '###');?>
</div>
<?php else:?>
<div class='alert alert-warning strong'><?php printf($lang->doc->cannotCreateOffice, zget($lang->doc->typeList, $docType));?></div>
<?php endif;?>
</div>
</div>
<script>
$("a[href^='###']").click(function()
{
alert('<?php echo $lang->doc->accessDenied;?>');
});
</script>
</body>
</html>
<?php else:?>