add debugging
This commit is contained in:
@@ -55,7 +55,10 @@ function _booking_ucname($string) {
|
|||||||
if ($prefixes) {
|
if ($prefixes) {
|
||||||
// capitalize letter after certain name prefixes e.g 'Mc'
|
// capitalize letter after certain name prefixes e.g 'Mc'
|
||||||
//$string = preg_replace("/\\b($prefixes)(\\w)/e", '"$1".strtoupper("$2")', $string);
|
//$string = preg_replace("/\\b($prefixes)(\\w)/e", '"$1".strtoupper("$2")', $string);
|
||||||
$string = preg_replace_callback('/\\b($prefixes)(\\w)/', function ($m) { return $m[1] . strtoupper($m[2]); }, $string);
|
$string = preg_replace_callback('/\\b($prefixes)(\\w)/', function ($m) {
|
||||||
|
watchdog('booking_debug', "<pre>Prefixes match: \n@info</pre>", array('@info' => print_r( $m, true)));
|
||||||
|
return $m[1] . strtoupper($m[2]);
|
||||||
|
}, $string);
|
||||||
}
|
}
|
||||||
if ($suffixes) {
|
if ($suffixes) {
|
||||||
// decapitalize certain word suffixes e.g. 's
|
// decapitalize certain word suffixes e.g. 's
|
||||||
|
Reference in New Issue
Block a user