Skip to content

Commit

Permalink
MDL-24321 switching to stdClass in /tag/
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 21, 2010
1 parent a1abd74 commit c213773
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tag/edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
$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;

Expand Down
2 changes: 1 addition & 1 deletion tag/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tag/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c213773

Please sign in to comment.