summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralexiswilke2012-08-09 22:27:33 (GMT)
committer Stefaan Lippens2012-08-09 22:35:17 (GMT)
commitcacdbd9e0cc9040a3835d69084a45b53384a8522 (patch)
tree87e8e315d268316bdc06be1fb2b98ced2a651416
parent004079dcf1e8db5c3530861b1cd80302d5dec477 (diff)
Issue 978304: minor require() tweak
-rw-r--r--math_captcha/math_captcha.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/math_captcha/math_captcha.module b/math_captcha/math_captcha.module
index 698054d..dea54a5 100644
--- a/math_captcha/math_captcha.module
+++ b/math_captcha/math_captcha.module
@@ -36,8 +36,8 @@ function math_captcha_captcha($op, $captcha_type = '') {
case 'list':
return array('Math CAPTCHA');
case 'generate':
- require_once('math_captcha.challenge.inc');
if ($captcha_type == 'Math CAPTCHA') {
+ require_once('math_captcha.challenge.inc');
// Get the available challenges
$enabled_challenges = _math_captcha_enabled_challenges();
$challenges = array_filter($enabled_challenges);