X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=Civi%2FAngular%2FCoder.php;h=a1aa0802387edd981dff30f830cc50a4bf9d0339;hb=edb3833c48cc6f1708dbe41ecd3314f4ebf068c9;hp=c780462c936296dc732ff0b48f62d81b63894127;hpb=b71494d1e871ce2cca6db4902cb7e72daeb09ddc;p=civicrm-core.git diff --git a/Civi/Angular/Coder.php b/Civi/Angular/Coder.php index c780462c93..a1aa080238 100644 --- a/Civi/Angular/Coder.php +++ b/Civi/Angular/Coder.php @@ -56,8 +56,8 @@ class Coder { } protected function cleanup($html) { - $html = preg_replace_callback("/([\\-a-zA-Z0-9]+)=(')([^']*)(')/", array($this, 'cleanupAttribute'), $html); - $html = preg_replace_callback('/([\-a-zA-Z0-9]+)=(")([^"]*)(")/', array($this, 'cleanupAttribute'), $html); + $html = preg_replace_callback("/([\\-a-zA-Z0-9]+)=(')([^']*)(')/", [$this, 'cleanupAttribute'], $html); + $html = preg_replace_callback('/([\-a-zA-Z0-9]+)=(")([^"]*)(")/', [$this, 'cleanupAttribute'], $html); return $html; }