mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
Removed $THEME from around the place
This commit is contained in:
parent
a2df2a1ac0
commit
9fad2dec0f
@ -323,7 +323,7 @@ function resource_user_outline($course, $user, $mod, $resource) {
|
||||
|
||||
|
||||
function resource_user_complete($course, $user, $mod, $resource) {
|
||||
global $CFG, $THEME;
|
||||
global $CFG;
|
||||
|
||||
if ($logs = get_records_select("log", "userid='$user->id' AND module='resource'
|
||||
AND action='view' AND info='$resource->id'", "time ASC")) {
|
||||
|
@ -8,7 +8,7 @@ function resource_directory($cmid=0) {
|
||||
|
||||
|
||||
function display() {
|
||||
global $CFG, $THEME;
|
||||
global $CFG;
|
||||
|
||||
/// Set up generic stuff first, including checking for access
|
||||
parent::display();
|
||||
@ -86,7 +86,7 @@ function display() {
|
||||
exit;
|
||||
}
|
||||
|
||||
print_simple_box_start("center", "", "$THEME->cellcontent", '0' );
|
||||
print_simple_box_start("center", "", "", '0' );
|
||||
|
||||
$strftime = get_string('strftimedatetime');
|
||||
$strname = get_string("name");
|
||||
|
@ -175,10 +175,9 @@ function update_instance($resource) {
|
||||
* Output depends on type of file resource.
|
||||
*
|
||||
* @param CFG global object
|
||||
* @param THEME global object
|
||||
*/
|
||||
function display() {
|
||||
global $CFG, $THEME;
|
||||
global $CFG;
|
||||
|
||||
/// Set up generic stuff first, including checking for access
|
||||
parent::display();
|
||||
|
@ -77,7 +77,7 @@ function update_instance($resource) {
|
||||
|
||||
|
||||
function display() {
|
||||
global $CFG, $THEME;
|
||||
global $CFG;
|
||||
|
||||
/// Set up generic stuff first, including checking for access
|
||||
parent::display();
|
||||
@ -96,7 +96,7 @@ function display() {
|
||||
add_to_log($course->id, "resource", "view", "view.php?id={$cm->id}", $resource->id, $cm->id);
|
||||
print_header();
|
||||
print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id),
|
||||
"center", "", "$THEME->cellcontent", "20");
|
||||
"center", "", "", "20");
|
||||
print_footer($course);
|
||||
} else { /// Make a page and a pop-up window
|
||||
|
||||
@ -132,7 +132,7 @@ function display() {
|
||||
"", "", true, update_module_button($cm->id, $course->id, $this->strresource),
|
||||
navmenu($course, $cm));
|
||||
|
||||
print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), "center", "", "$THEME->cellcontent", "20");
|
||||
print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), "center", "", "", "20");
|
||||
|
||||
$strlastmodified = get_string("lastmodified");
|
||||
echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</font></p></center>";
|
||||
|
@ -75,7 +75,7 @@ function update_instance($resource) {
|
||||
}
|
||||
|
||||
function display() {
|
||||
global $CFG, $THEME;
|
||||
global $CFG;
|
||||
|
||||
/// Set up generic stuff first, including checking for access
|
||||
parent::display();
|
||||
@ -95,7 +95,7 @@ function display() {
|
||||
$resource->id, $cm->id);
|
||||
print_header();
|
||||
print_simple_box(format_text($resource->alltext, $resource->options, $formatoptions, $course->id),
|
||||
"center", "", "$THEME->cellcontent", "20");
|
||||
"center", "", "", "20");
|
||||
print_footer($course);
|
||||
} else { /// Make a page and a pop-up window
|
||||
|
||||
@ -132,7 +132,7 @@ function display() {
|
||||
navmenu($course, $cm));
|
||||
|
||||
print_simple_box(format_text($resource->alltext, $resource->options, $formatoptions, $course->id),
|
||||
"center", "", "$THEME->cellcontent", "20");
|
||||
"center", "", "", "20");
|
||||
|
||||
$strlastmodified = get_string("lastmodified");
|
||||
echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</font></p></center>";
|
||||
|
Loading…
x
Reference in New Issue
Block a user