Skip to content

Commit

Permalink
Disable safe mode checks for ML Static Pages.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Thomson committed Mar 9, 2020
1 parent c971b1a commit 610aa79
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions classes/MLStaticPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,15 @@ public function setPlaceholdersAttribute($value)
$this->attributes['code'] = trim($result);
$this->attributes['placeholders'] = $placeholders;
}

/**
* Disables safe mode check for static pages.
*
* This allows developers to use placeholders in layouts even if safe mode is enabled.
*
* @return void
*/
protected function checkSafeMode()
{
}
}

0 comments on commit 610aa79

Please sign in to comment.