|
@@ -31,7 +31,7 @@ |
|
|
block discarded – undo |
|
31
|
31
|
$og_image_parl = $extra_vars['_social_image_parliament'] ?? 'uk'; |
|
32
|
32
|
$og_image_url = \MySociety\TheyWorkForYou\Url::generateSocialImageUrl($og_image_title, $og_image_subtitle, $og_image_parl); |
|
33
|
33
|
|
|
34
|
|
- $html = preg_replace_callback('/<h([1-3])>([^<]+)<\/h[1-3]>/i', function ($matches) { |
|
|
34
|
+ $html = preg_replace_callback('/<h([1-3])>([^<]+)<\/h[1-3]>/i', function($matches) { |
|
35
|
35
|
$level = $matches[1]; |
|
36
|
36
|
$htitle = $matches[2]; |
|
37
|
37
|
$slug = slugify($htitle); |
Please login to merge, or discard this patch.