Skip to content

Commit

Permalink
Minor change so code works on all versions of PHP
Browse files Browse the repository at this point in the history
  • Loading branch information
ikawhero committed Dec 29, 2006
1 parent feaf5d0 commit 96ed722
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions question/type/questiontype.php
Expand Up @@ -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;
}
Expand Down Expand Up @@ -1224,4 +1224,4 @@ function restore_state($state_id,$info,$restore) {

}

?>
?>

0 comments on commit 96ed722

Please sign in to comment.