token.module could return for the token site-name a value that is different from the value used by system.module.
This is because token.module uses the following code to get the value of the Drupal variable site_name:
variable_get('site_name', t('Drupal'))
while system.module uses the following code:
variable_get('site_name', 'Drupal')
This means that for web sites which don't have the variable explicitly set system.module will always return 'Drupal', while token.module returns the localized version of the string.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 300448_site_name_not_localized.patch | 1003 bytes | greggles |
Comments
Comment #1
gregglesGood point...let's see if anyone else has an opinion on this.
Comment #2
avpadernoAs nobody else reported anything about this, I guess this could be marked as .