mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 08:55:15 +02:00
MDL-24321 switching to stdClass in /tag/
This commit is contained in:
parent
a1abd74d93
commit
c213773d59
@ -64,7 +64,7 @@ $tagname = tag_display_name($tag);
|
||||
$tag->relatedtags = tag_get_related_tags_csv(tag_get_related_tags($tag->id, TAG_RELATED_MANUAL), TAG_RETURN_TEXT);
|
||||
|
||||
if (can_use_html_editor()) {
|
||||
$options = new object();
|
||||
$options = new stdClass();
|
||||
$options->smiley = false;
|
||||
$options->filter = false;
|
||||
|
||||
|
@ -820,7 +820,7 @@ function tag_compute_correlations($min_correlation=2) {
|
||||
return;
|
||||
}
|
||||
|
||||
$tag_correlation_obj = new object();
|
||||
$tag_correlation_obj = new stdClass();
|
||||
foreach($all_tags as $tag) {
|
||||
|
||||
// query that counts how many times any tag appears together in items
|
||||
|
@ -113,7 +113,7 @@ function tag_print_description_box($tag_object, $return=false) {
|
||||
}
|
||||
|
||||
if (!empty($tag_object->description)) {
|
||||
$options = new object();
|
||||
$options = new stdClass();
|
||||
$options->para = false;
|
||||
$tag_object->description = file_rewrite_pluginfile_urls($tag_object->description, 'pluginfile.php', get_context_instance(CONTEXT_SYSTEM)->id, 'tag', 'description', $tag_object->id);
|
||||
$output .= format_text($tag_object->description, $tag_object->descriptionformat, $options);
|
||||
|
Loading…
x
Reference in New Issue
Block a user