Removed redundant function

This commit is contained in:
Madhura Jayaratne 2011-09-18 16:59:03 +05:30
parent 3e37bf159d
commit 8373e5feec
3 changed files with 2 additions and 27 deletions

View File

@ -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.

View File

@ -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();
/**

View File

@ -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
*/