summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rwxr-xr-xmigrate.install2
-rw-r--r--migrate_example/migrate_example.install2
3 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 6718fa9..d671641 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -4,6 +4,7 @@ Migrate 2.0 Release Candidate 2
===============================
Bug fixes
+- #1058942 - Flush cache on enable to make sure classes get registered.
- migrate_example error when auto_nodetitle module not present.
- #1053798 - Missing 'debug' on showMessage.
diff --git a/migrate.install b/migrate.install
index e313aad..892b3a7 100755
--- a/migrate.install
+++ b/migrate.install
@@ -155,7 +155,7 @@ function migrate_install() {
*/
function migrate_enable() {
// Make sure autoload registers our classes
- cache_clear_all();
+ drupal_flush_all_caches();
}
/**
diff --git a/migrate_example/migrate_example.install b/migrate_example/migrate_example.install
index 18e8fec..fdbaa09 100644
--- a/migrate_example/migrate_example.install
+++ b/migrate_example/migrate_example.install
@@ -32,7 +32,7 @@ function migrate_example_install() {
*/
function migrate_example_enable() {
// Make sure autoload registers our classes
- autoload_registry_rebuild();
+ drupal_flush_all_caches();
}
function migrate_example_uninstall() {