Closed (fixed)
Project:
Hidden
Version:
5.x-2.2
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2008 at 23:12 UTC
Updated:
28 Nov 2008 at 17:12 UTC
When user will translate button default names from "Hide" and "Report"
to their own language, it will NOT work at all, see below what should be changed,
I believe it is too simple mistake/typo to submit patch.
function hidden_hide_submit($form_id, $form_values) {
$op = (string)$form_values['op'];
//if ($op == 'Hide') {
if ($op == t('Hide')) {
if (! user_access('mark as hidden')) {
drupal_access_denied();
}
}
//elseif ($op == 'Report') {
elseif ($op == t('Report')) {
if (! user_access('report for hiding')) {
drupal_access_denied();
}
}
HTH
Bartek
Comments
Comment #1
lmoccozet commentedYou need also to change it again in the same function (line 1857):
L.M.
Comment #2
ekes commentedCheers, committed these so they're in CVS and checked this is the only place $op contains $form_values.