mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-08-05 14:40:44 -04:00
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.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user