Closed (fixed)
Project:
Yahoo YUI
Version:
6.x-1.1-2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
5 Jun 2008 at 08:18 UTC
Updated:
21 Jun 2008 at 16:12 UTC
In Drupal 6.x you don't need to include "includes/common.inc" in yui_init().
Comments
Comment #1
bakyildiz commentedThis is included because of the reported problem http://drupal.org/node/228344 When the cache ise enabled the drupal_add_js() function in common.inc is not visible to yui modules. I will check drupal 6 for the same case.
Comment #2
mustafau commentedThe issue #228344: When activating cache in "normal" mode, site is unaccessible because of call to undefined function drupal_add_js() is specific to D5. D6 should not be affected. As you can see documentation at http://api.drupal.org/api/function/hook_init calls drupal_add_css() in hook_init(). It is safe to remove
require_once './includes/common.inc';from yui_init() in 6.x-1.x.Comment #3
bakyildiz commentedComment #4
bakyildiz commentedComment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.