drupal_get_path() in particular will do a database lookup, and if called during early bootstrap can make things explode. Let's use module_load_include() here instead, since it's meant for this very purpose.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jenlampton created an issue. See original summary.

andrey.troeglazov’s picture

Assigned: Unassigned » andrey.troeglazov

  • jenlampton authored bc23afd on 7.x-1.x
    Issue #2850005 by jenlampton, andrey.troeglazov: require_once and...
andrey.troeglazov’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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