Skip to content

Commit

Permalink
MDL-11230 fixing wrong include for tags library - always use require_…
Browse files Browse the repository at this point in the history
…once() instead of include() when dealing with library files!
  • Loading branch information
skodak committed Sep 16, 2007
1 parent d4be9d6 commit 18ff5a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions blocks/tags/block_tags.php
Expand Up @@ -59,9 +59,9 @@ function get_content() {

/// Get a list of tags

include($CFG->dirroot.'/tag/lib.php');
require_once($CFG->dirroot.'/tag/lib.php');

$this->content->text = print_tag_cloud(popular_tags_count($this->config->numberoftags), false, 170,70, true);
$this->content->text = print_tag_cloud(popular_tags_count($this->config->numberoftags), false, 170, 70, true);

return $this->content;
}
Expand Down
2 changes: 1 addition & 1 deletion blog/lib.php
Expand Up @@ -7,7 +7,7 @@
require_once($CFG->libdir .'/pagelib.php');
require_once($CFG->dirroot .'/blog/rsslib.php');
require_once($CFG->dirroot .'/blog/blogpage.php');
include_once($CFG->dirroot.'/tag/lib.php');
require_once($CFG->dirroot.'/tag/lib.php');

/**
* Definition of blogcourse page type (blog page with course id present).
Expand Down

0 comments on commit 18ff5a6

Please sign in to comment.