mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-19690 fix some breakage.
This commit is contained in:
parent
5ef444007d
commit
42d5737a94
3 changed files with 5 additions and 8 deletions
|
@ -84,8 +84,7 @@ class question_category_list_item extends list_item {
|
|||
}
|
||||
}
|
||||
public function item_html($extraargs = array()){
|
||||
global $CFG;
|
||||
$pixpath = $CFG->pixpath;
|
||||
global $CFG, $OUTPUT;
|
||||
$str = $extraargs['str'];
|
||||
$category = $this->item;
|
||||
|
||||
|
@ -101,7 +100,7 @@ class question_category_list_item extends list_item {
|
|||
|
||||
if (count($this->parentlist->records)!=1){ // don't allow delete if this is the last category in this context.
|
||||
$item .= '<a title="' . $str->delete . '" href="'.$this->parentlist->pageurl->out_action(array('delete'=>$this->id)).'">
|
||||
<img src="' . $pixpath . '/t/delete.gif" class="iconsmall" alt="' .$str->delete. '" /></a>';
|
||||
<img src="' . $OUTPUT->old_icon_url('t/delete.gif') . '" class="iconsmall" alt="' .$str->delete. '" /></a>';
|
||||
}
|
||||
|
||||
return $item;
|
||||
|
@ -118,7 +117,6 @@ class question_category_list_item extends list_item {
|
|||
class question_category_object {
|
||||
|
||||
var $str;
|
||||
var $pixpath;
|
||||
/**
|
||||
* Nested lists to display categories.
|
||||
*
|
||||
|
@ -173,7 +171,6 @@ class question_category_object {
|
|||
$this->str->cancel = get_string('cancel');
|
||||
$this->str->editcategories = get_string('editcategories', 'quiz');
|
||||
$this->str->page = get_string('page');
|
||||
$this->pixpath = $CFG->pixpath;
|
||||
|
||||
$this->pageurl = $pageurl;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue