[geeklog-cvs] geeklog: Added support for missing {captcha} variable in Calenda...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Tue Mar 16 14:35:02 EDT 2010
changeset 7794:6d09fc076f5b
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/6d09fc076f5b
user: Dirk Haun <dirk at haun-online.de>
date: Tue Mar 16 19:32:49 2010 +0100
description:
Added support for missing {captcha} variable in Calendar and Links submissions (bug #0001091, patch provided by tuxcanfly)
diffstat:
plugins/calendar/functions.inc | 1 +
plugins/calendar/templates/submitevent.thtml | 1 +
plugins/links/functions.inc | 1 +
plugins/links/templates/submitlink.thtml | 1 +
4 files changed, 4 insertions(+), 0 deletions(-)
diffs (44 lines):
diff -r c6b33d9cc815 -r 6d09fc076f5b plugins/calendar/functions.inc
--- a/plugins/calendar/functions.inc Sun Mar 14 21:03:24 2010 +0100
+++ b/plugins/calendar/functions.inc Tue Mar 16 19:32:49 2010 +0100
@@ -818,6 +818,7 @@
$eventform->set_var('lang_location', $LANG_CAL_1[39]);
$eventform->set_var('lang_description', $LANG_CAL_1[5]);
$eventform->set_var('lang_htmnotallowed', $LANG_CAL_1[44]);
+ PLG_templateSetVars('calendar', $eventform);
$eventform->set_var('lang_submit', $LANG12[8]);
$eventform->set_var('mode', $mode);
if ($mode == 'personal') {
diff -r c6b33d9cc815 -r 6d09fc076f5b plugins/calendar/templates/submitevent.thtml
--- a/plugins/calendar/templates/submitevent.thtml Sun Mar 14 21:03:24 2010 +0100
+++ b/plugins/calendar/templates/submitevent.thtml Tue Mar 16 19:32:49 2010 +0100
@@ -91,6 +91,7 @@
<div class="form-field"><textarea name="description" style="width:100%" cols="45" rows="8"></textarea></div>
<div class="clear-left"></div>
<div class="form-field">{lang_htmnotallowed}</div>
+ {captcha}
<div class="form-field">
<input type="hidden" name="mode" value="{lang_submit}"{xhtml}>
<input type="hidden" name="type" value="calendar"{xhtml}>
diff -r c6b33d9cc815 -r 6d09fc076f5b plugins/links/functions.inc
--- a/plugins/links/functions.inc Sun Mar 14 21:03:24 2010 +0100
+++ b/plugins/links/functions.inc Tue Mar 16 19:32:49 2010 +0100
@@ -904,6 +904,7 @@
$linkform->set_var('link_category_options', links_select_box(2, $category));
$linkform->set_var('lang_description', $LANG12[15]);
$linkform->set_var('lang_htmlnotallowed', $LANG12[35]);
+ PLG_templateSetVars('links', $linkform);
$linkform->set_var('lang_submit', $LANG12[8]);
$linkform->set_var('max_url_length', 255);
$linkform->parse('theform', 'linkform');
diff -r c6b33d9cc815 -r 6d09fc076f5b plugins/links/templates/submitlink.thtml
--- a/plugins/links/templates/submitlink.thtml Sun Mar 14 21:03:24 2010 +0100
+++ b/plugins/links/templates/submitlink.thtml Tue Mar 16 19:32:49 2010 +0100
@@ -23,6 +23,7 @@
<tr>
<td align="center" colspan="2">{lang_htmlnotallowed}</td>
</tr>
+ {captcha}
<tr>
<td align="center" colspan="2">
<input type="hidden" name="mode" value="{lang_submit}"{xhtml}>
More information about the geeklog-cvs
mailing list