From 610aa791368448d29a217ff54aec0330534364bd Mon Sep 17 00:00:00 2001 From: Ben Thomson Date: Mon, 9 Mar 2020 12:40:12 +0800 Subject: [PATCH] Disable safe mode checks for ML Static Pages. Fixes https://github.com/rainlab/pages-plugin/issues/434. Refs: https://github.com/rainlab/pages-plugin/issues/174, https://github.com/rainlab/pages-plugin/commit/6b6b06133aff3b70cc95f52d70eb259f14db8439 --- classes/MLStaticPage.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/classes/MLStaticPage.php b/classes/MLStaticPage.php index 40a59516..234d934d 100644 --- a/classes/MLStaticPage.php +++ b/classes/MLStaticPage.php @@ -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() + { + } }