mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Fix travis error
This commit is contained in:
parent
39ebaec064
commit
4e021c123b
|
|
@ -869,7 +869,7 @@ class FormFile
|
|||
else $this->infofiles['extensions'][$ext]++;
|
||||
|
||||
// Preview
|
||||
if (! empty($conf->use_javascript_ajax) && ! empty($conf->browser->layout != 'phone'))
|
||||
if (! empty($conf->use_javascript_ajax) && ($conf->browser->layout != 'phone'))
|
||||
{
|
||||
$tmparray = getAdvancedPreviewUrl($modulepart, $relativepath, 1);
|
||||
if ($tmparray && $tmparray['url']) $tmpout.= '<li><a href="'.$tmparray['url'].'"'.($tmparray['css']?' class="'.$tmparray['css'].'"':'').($tmparray['mime']?' mime="'.$tmparray['mime'].'"':'').($tmparray['target']?' target="'.$tmparray['target'].'"':'').'>'.img_picto('','detail').' '.$langs->trans("Preview").' '.$ext.'</a></li>';
|
||||
|
|
|
|||
|
|
@ -1899,7 +1899,7 @@ if (! function_exists("llxFooter"))
|
|||
|
||||
if (! empty($delayedhtmlcontent)) print $delayedhtmlcontent;
|
||||
|
||||
// TODO Move this in lib_head.js
|
||||
// TODO Move this in lib_head.js.php
|
||||
|
||||
// Wrapper to show tooltips (html or onclick popup)
|
||||
if (! empty($conf->use_javascript_ajax) && empty($conf->dol_no_mouse_hover))
|
||||
|
|
@ -1922,7 +1922,7 @@ if (! function_exists("llxFooter"))
|
|||
}
|
||||
|
||||
// Wrapper to manage document_preview
|
||||
if (! empty($conf->use_javascript_ajax) && ! empty($conf->browser->layout != 'phone'))
|
||||
if (! empty($conf->use_javascript_ajax) && ($conf->browser->layout != 'phone'))
|
||||
{
|
||||
print "\n<!-- JS CODE TO ENABLE document_preview -->\n";
|
||||
print '<script type="text/javascript">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user