We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfb8a8c commit 0eeccbcCopy full SHA for 0eeccbc
DCAT.php
@@ -110,9 +110,11 @@ function makeDataBlob( $config ) {
110
111
// identify existing i18n files and load into array
112
$langs = array();
113
- foreach ( glob( 'i18n/*.json' ) as $filename ) {
114
- if ( $filename !== 'i18n/qqq.json' ) {
115
- $langcode = substr( $filename, strlen( 'i18n/' ), -strlen( '.json' ) );
+ foreach ( glob( __DIR__ . '/i18n/*.json' ) as $filename ) {
+ if ( $filename !== __DIR__ . '/i18n/qqq.json' ) {
+ $langcode = substr( $filename,
116
+ strlen( __DIR__ . '/i18n/' ),
117
+ -strlen( '.json' ) );
118
$langs[$langcode] = $filename;
119
}
120
0 commit comments