no need to have a separate file for this
This commit is contained in:
@@ -52,7 +52,7 @@ $db_collation = PMA_getDbCollation($db);
|
|||||||
|
|
||||||
// in a separate file to avoid redeclaration of functions in some code paths
|
// in a separate file to avoid redeclaration of functions in some code paths
|
||||||
require_once './libraries/db_structure.lib.php';
|
require_once './libraries/db_structure.lib.php';
|
||||||
require_once './libraries/build_action_titles.inc.php';
|
$titles = PMA_buildActionTitles();
|
||||||
|
|
||||||
// 1. No tables
|
// 1. No tables
|
||||||
if ($num_tables == 0) {
|
if ($num_tables == 0) {
|
||||||
|
@@ -1,25 +0,0 @@
|
|||||||
<?php
|
|
||||||
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @package phpMyAdmin
|
|
||||||
*/
|
|
||||||
if (! defined('PHPMYADMIN')) {
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
$titles = array();
|
|
||||||
|
|
||||||
$titles['Browse'] = PMA_getIcon('b_browse.png', __('Browse'), true);
|
|
||||||
$titles['NoBrowse'] = PMA_getIcon('bd_browse.png', __('Browse'), true);
|
|
||||||
$titles['Search'] = PMA_getIcon('b_select.png', __('Search'), true);
|
|
||||||
$titles['NoSearch'] = PMA_getIcon('bd_select.png', __('Search'), true);
|
|
||||||
$titles['Insert'] = PMA_getIcon('b_insrow.png', __('Insert'), true);
|
|
||||||
$titles['NoInsert'] = PMA_getIcon('bd_insrow.png', __('Insert'), true);
|
|
||||||
$titles['Structure'] = PMA_getIcon('b_props.png', __('Structure'), true);
|
|
||||||
$titles['Drop'] = PMA_getIcon('b_drop.png', __('Drop'), true);
|
|
||||||
$titles['NoDrop'] = PMA_getIcon('bd_drop.png', __('Drop'), true);
|
|
||||||
$titles['Empty'] = PMA_getIcon('b_empty.png', __('Empty'), true);
|
|
||||||
$titles['NoEmpty'] = PMA_getIcon('bd_empty.png', __('Empty'), true);
|
|
||||||
|
|
||||||
?>
|
|
@@ -2990,4 +2990,27 @@ function PMA_selectUploadFile($import_list, $uploaddir) {
|
|||||||
echo '<i>There are no files to upload</i>';
|
echo '<i>There are no files to upload</i>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build titles and icons for action links
|
||||||
|
*
|
||||||
|
* @return array the action titles
|
||||||
|
* @uses PMA_getIcon()
|
||||||
|
*/
|
||||||
|
function PMA_buildActionTitles() {
|
||||||
|
$titles = array();
|
||||||
|
|
||||||
|
$titles['Browse'] = PMA_getIcon('b_browse.png', __('Browse'), true);
|
||||||
|
$titles['NoBrowse'] = PMA_getIcon('bd_browse.png', __('Browse'), true);
|
||||||
|
$titles['Search'] = PMA_getIcon('b_select.png', __('Search'), true);
|
||||||
|
$titles['NoSearch'] = PMA_getIcon('bd_select.png', __('Search'), true);
|
||||||
|
$titles['Insert'] = PMA_getIcon('b_insrow.png', __('Insert'), true);
|
||||||
|
$titles['NoInsert'] = PMA_getIcon('bd_insrow.png', __('Insert'), true);
|
||||||
|
$titles['Structure'] = PMA_getIcon('b_props.png', __('Structure'), true);
|
||||||
|
$titles['Drop'] = PMA_getIcon('b_drop.png', __('Drop'), true);
|
||||||
|
$titles['NoDrop'] = PMA_getIcon('bd_drop.png', __('Drop'), true);
|
||||||
|
$titles['Empty'] = PMA_getIcon('b_empty.png', __('Empty'), true);
|
||||||
|
$titles['NoEmpty'] = PMA_getIcon('bd_empty.png', __('Empty'), true);
|
||||||
|
return $titles;
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
@@ -38,7 +38,7 @@ require_once './libraries/common.inc.php';
|
|||||||
$action = 'tbl_create.php';
|
$action = 'tbl_create.php';
|
||||||
|
|
||||||
require_once './libraries/header.inc.php';
|
require_once './libraries/header.inc.php';
|
||||||
require_once './libraries/build_action_titles.inc.php';
|
$titles = PMA_buildActionTitles();
|
||||||
|
|
||||||
// Check parameters
|
// Check parameters
|
||||||
PMA_checkParameters(array('db'));
|
PMA_checkParameters(array('db'));
|
||||||
|
Reference in New Issue
Block a user