Skip to content

Commit

Permalink
Added prefix support #1348
Browse files Browse the repository at this point in the history
  • Loading branch information
abrookbanks committed Feb 6, 2017
1 parent a26338f commit 5f300e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion admin/sources/maintenance.index.inc.php
Expand Up @@ -821,12 +821,13 @@ function cleanImageCache($path = null) {
} else {
$key_type = 'KEY';
}
$table_name = str_replace($GLOBALS['config']->get('config', 'dbprefix'), '', $index['Table']);
$actual_map[$index['Table']][$index['Column_name']] = $key_type;
}

$index_errors = array();
foreach($index_map[strtolower($index['Table'])] as $column => $key) {
$table_name = str_replace('cubecart', 'CubeCart', $index['Table']);
$table_name = $GLOBALS['config']->get('config', 'dbprefix').str_replace('cubecart', 'CubeCart', $index['Table']);
if(!isset($actual_map[$index['Table']][$column])) {
$index_errors[] = sprintf($lang['maintain']['missing_index'], $table_name.'.'.$column, $key);
} elseif(isset($actual_map[$index['Table']][$column]) && $actual_map[$index['Table']][$column]!==$key) {
Expand Down

0 comments on commit 5f300e1

Please sign in to comment.