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

Commit

Permalink
Fixing Warning Error
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesIves authored Feb 27, 2018
1 parent 40fc7fe commit 137e996
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/AmpHtmlExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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;
}
Expand Down

0 comments on commit 137e996

Please sign in to comment.