mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 21:45:37 +02:00
Remove a few unnecessary references to global $THEME.
This commit is contained in:
parent
68533e531a
commit
c207b6bece
@ -41,8 +41,6 @@ class ExHtmlReporter extends HtmlReporter {
|
||||
* @param bool $showpasses Whether this reporter should output anything for passes.
|
||||
*/
|
||||
function ExHtmlReporter($showpasses) {
|
||||
global $CFG, $THEME;
|
||||
|
||||
$this->HtmlReporter();
|
||||
$this->showpasses = $showpasses;
|
||||
|
||||
|
@ -13,7 +13,7 @@ class block_course_list extends block_list {
|
||||
}
|
||||
|
||||
function get_content() {
|
||||
global $THEME, $CFG, $USER, $DB;
|
||||
global $CFG, $USER, $DB;
|
||||
|
||||
if($this->content !== NULL) {
|
||||
return $this->content;
|
||||
@ -109,7 +109,7 @@ class block_course_list extends block_list {
|
||||
}
|
||||
|
||||
function get_remote_courses() {
|
||||
global $THEME, $CFG, $USER;
|
||||
global $CFG, $USER;
|
||||
|
||||
if (!is_enabled_auth('mnet')) {
|
||||
// no need to query anything remote related
|
||||
|
@ -19,7 +19,7 @@ class block_mnet_hosts extends block_list {
|
||||
}
|
||||
|
||||
function get_content() {
|
||||
global $THEME, $CFG, $USER, $DB;
|
||||
global $CFG, $USER, $DB;
|
||||
|
||||
// only for logged in users!
|
||||
if (!isloggedin() || isguest()) {
|
||||
|
@ -7,7 +7,7 @@ class block_search_forums extends block_base {
|
||||
}
|
||||
|
||||
function get_content() {
|
||||
global $CFG, $THEME;
|
||||
global $CFG;
|
||||
|
||||
if($this->content !== NULL) {
|
||||
return $this->content;
|
||||
|
@ -76,7 +76,7 @@ function module_specific_buttons($cmid, $cmoptions) {
|
||||
* (which is called from showbank())
|
||||
*/
|
||||
function module_specific_controls($totalnumber, $recurse, $category, $cmid, $cmoptions) {
|
||||
global $THEME, $QTYPES;
|
||||
global $QTYPES;
|
||||
$out = '';
|
||||
$catcontext = get_context_instance_by_id($category->contextid);
|
||||
if (has_capability('moodle/question:useall', $catcontext)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user