From 6636527808798eb05940729a0464c814600c561f Mon Sep 17 00:00:00 2001 From: Tim Hunt Date: Mon, 7 Nov 2011 11:31:27 +0000 Subject: [PATCH] MDL-30135 question formats: trans_format/get_format should be public. They need to be used by third-party qtype developers. --- question/format/xml/format.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/format/xml/format.php b/question/format/xml/format.php index 6d973273076..0e8d91561cd 100644 --- a/question/format/xml/format.php +++ b/question/format/xml/format.php @@ -67,7 +67,7 @@ class qformat_xml extends qformat_default { * @param string name format name from xml file * @return int Moodle format code */ - protected function trans_format($name) { + public function trans_format($name) { $name = trim($name); if ($name == 'moodle_auto_format') { @@ -970,7 +970,7 @@ class qformat_xml extends qformat_default { * @param int id internal code * @return string format text */ - protected function get_format($id) { + public function get_format($id) { switch($id) { case FORMAT_MOODLE: return 'moodle_auto_format';