Remove a few unnecessary references to global $THEME.

This commit is contained in:
tjhunt 2009-06-25 03:26:58 +00:00
parent 68533e531a
commit c207b6bece
5 changed files with 5 additions and 7 deletions

View File

@ -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;

View File

@ -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

View File

@ -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()) {

View File

@ -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;

View File

@ -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)) {