From: Banana Date: Tue, 25 Feb 2020 19:50:14 +0000 (+0100) Subject: running some tests with google pagespeed screenshot stuff X-Git-Tag: 2.5_2020-03-21~7 X-Git-Url: http://91.132.146.200/gitweb/?a=commitdiff_plain;h=8c12ee9f6ead91bad75d3adf486a03fbf3dd9a1c;p=insipid.git running some tests with google pagespeed screenshot stuff --- 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 @@