Changed code to new class based paradigma.
 On branch MOODLE_25_STABLE
	modified:   filter.php