Bug after upgrade ruTorrent 4.3.4 (probably > 4.x) on logoff plugin - RESOLVED - It is the best idea ? #2676
-
Hello, I'm just upgrade my 3.x to 4.3.4, and I have a bug, I think it started with ruTorrent > 4.x. I have resolve the issue and post it on logoff page : exrat/logoff#1 But I'm not sure, it is the best way to do this :
Is it the best patch ? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Hello @DavidFirefox. We simply moved these functions to the The fix for line 2 should be |
Beta Was this translation helpful? Give feedback.
-
Thanks a lot, it work without warning (my patch have one warning). Have a good day. |
Beta Was this translation helpful? Give feedback.
-
I make an uptodate fork : https://github.com/DavidFirefox/logoff |
Beta Was this translation helpful? Give feedback.
Hello @DavidFirefox. We simply moved these functions to the
FileUtil
andUser
classes in version 4. You can reference them accordingly. We did this to avoid loading functions we're not using. This has performance benefits forruTorrent v4
.The fix for line 2 should be
eval(FileUtil::getPluginConf("logoff"));
The fix for line 4 should be
$me = User::getUser();