libs are always loaded even if disabled

tangent - September 3, 2007 - 04:07
Project:Markdown with SmartyPants
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

The _marksmarty_process() function always loads both markdown and smartypants includes instead of only loading them if those filters are enabled. For obvious performance benefits they should be required inside the feature check.

The attached patch does that and a whitespace fix snuck in there also.

AttachmentSize
marksmarty.module_1.patch1.27 KB

#1

moshe weitzman - January 22, 2008 - 21:27

why would the process hook get called for filters which are inactive? i haven't researched this but i bet you have.

#2

milianw - February 11, 2008 - 20:48

The issue is valid, and the patch ready to be committed in my eyes. I've implemented it in my patch as well, see http://drupal.org/node/220156 .

#3

moshe weitzman - February 20, 2008 - 18:10
Status:reviewed & tested by the community» patch (to be ported)

fixed in HEAD

#4

moshe weitzman - February 20, 2008 - 18:12
Status:patch (to be ported)» fixed

committed to DRUPAL-5 as well.

#5

Anonymous (not verified) - March 5, 2008 - 18:12
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.