Use the correct class name instead of $databaseConfig['type']
This commit is contained in:
parent
2cd8582c4b
commit
f9998a2266
|
@ -49,7 +49,7 @@ class SearchUpdater extends Object {
|
||||||
$current = DB::getConn();
|
$current = DB::getConn();
|
||||||
if (!$current || @$current->isManipulationCapture) return; // If not yet set, or its already captured, just return
|
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";
|
$file = TEMP_FOLDER."/.cache.SMC.$type";
|
||||||
|
|
||||||
if (!is_file($file)) {
|
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
|
* (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) {
|
static function handle_manipulation($manipulation) {
|
||||||
|
|
||||||
// First, extract any state that is in the manipulation itself
|
// First, extract any state that is in the manipulation itself
|
||||||
|
|
||||||
foreach ($manipulation as $table => $details) {
|
foreach ($manipulation as $table => $details) {
|
||||||
$manipulation[$table]['class'] = $table;
|
$manipulation[$table]['class'] = $table;
|
||||||
$manipulation[$table]['state'] = array();
|
$manipulation[$table]['state'] = array();
|
||||||
|
|
Loading…
Reference in New Issue