Merge pull request #855 from mailpoet/php53-fix
Fixes reference to self in anonymous function [MAILPOET-871]
This commit is contained in:
@@ -48,7 +48,7 @@ class Links {
|
||||
if($shortcodes) {
|
||||
$extracted_links = array_map(function($shortcode) {
|
||||
return array(
|
||||
'type' => self::LINK_TYPE_SHORTCODE,
|
||||
'type' => Links::LINK_TYPE_SHORTCODE,
|
||||
'html' => $shortcode,
|
||||
'link' => $shortcode
|
||||
);
|
||||
@@ -216,4 +216,4 @@ class Links {
|
||||
$transformed_data['preview'] = (!empty($data[4])) ? $data[4] : false;
|
||||
return $transformed_data;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user