From 53ed7c496e20aac7d822a5c6cef2bcd93a8c9469 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Fri, 15 Apr 2011 14:13:53 +1200 Subject: [PATCH] MINOR Disallow nested ErrorPage instances via canAddChildren() --- code/model/ErrorPage.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/model/ErrorPage.php b/code/model/ErrorPage.php index defbf3d2..e869fb1c 100755 --- a/code/model/ErrorPage.php +++ b/code/model/ErrorPage.php @@ -26,6 +26,8 @@ class ErrorPage extends Page { protected static $static_filepath = ASSETS_PATH; + public function canAddChildren($member = null) { return false; } + /** * Get a {@link SS_HTTPResponse} to response to a HTTP error code if an {@link ErrorPage} for that code is present. *