diff --git a/libraries/tbl_select.lib.php b/libraries/tbl_select.lib.php index 53ffcb749d..2fa598b088 100644 --- a/libraries/tbl_select.lib.php +++ b/libraries/tbl_select.lib.php @@ -8,31 +8,6 @@ require_once 'url_generating.lib.php'; -/** - * Sets the title for foreign keys display link. - * - * @param mixed $propertiesIconic Type of icon property - * @param string $pmaThemeImage Icon Image - * - * @return string $str Value of the Title - */ -function PMA_tbl_setTitle($propertiesIconic, $pmaThemeImage) -{ - if ($propertiesIconic == true) { - $str = '' . __('Browse foreign values') . ''; - - if ($propertiesIconic === 'both') { - $str .= __('Browse foreign values'); - } - - return $str; - } else { - return __('Browse foreign values'); - } -} - /** * Gets all the fields of a table along with their types, collations * and whether null or not. diff --git a/tbl_select.php b/tbl_select.php index 0ad5d2530b..6a2a5e4108 100644 --- a/tbl_select.php +++ b/tbl_select.php @@ -25,7 +25,7 @@ $GLOBALS['js_include'][] = 'jquery/jquery-ui-1.8.custom.js'; $GLOBALS['js_include'][] = 'jquery/timepicker.js'; $GLOBALS['js_include'][] = 'gis_data_editor.js'; -$titles['Browse'] = PMA_tbl_setTitle($GLOBALS['cfg']['PropertiesIconic'], $pmaThemeImage); +$titles['Browse'] = PMA_getIcon('b_browse.png', __('Browse')); $geom_types = PMA_getGISDatatypes(); /** diff --git a/tbl_zoom_select.php b/tbl_zoom_select.php index 7fabd2f4ed..7d803c60ee 100644 --- a/tbl_zoom_select.php +++ b/tbl_zoom_select.php @@ -55,7 +55,7 @@ if (isset($_REQUEST['get_data_row']) && $_REQUEST['get_data_row'] == true) { PMA_ajaxResponse(null, true, $extra_data); } -$titles['Browse'] = PMA_tbl_setTitle($GLOBALS['cfg']['PropertiesIconic'], $pmaThemeImage); +$titles['Browse'] = PMA_getIcon('b_browse.png', __('Browse')); /** * Not selection yet required -> displays the selection form */