X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FLogging%2FReverter.php;h=409dabcbb4867a65b75de93d6a79f8aace53d24d;hb=da7a33feb6f28d09a8b2de93cb702b43ed484851;hp=52c6c59283eb30a94b4814beb74389897515880c;hpb=d4244ec3105befeed2080d59fd6f68652c44c030;p=civicrm-core.git diff --git a/CRM/Logging/Reverter.php b/CRM/Logging/Reverter.php index 52c6c59283..409dabcbb4 100644 --- a/CRM/Logging/Reverter.php +++ b/CRM/Logging/Reverter.php @@ -1,9 +1,9 @@ db = $dsn['database']; @@ -44,6 +48,9 @@ class CRM_Logging_Reverter { $this->log_date = $log_date; } + /** + * @param $tables + */ function revert($tables) { // FIXME: split off the table → DAO mapping to a GenCode-generated class $daos = array( @@ -109,7 +116,7 @@ class CRM_Logging_Reverter { // DAO-based tables case in_array($table, array_keys($daos)): - $dao = new {$daos[$table]}; + $dao = new $daos[$table]; foreach ($row as $id => $changes) { $dao->id = $id; foreach ($changes as $field => $value) {