Merge pull request #6367 from gnovaro/patch-2

Code style
This commit is contained in:
Laurent Destailleur 2017-02-06 20:25:16 +01:00 committed by GitHub
commit d230883638

View File

@ -34,11 +34,11 @@
*/ */
class FormFile class FormFile
{ {
var $db; private $db;
var $error; private $numoffiles;
var $numoffiles; public $error;
var $infofiles; // Used to return informations by function getDocumentsLink public $infofiles; // Used to return informations by function getDocumentsLink
/** /**
@ -548,7 +548,7 @@ class FormFile
if (empty($buttonlabel)) $buttonlabel=$langs->trans('Generate'); if (empty($buttonlabel)) $buttonlabel=$langs->trans('Generate');
if ($conf->browser->layout == 'phone') $urlsource.='#'.$forname.'_form'; // So we switch to form after a generation if ($conf->browser->layout == 'phone') $urlsource.='#'.$forname.'_form'; // So we switch to form after a generation
if (empty($noform)) $out.= '<form action="'.$urlsource.(empty($conf->global->MAIN_JUMP_TAG)?'':'#builddoc').'" name="'.$forname.'" id="'.$forname.'_form" method="post">'; if (empty($noform)) $out.= '<form action="'.$urlsource.(empty($conf->global->MAIN_JUMP_TAG)?'':'#builddoc').'" id="'.$forname.'_form" method="post">';
$out.= '<input type="hidden" name="action" value="builddoc">'; $out.= '<input type="hidden" name="action" value="builddoc">';
$out.= '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">'; $out.= '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';