mirror of https://github.com/BOINC/boinc.git
Fixing a bug where not having akismet key would block forum posting
svn path=/trunk/boinc/; revision=12462
This commit is contained in:
parent
ffeb6811a0
commit
8f960088ef
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue