Updated preg_match to preg_replace_callback
Was throwing a deprecation error, figured it's worth fixing.
This commit is contained in:
parent
d8e6c43868
commit
0c3b239417
1 changed files with 8 additions and 1 deletions
|
@ -487,7 +487,14 @@ class Controller extends Object
|
|||
// Scrubs class names with hyphens
|
||||
if (strpos($module_class, '-') !== false)
|
||||
{
|
||||
$module_class = preg_replace('/(-(.{1}))/e', 'strtoupper("$2")', $module_class);
|
||||
$module_class = preg_replace_callback(
|
||||
'/(-(.{1}))/',
|
||||
function ($matches)
|
||||
{
|
||||
return strtoupper($matches[2]);
|
||||
},
|
||||
$module_class
|
||||
);
|
||||
}
|
||||
|
||||
return array($module_class, $module_filename, $template_basename, $css_class, $js_basename);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue