- Patch #7466 by TDobes: comments module would add a link of register even if "user_register" was set to 0.
parent
1c52b145ba
commit
9b49f01f11
|
@ -1608,8 +1608,13 @@ function theme_comment_post_forbidden() {
|
|||
return t("you can't post comments");
|
||||
}
|
||||
else {
|
||||
if (variable_get('user_register', 1)) {
|
||||
return t('<a href="%login">login</a> or <a href="%register">register</a> to post comments', array('%login' => url('user/login'), '%register' => url('user/register')));
|
||||
}
|
||||
else {
|
||||
return t('<a href="%login">login</a> to post comments', array('%login' => url('user/login')));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _comment_delete_thread($comment) {
|
||||
|
|
|
@ -1608,8 +1608,13 @@ function theme_comment_post_forbidden() {
|
|||
return t("you can't post comments");
|
||||
}
|
||||
else {
|
||||
if (variable_get('user_register', 1)) {
|
||||
return t('<a href="%login">login</a> or <a href="%register">register</a> to post comments', array('%login' => url('user/login'), '%register' => url('user/register')));
|
||||
}
|
||||
else {
|
||||
return t('<a href="%login">login</a> to post comments', array('%login' => url('user/login')));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function _comment_delete_thread($comment) {
|
||||
|
|
Loading…
Reference in New Issue