Skip to content

Commit

Permalink
MINOR Disallow nested ErrorPage instances via canAddChildren()
Browse files Browse the repository at this point in the history
  • Loading branch information
chillu committed Apr 28, 2011
1 parent c1d5e9b commit 53ed7c4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/model/ErrorPage.php
Expand Up @@ -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.
*
Expand Down

0 comments on commit 53ed7c4

Please sign in to comment.