Subversion Repositories php_utils

Compare Revisions

Regard whitespace Rev 23 → Rev 24

/trunk/VtsLDAPUtils.class.php
25,10 → 25,18
private static function _L($str, ...$sprintfArgs) {
if (function_exists('_L')) {
return _L($str, $sprintfArgs);
} else if (function_exists('my_vsprintf')) {
return my_vsprintf($str, $sprintfArgs);
} else {
return my_vsprintf($str, $sprintfArgs);
$n = 1;
foreach ($sprintfArgs as $val) {
$str = str_replace("%$n", $val, $str);
$n++;
}
$str = str_replace("%%", "%", $str);
return $str;
}
}
 
public static function getString($ldap_userinfo, $attributeName) {
$ary = self::getArray($ldap_userinfo, $attributeName);