From ac7c2e8e3f3de7a91220f48012159750c449e689 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 8 Dec 2008 14:06:53 +0000 Subject: [PATCH] Show link --- htdocs/product/photos.php | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/htdocs/product/photos.php b/htdocs/product/photos.php index bb845f7c950..6fd0dcca844 100644 --- a/htdocs/product/photos.php +++ b/htdocs/product/photos.php @@ -17,15 +17,13 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - * $Id$ */ /** \file htdocs/product/photos.php \ingroup product \brief Onglet photos de la fiche produit - \version $Revision$ + \version $Id$ */ require("./pre.inc.php"); @@ -156,10 +154,18 @@ if ($_GET["id"] || $_GET["ref"]) print "\n
\n"; - if ($_GET["action"] != 'ajout_photo' && $user->rights->produit->creer && ! empty($conf->global->MAIN_UPLOAD_DOC)) + if ($_GET["action"] != 'ajout_photo' && $user->rights->produit->creer) { - print ''; - print $langs->trans("AddPhoto").''; + if (! empty($conf->global->MAIN_UPLOAD_DOC)) + { + print ''; + print $langs->trans("AddPhoto").''; + } + else + { + print 'e'; + print $langs->trans("AddPhoto").''; + } } print "\n
\n";