mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX Fixed ErrorPage not showing up properly due to a SQL query that was merged from trunk not compatible with 2.3
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@76896 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
aeacbfda89
commit
d710ad6784
@ -123,12 +123,12 @@ class ModelAsController extends Controller implements NestedController {
|
||||
}
|
||||
|
||||
protected function get404Page() {
|
||||
$page = DataObject::get_one("ErrorPage", "\"ErrorCode\" = '404'");
|
||||
$page = DataObject::get_one("ErrorPage", "`ErrorCode` = '404'");
|
||||
if($page) {
|
||||
return $page;
|
||||
} else {
|
||||
// @deprecated 2.5 Use ErrorPage class
|
||||
return DataObject::get_one("SiteTree", "\"URLSegment\" = '404'");
|
||||
return DataObject::get_one("SiteTree", "`URLSegment` = '404'");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user