}
notify(get_string('notallowedlocalfileaccess', 'resource', ''));
if ($inpopup) {
- close_window_button();
+ echo $OUTPUT->close_window_button();
}
print_footer('none');
die;
* @param CFG global object
*/
function display() {
- global $CFG, $THEME, $USER, $PAGE;
+ global $CFG, $THEME, $USER, $PAGE, $OUTPUT;
require_once($CFG->libdir.'/filelib.php');
print_simple_box_end();
/// Close button if inpopup
if ($inpopup) {
- close_window_button();
+ echo $OUTPUT->close_window_button();
}
print_footer();
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;
}
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;
}
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;
}
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;
}
* @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();
}
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;
}
notify(get_string('notallowedlocalfileaccess', 'resource', ''));
if ($inpopup) {
- close_window_button();
+ echo $OUTPUT->close_window_button();
}
print_footer('none');
die;