Closed (fixed)
Project:
Facebook Like Button
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
3 Jun 2011 at 01:21 UTC
Updated:
23 Jun 2011 at 06:22 UTC
First, thanks for the great module!
Second, wouldn't it be better, for the sake of a small performance gain, to move the "show on teasers" and "content type" checks in hook_nodeapi closer to the case statement, so there is no need for all those variable gets and string concatenations if the button ain't going to be displayed.
My $.02 anyways :)
Comments
Comment #1
corbacho commented+1 about this. the
if ($show) {should be as early as possible.Comment #2
jerdiggity commentedGood call. Committed to dev release... Will be committed to next stable release along with a few other fixes.
Thanks!
:)
j