diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-06-19 17:26:27 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-06-19 17:26:27 +0000 |
commit | 828ba66500f49571f2007cacee25b18dce74336f (patch) | |
tree | 642334725a56aaffff5d6fe6dba264fa90071226 /modules/comment/comment.module | |
parent | 0c5b324809dcb44de8690f7bba21fec607bd67d1 (diff) | |
download | brdo-828ba66500f49571f2007cacee25b18dce74336f.tar.gz brdo-828ba66500f49571f2007cacee25b18dce74336f.tar.bz2 |
- Bugfix: fixed utf-8 problem for people that use PHP 4.2.x or below. Patch #33 by Al.
- Bugfix: fixed translation problems in the user module and the block module. Patch by Stefan.
- Improvement: made it impossible to delete user role #1 and #2. Patch #38 by Al.
- Improvement: fixed the "Allowed HTML tag" issues. Makes for better code and improved usability. Patch #35 by Al.
NOTE: as soon the compose tips make their way into CVS, most of this code can be removed.
Diffstat (limited to 'modules/comment/comment.module')
-rw-r--r-- | modules/comment/comment.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/comment/comment.module b/modules/comment/comment.module index 8e4221cba..7b6c703f0 100644 --- a/modules/comment/comment.module +++ b/modules/comment/comment.module @@ -112,7 +112,7 @@ function comment_user($type, $edit, &$user) { break; case "edit_form": // when user tries to edit his own data - return form_textarea(t("Signature"), "signature", $edit["signature"], 70, 3, t("Your signature will be publicly displayed at the end of your comments.") ."<br />". t("Allowed HTML tags") .": ". htmlspecialchars(variable_get("allowed_html", "<a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul>"))); + return form_textarea(t("Signature"), "signature", $edit["signature"], 70, 3, t("Your signature will be publicly displayed at the end of your comments.") ."<br />". form_allowed_tags_text()); case "edit_validate": // validate user data editing return array("signature" => $edit["signature"]); @@ -149,7 +149,7 @@ function comment_form($edit) { $form .= form_textfield(t("Subject"), "subject", $edit["subject"], 50, 64); // comment field: - $form .= form_textarea(t("Comment"), "comment", $edit["comment"] ? $edit["comment"] : $user->signature, 70, 10, t("Allowed HTML tags") .": ". htmlspecialchars(variable_get("allowed_html", "<a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul>"))); + $form .= form_textarea(t("Comment"), "comment", $edit["comment"] ? $edit["comment"] : $user->signature, 70, 10, form_allowed_tags_text()); // preview button: $form .= form_hidden("cid", $edit["cid"]); |