From 034090ab4566e204e4d5316de67d4b0bd5f9b9f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 25 Jan 2010 12:40:23 +0000 Subject: [PATCH] Add function to create link to phpMyAdmin documentation. --- libraries/common.lib.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 81916a51b..063c6a7e9 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -439,6 +439,24 @@ function PMA_showMySQLDocu($chapter, $link, $big_icon = false, $anchor = '', $ju } } // end of the 'PMA_showMySQLDocu()' function + +/** + * Displays a link to the phpMyAdmin documentation + * + * @param string anchor in documentation + * + * @return string the html link + * + * @access public + */ +function PMA_showDocu($anchor) { + if ($GLOBALS['cfg']['ReplaceHelpImg']) { + return '' . $GLOBALS['strDocu'] . ''; + } else { + return '[' . $GLOBALS['strDocu'] . ']'; + } +} // end of the 'PMA_showDocu()' function + /** * returns HTML for a footnote marker and add the messsage to the footnotes *