Fixed settings navigation function for Moodle 2.6 compliance