mirror of
https://github.com/moodle/moodle.git
synced 2025-04-17 06:25:33 +02:00
MDL-11230 fixing wrong include for tags library - always use require_once() instead of include() when dealing with library files!
This commit is contained in:
parent
d4be9d6d08
commit
18ff5a61b6
@ -59,9 +59,9 @@ class block_tags extends block_base {
|
||||
|
||||
/// 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;
|
||||
}
|
||||
|
@ -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).
|
||||
|
Loading…
x
Reference in New Issue
Block a user