Line 174 in /home/hespe240/public_html/hesper.pl/vendor/silverstripe/framework/src/i18n/i18n.php
165 if (is_array($arg)) { 166 $injection = $arg; 167 } elseif (!isset($default)) { 168 $default = $arg ?: ''; 169 } 170 } 171 172 // Encourage the provision of default values so that text collector can discover new strings 173 if (!$default && i18n::config()->uninherited('missing_default_warning')) { 174 user_error("Missing default for localisation key $entity", E_USER_WARNING); 175 } 176 177 // Deprecate legacy injection format (`string %s, %d`) 178 // inject the variables from injectionArray (if present) 179 $sprintfArgs = []; 180 if ($default && !preg_match('/\{[\w\d]*\}/i', $default ?? '') && preg_match('/%[s,d]/', $default ?? '')) {