Hi there,
I've just upgraded to SS 3.1 RC2
I want to control a Page by it's Pagetype, normally I'm using this snippet for it
function PageType($class = 'Page') {
Return DataObject::get_one($class);
}
<% control PageType(HomePage) %>
But if I use this in the new SS i get the following error after flushing the page
if($caller) {
172 user_error($caller.' is deprecated.'.($string ? ' '.$string : ''), $level);
173 } else {
174 user_error($string, $level);
175 }
can someone tell me how to solve this?
Thx in advance
cSGermany