From df843523850237b0be1eadee99b01b20685917f4 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Sat, 1 Dec 2018 21:37:33 +0100 Subject: make pdf preview 100% width and 300px height to match it openstreetmaps preview --- include/oembed.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/oembed.php') diff --git a/include/oembed.php b/include/oembed.php index e5557dc11..426197c5f 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -221,7 +221,11 @@ function oembed_fetch_url($embedurl){ if(strpos(strtolower($embedurl),'.pdf') !== false) { $action = 'allow'; - $j = [ 'html' => '' . '' . t('View PDF') . '', 'width' => 500, 'height' => 720, 'type' => 'pdf' ]; + $j = [ + 'html' => '', + 'title' => t('View PDF'), + 'type' => 'pdf' + ]; } -- cgit v1.2.3