Introduce hidden constant PRODUCT_ADD_FORM_ADD_TO for an old feature not

used so we can disable/enabled if we want.
This commit is contained in:
Laurent Destailleur 2016-09-12 18:15:01 +02:00
parent 5ea9fc7467
commit 2587958c89

View File

@ -1,6 +1,6 @@
<?php
/* Copyright (C) 2001-2007 Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2004-2015 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2016 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2005 Eric Seigne <eric.seigne@ryxeo.com>
* Copyright (C) 2005-2015 Regis Houssin <regis.houssin@capnetworks.com>
* Copyright (C) 2006 Andre Cianfarani <acianfa@free.fr>
@ -1848,7 +1848,7 @@ print "\n</div>\n";
* All the "Add to" areas
*/
if ($object->id && ($action == '' || $action == 'view') && $object->status)
if (! empty($conf->global->PRODUCT_ADD_FORM_ADD_TO) && $object->id && ($action == '' || $action == 'view') && $object->status)
{
//Variable used to check if any text is going to be printed
$html = '';