|
14 | 14 | // You should have received a copy of the GNU General Public License
|
15 | 15 | // along with Moodle. If not, see <http://www.gnu.org/licenses/>.
|
16 | 16 |
|
17 |
| -/** |
18 |
| - * Contains class core_tag\output\tag |
19 |
| - * |
20 |
| - * @package core_tag |
21 |
| - * @copyright 2015 Marina Glancy |
22 |
| - * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
23 |
| - */ |
24 |
| - |
25 | 17 | namespace core_tag\output;
|
26 | 18 |
|
27 | 19 | use renderable;
|
28 | 20 | use templatable;
|
29 | 21 | use renderer_base;
|
30 | 22 | use stdClass;
|
31 |
| -use moodle_url; |
32 | 23 | use core_tag_tag;
|
33 | 24 |
|
34 | 25 | /**
|
@@ -79,9 +70,15 @@ public function export_for_template(renderer_base $output) {
|
79 | 70 | $r->tagcollid = clean_param($this->record->tagcollid, PARAM_INT);
|
80 | 71 | $r->rawname = clean_param($this->record->rawname, PARAM_TAG);
|
81 | 72 | $r->name = clean_param($this->record->name, PARAM_TAG);
|
82 |
| - $format = clean_param($this->record->descriptionformat, PARAM_INT); |
83 |
| - list($r->description, $r->descriptionformat) = \core_external\util::format_text($this->record->description, |
84 |
| - $format, \context_system::instance(), 'core', 'tag', $r->id); |
| 73 | + [$r->description, $r->descriptionformat] = \core_external\util::format_text( |
| 74 | + $this->record->description, |
| 75 | + $this->record->descriptionformat, |
| 76 | + \context_system::instance(), |
| 77 | + 'tag', |
| 78 | + 'description', |
| 79 | + $r->id, |
| 80 | + ); |
| 81 | + |
85 | 82 | $r->flag = clean_param($this->record->flag, PARAM_INT);
|
86 | 83 | if (isset($this->record->isstandard)) {
|
87 | 84 | $r->isstandard = clean_param($this->record->isstandard, PARAM_INT) ? 1 : 0;
|
|
0 commit comments