diff --git a/ChangeLog b/ChangeLog index 1b6a10b74..6e9ad1b58 100755 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,11 @@ $Source$ conversion (sorry to late :-( ), use of $_REQUEST * sql.php: fixed some 'not refreshing left frame' * import.php: refresh left frame also on multiqueries and bookmarks + * libraries/common.lib.php: + - fixed bug #1416848 'Insert new row from Browse page' + - PMA_checkPageValidity() [bug #1416848] + - added PMA_getIcon() + - PMA_getDbLink(): unescape names 2006-02-04 Marc Delisle * libraries/Config.class.php: bug #1409770 auto-detection and dirname on diff --git a/libraries/common.lib.php b/libraries/common.lib.php index f33e09c34..221d78d94 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -504,6 +504,25 @@ require_once './libraries/Config.class.php'; if (!defined('PMA_MINIMUM_COMMON')) { + + /** + * string PMA_getIcon(string $icon) + * + * @uses $GLOBALS['pmaThemeImage'] + * @param $icon name of icon + * @return html img tag + */ + function PMA_getIcon($icon, $alternate = '') + { + if ($GLOBALS['cfg']['PropertiesIconic']) { + return '' . $alternate . ''; + } else { + return $alternate; + } + } + /** * Displays the maximum size for an upload * @@ -2532,6 +2551,8 @@ window.parent.updateTableTitle('', '