$PAGE replaced with $this->page

As of Moodle 2.0, very block now has access to the page it appears on, via $this->page. (Therefore, you do not have to use the global $PAGE object in blocks!) http://docs.moodle.org/dev/Blocks/Appendix_A