From c213773d596fd8e3e87fb2f5947e6f588d41f4d0 Mon Sep 17 00:00:00 2001 From: Petr Skoda <skodak@moodle.org> Date: Tue, 21 Sep 2010 08:25:41 +0000 Subject: [PATCH] MDL-24321 switching to stdClass in /tag/ --- tag/edit.php | 2 +- tag/lib.php | 2 +- tag/locallib.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tag/edit.php b/tag/edit.php index cbc4ffb5d53..3b41373d45e 100644 --- a/tag/edit.php +++ b/tag/edit.php @@ -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; diff --git a/tag/lib.php b/tag/lib.php index 46834b47407..c9702da5351 100644 --- a/tag/lib.php +++ b/tag/lib.php @@ -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 diff --git a/tag/locallib.php b/tag/locallib.php index 8c2ef124a1d..d21107e12a1 100644 --- a/tag/locallib.php +++ b/tag/locallib.php @@ -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);