Since Drupal 8 require PHP 5.3 we can use new magic constant __DIR__ which is the equivilent of dirname(__FILE__).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chi’s picture

Status: Active » Needs review
FileSize
2.01 KB
casey’s picture

Priority: Minor » Normal
 // Include the utility drupal_var_export() function.
-include_once dirname(__FILE__) . '/../includes/utility.inc';
+include_once dirname(__DIR__) . '/../includes/utility.inc';
Chi’s picture

catch’s picture

Status: Needs review » Reviewed & tested by the community

Was planning to open this one, much nicer to RTBC it.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 8.x.

I accidentally committed it to 7.x but reverted it.

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