Commit 9be3c16d authored by Côme Chilliet's avatar Côme Chilliet

Merge branch...

Merge branch '5905-add-a-placeholder-to-have-the-first-letter-in-upper-case-and-the-others-in-minor-case' into '1.4-dev'

Resolve "add a placeholder to have the first letter in upper case and the others in minor case"

See merge request fusiondirectory/fd!601
parents 24c95007 9316c067
......@@ -450,6 +450,11 @@ class templateHandling
return $numberGenerator($args[0], $args[1], $args[2]);
private static function modifierTitleCase ($str)
return [mb_convert_case($str, MB_CASE_TITLE, 'UTF-8')];
/*! \brief Apply a modifier
* \param string $m the modifier
......@@ -560,6 +565,10 @@ class templateHandling
// number
$result = static::modifierNumber($args);
case 'i':
// title case
$result = static::modifierTitleCase($str);
trigger_error("Unkown modifier '$m'");
$result = [$str];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment