From 137e996c4df43a1ddbe8afe1ea473c09ba34e014 Mon Sep 17 00:00:00 2001 From: James Ives Date: Tue, 27 Feb 2018 08:35:55 -0600 Subject: [PATCH] Fixing Warning Error --- src/AmpHtmlExtension.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/AmpHtmlExtension.php b/src/AmpHtmlExtension.php index e471aae..c7faa77 100755 --- a/src/AmpHtmlExtension.php +++ b/src/AmpHtmlExtension.php @@ -35,13 +35,10 @@ protected function getDefaultConfig() public function ampFilter($input) { - /* Converts $input into AMP compliant HTML and prints it on the page. */ $config = $this->getConfig(); $amp_html = $this->ampReturn($input); echo $amp_html; - - if ($config['debug']['show_action_log'] == true) print($amp->warningsHumanText()); } public function ampReturn($input) @@ -57,6 +54,7 @@ public function ampReturn($input) $amp = new AMP(); $amp->loadHtml($html); $amp_html = $amp->convertToAmpHtml(); + if ($config['debug']['show_action_log'] == true) print($amp->warningsHumanText()); return $amp_html; }