bug
-
Hello,
found a little bug with a walkaround:
when creating a new user role with accent like “Intermédiaire” the role name become “intermdiaire”… “é” is not replace by equivalent “e”.
The way to manage this is to create the user role like “Intermediaire” (without accent), it will create user role “intermediaire” then rename user role to “Intermédiaire”: you keep the right user role name and the nice display user name.
But…if you can correct this…very easy (already done this for one of my custom code) let say the user role is under var “$beta”:
$beta = utf8_decode($start); $beta = trim(strip_tags($beta)); $beta_without_accent = strtr($beta, utf8_decode('àáa???èéê?ìí???òó???ùú?üy?àá????èéê?ìí???òó???ùú?üY'), 'aaaaaceeeeiiiinooooouuuuyyAAAAACEEEEIIIINOOOOOUUUUY'); $beta_with_minuscule = strtolower($beta_without_accent); $beta_with_underscore = str_replace(' - ', '_', $beta_with_minuscule); // for me...probably different in your case ?
Hope it help. ??
- The topic ‘bug’ is closed to new replies.