Project

General

Profile

« Previous | Next » 

Revision 1654

Added by Dietmar about 12 years ago

Fixed SERVER_EMAIL in languages, needs double brackets
Installer redesign Step 2

View differences:

submit_comment.php
27 27

  
28 28
require_once(WB_PATH.'/framework/class.wb.php');
29 29
$wb = new wb;
30

  
30
include_once (WB_PATH.'/framework/functions.php');
31 31
/*
32 32
$post_id = (int)$_GET['post_id'];
33 33
$section_id = (int)$_GET['section_id'];
......
108 108

  
109 109
		if($settings['use_captcha'])
110 110
        {
111
			$search = array('{SERVER_EMAIL}');
112
			$replace = array( SERVER_EMAIL,);
113
			$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] = str_replace($search,$replace,$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA']);
111
			$aServerEmail = (defined('SERVER_EMAIL') && SERVER_EMAIL != '' ? SERVER_EMAIL : $_SERVER['SERVER_NAME']);
112
			$replace = array('SERVER_EMAIL' => $aServerEmail );
113
			$MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'] = replace_vars($MESSAGE['MOD_FORM_INCORRECT_CAPTCHA'], $replace);
114 114
			if(isset($_POST['captcha']) AND $_POST['captcha'] != '')
115 115
            {
116 116
				// Check for a mismatch

Also available in: Unified diff