Permalink
Browse files

MDL-30135 question formats: trans_format/get_format should be public.

They need to be used by third-party qtype developers.
  • Loading branch information...
1 parent 735de1c commit 4a84c94bec07d7947d1e5365b7714bda26069b18 @timhunt timhunt committed Nov 7, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/format/xml/format.php
@@ -67,7 +67,7 @@ public function mime_type() {
* @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 @@ protected function get_qtype($qtype) {
* @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';

0 comments on commit 4a84c94

Please sign in to comment.