Fix travis error
This commit is contained in:
parent
39ebaec064
commit
4e021c123b
@ -869,7 +869,7 @@ class FormFile
|
|||||||
else $this->infofiles['extensions'][$ext]++;
|
else $this->infofiles['extensions'][$ext]++;
|
||||||
|
|
||||||
// Preview
|
// 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);
|
$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>';
|
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;
|
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)
|
// Wrapper to show tooltips (html or onclick popup)
|
||||||
if (! empty($conf->use_javascript_ajax) && empty($conf->dol_no_mouse_hover))
|
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
|
// 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 "\n<!-- JS CODE TO ENABLE document_preview -->\n";
|
||||||
print '<script type="text/javascript">
|
print '<script type="text/javascript">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user