Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Since Drupal 8 require PHP 5.3 we can use new magic constant __DIR__ which is the equivilent of dirname(__FILE__).
Comment | File | Size | Author |
---|---|---|---|
#3 | new_magic_constant-1240320-1.patch | 2 KB | Chi |
#1 | new_magic_constant-1240320-0.patch | 2.01 KB | Chi |
Comments
Comment #1
Chi CreditAttribution: Chi commentedComment #2
casey CreditAttribution: casey commentedComment #3
Chi CreditAttribution: Chi commentedComment #4
catchWas planning to open this one, much nicer to RTBC it.
Comment #5
Dries CreditAttribution: Dries commentedCommitted to 8.x.
I accidentally committed it to 7.x but reverted it.