move notify.class.php to core directory
This commit is contained in:
parent
f21aed7f61
commit
684e6bc63c
@ -1068,7 +1068,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
$text=$langs->trans('ConfirmValidateProp',$numref);
|
$text=$langs->trans('ConfirmValidateProp',$numref);
|
||||||
if ($conf->notification->enabled)
|
if ($conf->notification->enabled)
|
||||||
{
|
{
|
||||||
require_once(DOL_DOCUMENT_ROOT ."/notify.class.php");
|
require_once(DOL_DOCUMENT_ROOT ."/core/notify.class.php");
|
||||||
$notify=new Notify($db);
|
$notify=new Notify($db);
|
||||||
$text.='<br>';
|
$text.='<br>';
|
||||||
$text.=$notify->confirmMessage('NOTIFY_VAL_PROPAL',$propal->socid);
|
$text.=$notify->confirmMessage('NOTIFY_VAL_PROPAL',$propal->socid);
|
||||||
|
|||||||
@ -1368,7 +1368,7 @@ else
|
|||||||
$text=$langs->trans('ConfirmValidateOrder',$numref);
|
$text=$langs->trans('ConfirmValidateOrder',$numref);
|
||||||
if ($conf->notification->enabled)
|
if ($conf->notification->enabled)
|
||||||
{
|
{
|
||||||
require_once(DOL_DOCUMENT_ROOT ."/notify.class.php");
|
require_once(DOL_DOCUMENT_ROOT ."/core/notify.class.php");
|
||||||
$notify=new Notify($db);
|
$notify=new Notify($db);
|
||||||
$text.='<br>';
|
$text.='<br>';
|
||||||
$text.=$notify->confirmMessage('NOTIFY_VAL_ORDER',$commande->socid);
|
$text.=$notify->confirmMessage('NOTIFY_VAL_ORDER',$commande->socid);
|
||||||
|
|||||||
@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
require("../main.inc.php");
|
require("../main.inc.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/html.formfile.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/html.formfile.class.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT ."/notify.class.php");
|
require_once(DOL_DOCUMENT_ROOT ."/core/notify.class.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT ."/commande/commande.class.php");
|
require_once(DOL_DOCUMENT_ROOT ."/commande/commande.class.php");
|
||||||
|
|
||||||
if (!$user->rights->commande->lire) accessforbidden();
|
if (!$user->rights->commande->lire) accessforbidden();
|
||||||
|
|||||||
@ -2174,7 +2174,7 @@ else
|
|||||||
$text=$langs->trans('ConfirmValidateBill',$numref);
|
$text=$langs->trans('ConfirmValidateBill',$numref);
|
||||||
if ($conf->notification->enabled)
|
if ($conf->notification->enabled)
|
||||||
{
|
{
|
||||||
require_once(DOL_DOCUMENT_ROOT ."/notify.class.php");
|
require_once(DOL_DOCUMENT_ROOT ."/core/notify.class.php");
|
||||||
$notify=new Notify($db);
|
$notify=new Notify($db);
|
||||||
$text.='<br>';
|
$text.='<br>';
|
||||||
$text.=$notify->confirmMessage('NOTIFY_VAL_FAC',$fac->socid);
|
$text.=$notify->confirmMessage('NOTIFY_VAL_FAC',$fac->socid);
|
||||||
|
|||||||
@ -26,7 +26,7 @@
|
|||||||
* \version $Id$
|
* \version $Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT."/notify.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/core/notify.class.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/product/product.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/product/product.class.php");
|
||||||
require_once(DOL_DOCUMENT_ROOT."/compta/facture/facture.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/compta/facture/facture.class.php");
|
||||||
|
|
||||||
|
|||||||
@ -576,7 +576,7 @@ if ($id > 0 || ! empty($ref))
|
|||||||
$text=$langs->trans('ConfirmValidateOrder',$newref);
|
$text=$langs->trans('ConfirmValidateOrder',$newref);
|
||||||
if ($conf->notification->enabled)
|
if ($conf->notification->enabled)
|
||||||
{
|
{
|
||||||
require_once(DOL_DOCUMENT_ROOT ."/notify.class.php");
|
require_once(DOL_DOCUMENT_ROOT ."/core/notify.class.php");
|
||||||
$notify=new Notify($db);
|
$notify=new Notify($db);
|
||||||
$text.='<br>';
|
$text.='<br>';
|
||||||
$text.=$notify->confirmMessage(3,$commande->socid);
|
$text.=$notify->confirmMessage(3,$commande->socid);
|
||||||
|
|||||||
@ -97,7 +97,7 @@ class InterfaceNotification
|
|||||||
// Si module notification non actif, on ne fait rien
|
// Si module notification non actif, on ne fait rien
|
||||||
if (! $conf->notification->enabled) return 0;
|
if (! $conf->notification->enabled) return 0;
|
||||||
|
|
||||||
require_once(DOL_DOCUMENT_ROOT .'/notify.class.php');
|
require_once(DOL_DOCUMENT_ROOT .'/core/notify.class.php');
|
||||||
|
|
||||||
if ($action == 'BILL_VALIDATE')
|
if ($action == 'BILL_VALIDATE')
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user