Use the correct class name instead of $databaseConfig['type']

This commit is contained in:
Sean Harvey 2013-04-12 16:31:10 +12:00
parent 2cd8582c4b
commit f9998a2266
1 changed files with 1 additions and 3 deletions

View File

@ -49,7 +49,7 @@ class SearchUpdater extends Object {
$current = DB::getConn();
if (!$current || @$current->isManipulationCapture) return; // If not yet set, or its already captured, just return
$type = $databaseConfig['type'];
$type = get_class($current);
$file = TEMP_FOLDER."/.cache.SMC.$type";
if (!is_file($file)) {
@ -115,9 +115,7 @@ class SearchUpdater extends Object {
* (so a class => array( 'fields' => array() ) item), in order to find the actual class for a set of table manipulations
*/
static function handle_manipulation($manipulation) {
// First, extract any state that is in the manipulation itself
foreach ($manipulation as $table => $details) {
$manipulation[$table]['class'] = $table;
$manipulation[$table]['state'] = array();