MDL-19814 Migrated calls to close_window_button()

This commit is contained in:
nicolasconnault 2009-08-06 02:51:41 +00:00
parent d36cb95f5d
commit e087ee764a
7 changed files with 10 additions and 10 deletions

View File

@ -344,7 +344,7 @@ class resource_file extends resource_base {
}
notify(get_string('notallowedlocalfileaccess', 'resource', ''));
if ($inpopup) {
close_window_button();
echo $OUTPUT->close_window_button();
}
print_footer('none');
die;

View File

@ -315,7 +315,7 @@ class resource_ims extends resource_base {
* @param CFG global object
*/
function display() {
global $CFG, $THEME, $USER, $PAGE;
global $CFG, $THEME, $USER, $PAGE, $OUTPUT;
require_once($CFG->libdir.'/filelib.php');
@ -397,7 +397,7 @@ class resource_ims extends resource_base {
print_simple_box_end();
/// Close button if inpopup
if ($inpopup) {
close_window_button();
echo $OUTPUT->close_window_button();
}
print_footer();

View File

@ -12,7 +12,7 @@
if (empty($SESSION->HIVE_SESSION)) {
print_header();
notify('You do not have access to the Hive repository. Moodle signs you into Hive when you log in. This process may have failed.');
close_window_button();
echo $OUTPUT->close_window_button();
print_footer();
die;
}

View File

@ -12,7 +12,7 @@
if (empty($SESSION->HIVE_SESSION)) {
print_header();
notify('You do not have access to the Hive repository. Moodle signs you into Hive when you log in. This process may have failed.');
close_window_button();
echo $OUTPUT->close_window_button();
print_footer();
die;
}

View File

@ -12,7 +12,7 @@
if (empty($SESSION->HIVE_SESSION)) {
print_header();
notify('You do not have access to the Hive repository. Moodle signs you into Hive when you log in. This process may have failed.');
close_window_button();
echo $OUTPUT->close_window_button();
print_footer();
die;
}

View File

@ -12,7 +12,7 @@
if (empty($SESSION->HIVE_SESSION)) {
print_header();
notify('You do not have access to the Hive repository. Moodle signs you into Hive when you log in. This process may have failed.');
close_window_button();
echo $OUTPUT->close_window_button();
print_footer();
die;
}

View File

@ -181,7 +181,7 @@ function _postprocess(&$resource) {
* @param CFG global object
*/
function display() {
global $CFG, $THEME, $SESSION;
global $CFG, $THEME, $SESSION, $OUTPUT;
/// Set up generic stuff first, including checking for access
parent::display();
@ -271,7 +271,7 @@ function display() {
}
notify('You do not have access to HarvestRoad Hive. This resource is unavailable.');
if ($inpopup) {
close_window_button();
echo $OUTPUT->close_window_button();
}
print_footer('none');
die;
@ -290,7 +290,7 @@ function display() {
}
notify(get_string('notallowedlocalfileaccess', 'resource', ''));
if ($inpopup) {
close_window_button();
echo $OUTPUT->close_window_button();
}
print_footer('none');
die;