silverstripe/silverstripe-cms — pull request #200 by jrast (2012-09-13 11:39:13+00:00)
Title: Solves Bug in SiteTree::isCurrent()

If you have a own controller for a part of a page, it's not enough to
compare just the ID of the current Object with `Direcetor::get_current_page()->ID` as this condition can be true for multiple Objects of different classes.

I added a simple test to see if also the class matches which solves the problem in my situation.

This is not a very solid solution i think, but in my case this just works fine.