Skip to content

Commit

Permalink
init hook
Browse files Browse the repository at this point in the history
  • Loading branch information
csalvador committed Jun 26, 2013
1 parent df94f38 commit bfedddd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions htdocs/core/class/html.formfile.class.php
Expand Up @@ -207,7 +207,7 @@ function showdocuments($modulepart,$filename,$filedir,$urlsource,$genallowed,$de
return $this->getDocumentsLink($modulepart, $filename, $filedir);
}
$printer = ($user->rights->printipp->read && $conf->printipp->enabled)?true:false;

$hookmanager->initHooks(array('formfile'));
$forname='builddoc';
$out='';
$var=true;
Expand Down Expand Up @@ -450,9 +450,7 @@ function showdocuments($modulepart,$filename,$filedir,$urlsource,$genallowed,$de
$langs->load("errors");
$genbutton.= ' '.img_warning($langs->transnoentitiesnoconv("WarningNoDocumentModelActivated"));
}

if (! $allowgenifempty && ! is_array($modellist) && empty($modellist) && empty($conf->dol_no_mouse_hover) && $modulepart != 'unpaid') $genbutton='';

$out.= $genbutton;
$out.= '</th>';

Expand Down

0 comments on commit bfedddd

Please sign in to comment.