Fix Using ${var} in strings is deprecated (#233)

- Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /usr/share/phpldapadmin/lib/xmlTemplates.php on line 82
- Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /usr/share/phpldapadmin/lib/xmlTemplates.php on line 125
- Deprecated:  Using ${var} in strings is deprecated, use {$var} instead in /usr/share/phpldapadmin/lib/ds_ldap.php on line 994
This commit is contained in:
William Desportes 2023-09-13 03:26:48 +02:00 committed by GitHub
parent a84ea986de
commit d68658a82b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -991,7 +991,7 @@ class ldap extends DS {
$return = $dn; $return = $dn;
foreach ($this->getBaseDN() as $base) { foreach ($this->getBaseDN() as $base) {
if (preg_match("/${base}$/i",$dn)) { if (preg_match('/' . $base . '$/i',$dn)) {
$return = $base; $return = $base;
break; break;
} }

View File

@ -79,7 +79,7 @@ abstract class xmlTemplates {
# Ignore any files that are not the predefined custom files. # Ignore any files that are not the predefined custom files.
if ($_SESSION[APPCONFIG]->getValue('appearance','custom_templates_only') if ($_SESSION[APPCONFIG]->getValue('appearance','custom_templates_only')
&& ! preg_match("/^${custom_prefix}/",$file)) && ! preg_match('/^'. $custom_prefix . '/',$file))
continue; continue;
$filename = sprintf('%s/%s',$dir,$file); $filename = sprintf('%s/%s',$dir,$file);
@ -122,7 +122,7 @@ abstract class xmlTemplates {
# Ignore any files that are not the predefined custom files. # Ignore any files that are not the predefined custom files.
if ($_SESSION[APPCONFIG]->getValue('appearance','custom_templates_only') if ($_SESSION[APPCONFIG]->getValue('appearance','custom_templates_only')
&& ! preg_match("/^${custom_prefix}/",$file)) && ! preg_match('/^'. $custom_prefix . '/',$file))
continue; continue;
$filename = sprintf('%s/%s',$dir,$file); $filename = sprintf('%s/%s',$dir,$file);