Skip to content

Commit

Permalink
Removed redundant function
Browse files Browse the repository at this point in the history
  • Loading branch information
madhuracj committed Sep 18, 2011
1 parent 3e37bf1 commit 8373e5f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 27 deletions.
25 changes: 0 additions & 25 deletions libraries/tbl_select.lib.php
Expand Up @@ -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 = '<img class="icon" width="16" height="16" src="' . $pmaThemeImage
.'b_browse.png" alt="' . __('Browse foreign values') . '" title="'
. __('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.
Expand Down
2 changes: 1 addition & 1 deletion tbl_select.php
Expand Up @@ -25,7 +25,7 @@
$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();
/**
Expand Down
2 changes: 1 addition & 1 deletion tbl_zoom_select.php
Expand Up @@ -55,7 +55,7 @@
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
*/
Expand Down

0 comments on commit 8373e5f

Please sign in to comment.