Merge pull request #963 from djfm/sprintf
// do not use sprintf in installer when it is useless
This commit is contained in:
commit
0e1898be09
1 file changed
+3
-1
@@ -136,7 +136,9 @@ class InstallLanguages
|
|||||||
}
|
}
|
||||||
|
|
||||||
$args[0] = $translation;
|
$args[0] = $translation;
|
||||||
return call_user_func_array('sprintf', $args);
|
if(count($args) > 1)
|
||||||
|
return call_user_func_array('sprintf', $args);
|
||||||
|
else return $translation;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in new issue
Block a user