Skip to content
This repository has been archived by the owner on Jan 6, 2019. It is now read-only.

Commit

Permalink
Update AmpHtmlExtension.php
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves authored Feb 28, 2018
1 parent 137e996 commit 7a73e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AmpHtmlExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ 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;
}
Expand All @@ -54,6 +53,7 @@ public function ampReturn($input)
$amp = new AMP();
$amp->loadHtml($html);
$amp_html = $amp->convertToAmpHtml();
$config = $this->getConfig();
if ($config['debug']['show_action_log'] == true) print($amp->warningsHumanText());

return $amp_html;
Expand Down

0 comments on commit 7a73e29

Please sign in to comment.