Fixing a bug where not having akismet key would block forum posting

svn path=/trunk/boinc/; revision=12462
This commit is contained in:
Rytis Slatkevičius 2007-04-24 16:04:04 +00:00
parent ffeb6811a0
commit 8f960088ef
1 changed files with 1 additions and 2 deletions

View File

@ -3,9 +3,8 @@
function akismet_check($user, $post) { function akismet_check($user, $post) {
$config = get_config(); $config = get_config();
$master_url = parse_config($config, "<master_url>"); $master_url = parse_config($config, "<master_url>");
$key = parse_config(get_config(), "<akismet_key>"); $key = parse_config($config, "<akismet_key>");
if ($key == null) { if ($key == null) {
exit();
return true; // unable to get key from config return true; // unable to get key from config
} }
$master_url = urlencode($master_url); $master_url = urlencode($master_url);