Commit 8b27a8d6 authored by Penny Leach's avatar Penny Leach
Browse files

turn logging off for exceptions that get thrown when importing is off

parent e4446725
......@@ -285,7 +285,9 @@ function send_content_intent($username) {
}
if (!$authinstance->weimportcontent) {
throw new ImportException('Importing content is disabled');
$e = new ImportException('Importing content is disabled');
$e->set_log_off(); // we don't want these ones.
throw $e;
}
// generate a token, insert it into the queue table
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment