]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-19877 fix: diplay used font family of the test page
authormudrd8mz <mudrd8mz>
Mon, 20 Jul 2009 18:28:24 +0000 (18:28 +0000)
committermudrd8mz <mudrd8mz>
Mon, 20 Jul 2009 18:28:24 +0000 (18:28 +0000)
lib/simpletest/pdflibtestpage.php

index 24d1659f367f0aa32eb89688d1580ac2fb0ef5f4..476a84d28de03dd6d327f3ffd2acbfaee6755951 100644 (file)
@@ -31,7 +31,7 @@ $context = get_context_instance(CONTEXT_SYSTEM);
 require_capability('moodle/site:config', $context);
 
 $getpdf     = optional_param('getpdf', 0, PARAM_INT);
-$fontfamily = '';   // use default
+$fontfamily = optional_param('fontfamily', PDF_DEFAULT_FONT, PARAM_ALPHA);  // to be configurable
 
 /**
  * Extend the standard PDF class to get access to some protected values we want to display