diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 7538c69465b..53d1b5fe40b 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -1209,6 +1209,38 @@ function dol_syslog($message, $level = LOG_INFO, $ident = 0, $suffixinfilename =
}
}
+/**
+ * Return HTML code to output a button to open a dialog popup box.
+ * Such buttons must be included inside a HTML form.
+ *
+ * @param string $name A name for the html component
+ * @param string $label Label of button
+ * @param string $buttonstring button string
+ * @param string $url Url to open
+ * @param string $disabled Disabled text
+ * @return string HTML component with button
+ */
+function dolButtonToOpenUrlInDialogPopup($name, $label, $buttonstring, $url, $disabled = '')
+{
+ //print '';
+ $out = ''.$buttonstring.'';
+ $out .= '';
+ return $out;
+}
/**
* Show tab header of a card
@@ -1224,6 +1256,7 @@ function dol_syslog($message, $level = LOG_INFO, $ident = 0, $suffixinfilename =
* @param int $limittoshow Limit number of tabs to show. Use 0 to use automatic default value.
* @param string $moretabssuffix A suffix to use when you have several dol_get_fiche_head() in same page
* @return void
+ * @deprecated Use print dol_get_fiche_head() instead
*/
function dol_fiche_head($links = array(), $active = '0', $title = '', $notab = 0, $picto = '', $pictoisfullpath = 0, $morehtmlright = '', $morecss = '', $limittoshow = 0, $moretabssuffix = '')
{
diff --git a/htdocs/website/index.php b/htdocs/website/index.php
index fed5be51e87..f62e98575a2 100644
--- a/htdocs/website/index.php
+++ b/htdocs/website/index.php
@@ -2410,24 +2410,7 @@ if (!GETPOST('hide_websitemenu'))
if (! empty($conf->categorie->enabled)) {
//print '';
-
- //print '';
- print '';
- print '';
+ print dolButtonToOpenUrlInDialogPopup('categories', $langs->transnoentitiesnoconv("Categories"), '', '/categories/index.php?leftmenu=website&nosearch=1&type=website_page&website='.$website->ref, $disabled);
}
print '';