Closed (fixed)
Project:
Persistent Login
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
31 Oct 2006 at 17:00 UTC
Updated:
17 Nov 2006 at 18:16 UTC
Persistent login module is extremely localization unfriendly, as the code as it is requests the same translation to be entered for just any user... I am aware my code is involving some simplification, but works well for me (as it seems). So, I am posting here the module code patch, if someone has the same problem and would like to try it.
--- /var/www/html/www.gewiss.si/modules.OLD/persistent_login.OLD1/persistent_login.module.ORIGINAL 2006-10-17 15:53:39.000000000 +0200
+++ /var/www/html/www.gewiss.si/modules.OLD/persistent_login.OLD1/persistent_login.module 2006-10-20 00:31:31.000000000 +0200
@@ -240,11 +240,10 @@
('title' => t('Remembered logins'),
'value' => t('You have %n persistent login session(s) created with '.
'the "Remember Me" login option on this site.<br />'.
- l(t('Erase persistent logins now'),
- 'persistent_login/erase/'.$account->uid, array(),
- drupal_get_destination()).
- ' (this will not log you out).',
- array('%n' => $n)),
+ '<a href="/persistent_login/erase/%uid?destination='.
+ 'user%2F%uid">Erase persistent logins now</a>'.
+ ' (this will not log you out).',
+ array('%n' => $n, '%uid' => $account->uid)),
'class' => 'logins',
);
Comments
Comment #1
bjaspan commentedFixed.
Comment #2
(not verified) commented