Last modified: 2013-07-23 21:14:21 UTC
In BookManagerv2.php, use $dir instead of __DIR__ for slight optimization.
(In reply to comment #0) > In BookManagerv2.php, use $dir instead of __DIR__ for slight optimization. Eh?
I've been told that $dir = __DIR__; $wgAutoloadClasses += array( 'BookManagerv2Hooks' => $dir . '/BookManagerv2.hooks.php', ... is slightly better than using __DIR__ each time. Is that not the case?
(In reply to comment #2) > is slightly better than using __DIR__ each time. Is that not the case? It would seem very likely. The bug title/initial comment wasn't very clear as to what you were trying to achieve.
Change 72660 had a related patch set uploaded by Mollywhite: Bug 50987: Use a directory variable instead of calling repeatedly. https://gerrit.wikimedia.org/r/72660
Change 72660 merged by Mollywhite: Bug 50987: Use a directory variable instead of calling repeatedly. https://gerrit.wikimedia.org/r/72660
Patched, but then was informed that this is not a good approach. After reading the comments on the patch (https://gerrit.wikimedia.org/r/#/c/72660/), I changed it back.