diff options
| author | Bharat Mediratta <bharat@menalto.com> | 2011-05-22 21:24:27 -0700 |
|---|---|---|
| committer | Bharat Mediratta <bharat@menalto.com> | 2011-05-22 21:24:27 -0700 |
| commit | 784ebe75321304fe3f83cddaf3cb1030410fb5ed (patch) | |
| tree | 764b22e3db408347806987d940ec7a72dde8dd2f /modules/g2_import/controllers | |
| parent | db734130c5fe10408040b2326b28b102f3131271 (diff) | |
Leave the "updated" field alone when importing comments so that if
Akismet marks them as spam, we don't immediately flush them out of the
database on the next visit to Admin > Content > Comments.
Also warn the user about Akismet, and fix up the G2 import code to
reimport deleted comments.
Diffstat (limited to 'modules/g2_import/controllers')
| -rw-r--r-- | modules/g2_import/controllers/admin_g2_import.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modules/g2_import/controllers/admin_g2_import.php b/modules/g2_import/controllers/admin_g2_import.php index 1a705bea..4c8af852 100644 --- a/modules/g2_import/controllers/admin_g2_import.php +++ b/modules/g2_import/controllers/admin_g2_import.php @@ -60,6 +60,11 @@ class Admin_g2_import_Controller extends Admin_Controller { array("url" => url::site("admin/modules"), "module_id" => $module_id))); } } + if (module::is_active("akismet")) { + message::warning( + t("The Akismet module may mark some or all of your imported comments as spam. <a href=\"%url\">Deactivate</a> it to avoid that outcome.", + array("url" => url::site("admin/modules")))); + } } else if (g2_import::is_configured()) { $view->content->form->configure_g2_import->embed_path->add_error("invalid", 1); } |
