add errors def in htmlformsms

This commit is contained in:
Frédéric FRANCE 2018-10-15 21:40:27 +02:00 committed by GitHub
parent 96ddebad4a
commit 9133d97e33
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,20 +1,21 @@
<?php <?php
/* Copyright (C) 2005-2011 Laurent Destailleur <eldy@users.sourceforge.net> /* Copyright (C) 2005-2011 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es> * Copyright (C) 2010 Juanjo Menent <jmenent@2byte.es>
* * Copyright (C) 2018 Frédéric France <frederic.france@netlogic.fr>
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by * This program is free software; you can redistribute it and/or modify
* the Free Software Foundation; either version 3 of the License, or * it under the terms of the GNU General Public License as published by
* (at your option) any later version. * the Free Software Foundation; either version 3 of the License, or
* * (at your option) any later version.
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of * This program is distributed in the hope that it will be useful,
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * but WITHOUT ANY WARRANTY; without even the implied warranty of
* GNU General Public License for more details. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* * GNU General Public License for more details.
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. * You should have received a copy of the GNU General Public License
*/ * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/** /**
* \file htdocs/core/class/html.formsms.class.php * \file htdocs/core/class/html.formsms.class.php
@ -37,33 +38,38 @@ class FormSms
*/ */
public $db; public $db;
var $fromname; public $fromname;
var $fromsms; public $fromsms;
var $replytoname; public $replytoname;
var $replytomail; public $replytomail;
var $toname; public $toname;
var $tomail; public $tomail;
var $withsubstit; // Show substitution array public $withsubstit; // Show substitution array
var $withfrom; public $withfrom;
var $withto; public $withto;
var $withtopic; public $withtopic;
var $withbody; public $withbody;
var $withfromreadonly; public $withfromreadonly;
var $withreplytoreadonly; public $withreplytoreadonly;
var $withtoreadonly; public $withtoreadonly;
var $withtopicreadonly; public $withtopicreadonly;
var $withcancel; public $withcancel;
var $substit=array(); public $substit=array();
var $param=array(); public $param=array();
/** /**
* @var string Error code (or message) * @var string Error code (or message)
*/ */
public $error=''; public $error='';
/**
* @var string[] Array of error strings
*/
public $errors=array();
/** /**
* Constructor * Constructor