Skip to content

Commit

Permalink
EasyPIBA 5.2.5
Browse files Browse the repository at this point in the history
Fix AMP pages - remove user javascript
  • Loading branch information
al3x2508 committed Nov 21, 2018
1 parent d98070b commit 74d7cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Utils/Template.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public function load_template() {
$this->template = str_replace('{breadcrumbs}', $this->breadcrumbs, $this->template);

//Add javascripts in page
if(count($this->js) > 0) {
if(count($this->js) > 0 && !$this->isAmp) {
$js = array();
$replacement = '';
foreach($this->js AS $fjs) {
Expand Down

0 comments on commit 74d7cfc

Please sign in to comment.