In Drupal 6.x you don't need to include "includes/common.inc" in yui_init().

Comments

bakyildiz’s picture

This 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.

mustafau’s picture

The 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.

bakyildiz’s picture

Version: 6.x-1.x-dev » 6.x-1.1-2
Status: Needs review » Fixed
bakyildiz’s picture

Assigned: Unassigned » bakyildiz
Anonymous’s picture

Status: Fixed » Closed (fixed)

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