From 98f5423df7c20a22904ea6ac84de279b0a2e5b04 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 4 Mar 2016 12:06:16 +0100 Subject: ucwords does not support delimiter on 5.4 --- lib/private/comments/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/comments/comment.php b/lib/private/comments/comment.php index 31848ed38b6..60663d61578 100644 --- a/lib/private/comments/comment.php +++ b/lib/private/comments/comment.php @@ -362,7 +362,7 @@ class Comment implements IComment { protected function fromArray($data) { foreach(array_keys($data) as $key) { // translate DB keys to internal setter names - $setter = 'set' . str_replace('_', '', ucwords($key,'_')); + $setter = 'set' . implode('', array_map('ucfirst', explode('_', $key))); $setter = str_replace('Timestamp', 'DateTime', $setter); if(method_exists($this, $setter)) { -- cgit v1.2.3