Permalink
Browse files

Minor change so code works on all versions of PHP

  • Loading branch information...
1 parent feaf5d0 commit 96ed722ba329a45e7a2fc0830f2b199bd1220850 ikawhero committed Dec 29, 2006
Showing with 3 additions and 3 deletions.
  1. +3 −3 question/type/questiontype.php
@@ -83,12 +83,12 @@ function is_usable_by_random() {
function create_editing_form($submiturl) {
global $CFG;
require_once("{$CFG->dirroot}/question/type/edit_question_form.php");
- $definition_file = "{$CFG->dirroot}/question/type/{$this->name()}/edit_{$this->name()}_question_form.php";
+ $definition_file = $CFG->dirroot.'/question/type/'.$this->name().'/edit_'.$this->name().'_question_form.php';
if (!(is_readable($definition_file) && is_file($definition_file))) {
return null;
}
require_once($definition_file);
- $classname = "edit_{$this->name()}_question_form";
+ $classname = 'edit_'.$this->name().'_question_form';
if (!class_exists($classname)) {
return null;
}
@@ -1224,4 +1224,4 @@ function restore_state($state_id,$info,$restore) {
}
-?>
+?>

0 comments on commit 96ed722

Please sign in to comment.