From 8c12ee9f6ead91bad75d3adf486a03fbf3dd9a1c Mon Sep 17 00:00:00 2001 From: Banana Date: Tue, 25 Feb 2020 20:50:14 +0100 Subject: [PATCH] running some tests with google pagespeed screenshot stuff --- webroot/lib/snapshot.class.php | 4 ++-- webroot/view/editlink.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/webroot/lib/snapshot.class.php b/webroot/lib/snapshot.class.php index 9c50877..08af6ad 100644 --- a/webroot/lib/snapshot.class.php +++ b/webroot/lib/snapshot.class.php @@ -32,7 +32,7 @@ * right now it uses google pagespeedonline. */ class Snapshot { - private $_googlePageSpeed = 'https://www.googleapis.com/pagespeedonline/v2/runPagespeed'; + private $_googlePageSpeed = 'https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url='; public function __constructor() {} @@ -45,7 +45,7 @@ class Snapshot { */ public function doSnapshot($url) { if(!empty($url)) { - $theCall = Summoner::curlCall($url); + $theCall = Summoner::curlCall($this->_googlePageSpeed.urlencode($url).'&screenshot=true'); var_dump($theCall); } } diff --git a/webroot/view/editlink.php b/webroot/view/editlink.php index 36f57e7..d928941 100644 --- a/webroot/view/editlink.php +++ b/webroot/view/editlink.php @@ -199,7 +199,7 @@ -- 2.39.5