From 8e3776a290bb54db86450fed2b8d8a44cb756f09 Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Thu, 21 Jan 2010 10:51:31 +0000 Subject: [PATCH] Fix: add DOL_URL_ROOT in extra tabs --- htdocs/lib/company.lib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/lib/company.lib.php b/htdocs/lib/company.lib.php index 8b6fbafd89c..6ec3fb983c4 100644 --- a/htdocs/lib/company.lib.php +++ b/htdocs/lib/company.lib.php @@ -2,6 +2,7 @@ /* Copyright (C) 2006-2009 Laurent Destailleur * Copyright (C) 2006 Rodolphe Quiedeville * Copyright (C) 2007 Patrick Raguin + * Copyright (C) 2010 Regis Houssin * * 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 @@ -131,7 +132,7 @@ function societe_prepare_head($objsoc) { $values=explode(':',$value); if ($values[2]) $langs->load($values[2]); - $head[$h][0] = preg_replace('/__ID__/i',$objsoc->id,$values[3]); + $head[$h][0] = DOL_URL_ROOT . preg_replace('/__ID__/i',$objsoc->id,$values[3]); $head[$h][1] = $langs->trans($values[1]); $head[$h][2] = 'tab'.$values[1]; $h++;