From f3a6ce9ed59d61b6a7761abc464eaf2d526a61bb Mon Sep 17 00:00:00 2001 From: hakre Date: Tue, 6 Oct 2026 11:08:12 +0200 Subject: [PATCH] ROOTDIR language modules (text entities build script) --- scripts/text-entities.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/text-entities.php b/scripts/text-entities.php index ac27d49ad8..af124ba445 100644 --- a/scripts/text-entities.php +++ b/scripts/text-entities.php @@ -98,6 +98,7 @@ Entities::truncateOutputFile(); +$root = getenv( "ROOTDIR" ) ?: __DIR__ . "/../.."; $langs = []; $debug = false; $argv0 = array_shift( $argv ); @@ -118,8 +119,8 @@ foreach( $langs as $lang ) { - $entDir = __DIR__ . "/../../$lang/entities"; - $refDir = __DIR__ . "/../../$lang/reference"; + $entDir = "$root/$lang/entities"; + $refDir = "$root/$lang/reference"; loadDirEntities( $entDir , $lang ); loadDirRecurse( $refDir );