drop ctype requirement (only one use left)

This commit is contained in:
El RIDO 2025-03-13 08:29:53 +01:00
parent 7825471d70
commit 5d4561bd0a
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
21 changed files with 252 additions and 453 deletions

View file

@ -70,7 +70,7 @@ class View
$sri = array_key_exists($file, $this->_variables['SRI']) ?
' integrity="' . $this->_variables['SRI'][$file] . '"' : '';
// if the file isn't versioned (ends in a digit), add our own version
$cacheBuster = ctype_digit(substr($file, -4, 1)) ?
$cacheBuster = (bool) preg_match('#[0-9]\.js$#', (string) $file) ?
'' : '?' . rawurlencode($this->_variables['VERSION']);
echo '<script ', $attributes,
' type="text/javascript" data-cfasync="false" src="', $file,